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
|
# An origin may contain a wildcard (*) to replace 0 or more
|
||||||
# characters (i.e.: http://*.domain.com).
|
# characters (i.e.: http://*.domain.com).
|
||||||
cors_allowed_origins: ["*"]
|
cors_allowed_origins: ["*"]
|
||||||
|
cors_allowed_headers: ["Authorization", "Content-Type", "Mode"]
|
||||||
|
cors_allowed_methods: ["POST"]
|
||||||
|
|
||||||
# Debug Cross Origin Resource Sharing requests
|
# Debug Cross Origin Resource Sharing requests
|
||||||
cors_debug: false
|
cors_debug: false
|
||||||
|
@ -165,7 +167,7 @@ roles:
|
||||||
# Rôle par défaut si l'utilisateur n'existe pas dans la table `users`
|
# Rôle par défaut si l'utilisateur n'existe pas dans la table `users`
|
||||||
- name: anon
|
- name: anon
|
||||||
tables:
|
tables:
|
||||||
# - name: users
|
- name: users
|
||||||
# insert:
|
# insert:
|
||||||
# block: true
|
# block: true
|
||||||
# query:
|
# query:
|
||||||
|
@ -195,8 +197,6 @@ roles:
|
||||||
match: role = 'admin'
|
match: role = 'admin'
|
||||||
tables:
|
tables:
|
||||||
- name: users
|
- name: users
|
||||||
query:
|
|
||||||
filters: []
|
|
||||||
|
|
||||||
# - name: products
|
# - name: products
|
||||||
# query:
|
# query:
|
||||||
|
|
Loading…
Reference in New Issue