Created
July 6, 2020 19:46
-
-
Save blafasel42/8341d4b00905537b960a5dc36ed18b43 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
security: | |
# https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers | |
providers: | |
... | |
firewalls: | |
# This firewall is used to handle the actual login and is used as an endpoint for SSO-Proxy. | |
authentication: | |
pattern: ^/(auth|login|logout) | |
anonymous: ~ | |
logout: | |
path: app_logout | |
target: app_login | |
# where to redirect after logout | |
# target: app_any_route | |
provider: database | |
guard: | |
authenticators: | |
- App\Authentication\Login\LoginFormAuthenticator | |
# IMPORTANT: auth has to be here, otherwise no user will be available | |
access_control: | |
- { path: ^/login/, roles: IS_AUTHENTICATED_ANONYMOUSLY } | |
- { path: ^/auth/.*, roles: IS_AUTHENTICATED_REMEMBERED } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment