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,15 +167,15 @@ roles:
|
||||
# Rôle par défaut si l'utilisateur n'existe pas dans la table `users`
|
||||
- name: anon
|
||||
tables:
|
||||
# - name: users
|
||||
# insert:
|
||||
# block: true
|
||||
# query:
|
||||
# block: true
|
||||
# update:
|
||||
# block: true
|
||||
# delete:
|
||||
# block: true
|
||||
- name: users
|
||||
# insert:
|
||||
# block: true
|
||||
# query:
|
||||
# block: true
|
||||
# update:
|
||||
# block: true
|
||||
# delete:
|
||||
# block: true
|
||||
|
||||
# Rôle par défaut si l'utilisateur existe dans la table `users`
|
||||
# mais que la valeur de la colonne `role` n'est pas définie
|
||||
@ -195,8 +197,6 @@ roles:
|
||||
match: role = 'admin'
|
||||
tables:
|
||||
- name: users
|
||||
query:
|
||||
filters: []
|
||||
|
||||
# - name: products
|
||||
# query:
|
||||
|
Loading…
Reference in New Issue
Block a user