diff --git a/config/packages/security.yaml b/config/packages/security.yaml index ccdd888..848a06d 100644 --- a/config/packages/security.yaml +++ b/config/packages/security.yaml @@ -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: