feat: update security.yaml

This commit is contained in:
Maël Gangloff
2024-07-23 18:31:49 +02:00
parent 7775273907
commit 4556dfe85e

View File

@@ -57,9 +57,7 @@ security:
main:
custom_authenticators:
- App\Security\OAuthAuthenticator
logout:
path: /logout
target: /
# activate different ways to authenticate
# https://symfony.com/doc/current/security.html#the-firewall
@@ -69,9 +67,9 @@ security:
# Easy way to control access for large sections of your site
# Note: Only the *first* access control that matches will be used
access_control:
- { path: ^/api, roles: PUBLIC_ACCESS }
- { path: ^/api/$, roles: PUBLIC_ACCESS }
- { path: ^/api/docs, roles: PUBLIC_ACCESS }
- { path: ^/api/, roles: IS_AUTHENTICATED_FULLY }
- { path: ^/api, roles: IS_AUTHENTICATED_FULLY }
when@test:
security: