mirror of
https://forge.chapril.org/tykayn/caisse-bliss
synced 2025-10-04 17:04:54 +02:00
ability to login restored
This commit is contained in:
parent
d01ecdabba
commit
7ad6f2d823
5 changed files with 118 additions and 116 deletions
|
@ -19,16 +19,20 @@ security:
|
|||
security: false
|
||||
main:
|
||||
form_login:
|
||||
# "app_login" is the name of the route created previously
|
||||
login_path: app_login
|
||||
check_path: app_login
|
||||
# access_token:
|
||||
# token_handler: App\Security\AccessTokenHandler
|
||||
enable_csrf: true
|
||||
logout:
|
||||
path: app_logout
|
||||
# where to redirect after logout
|
||||
# target: app_any_route
|
||||
|
||||
# Contrôle d'accès
|
||||
access_control:
|
||||
- { path: ^/admin, roles: ROLE_ADMIN }
|
||||
- { path: ^/logged, roles: ROLE_USER }
|
||||
- { path: ^/docs, roles: PUBLIC_ACCESS } # Allows accessing the Swagger UI
|
||||
- { path: ^/authentication_token, roles: PUBLIC_ACCESS }
|
||||
# - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY } # Autoriser l'accès à la page de connexion
|
||||
# - { path: ^/, roles: IS_AUTHENTICATED_ANONYMOUSLY } # Autoriser l'accès anonyme à toutes les autres pages
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue