Configuration basique du backend pour l'authentification/autorisation
via JWT
This commit is contained in:
parent
3bef551ad6
commit
13571d7617
|
@ -42,6 +42,8 @@ secret_key: supercalifajalistics
|
|||
# An origin may contain a wildcard (*) to replace 0 or more
|
||||
# characters (i.e.: http://*.domain.com).
|
||||
cors_allowed_origins: ["*"]
|
||||
cors_allowed_headers: ["Authorization", "Content-Type", "Mode"]
|
||||
cors_allowed_methods: ["POST"]
|
||||
|
||||
# Debug Cross Origin Resource Sharing requests
|
||||
cors_debug: false
|
||||
|
@ -165,7 +167,7 @@ roles:
|
|||
# Rôle par défaut si l'utilisateur n'existe pas dans la table `users`
|
||||
- name: anon
|
||||
tables:
|
||||
# - name: users
|
||||
- name: users
|
||||
# insert:
|
||||
# block: true
|
||||
# query:
|
||||
|
@ -195,8 +197,6 @@ roles:
|
|||
match: role = 'admin'
|
||||
tables:
|
||||
- name: users
|
||||
query:
|
||||
filters: []
|
||||
|
||||
# - name: products
|
||||
# query:
|
||||
|
|
Loading…
Reference in New Issue