ability to login restored

This commit is contained in:
Tykayn 2025-02-14 15:58:24 +01:00 committed by tykayn
parent d01ecdabba
commit 7ad6f2d823
5 changed files with 118 additions and 116 deletions

View file

@ -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