From 4556dfe85eb30631dd1f2dac6aea8f2ab67975a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Tue, 23 Jul 2024 18:31:49 +0200 Subject: [PATCH] feat: update security.yaml --- config/packages/security.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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: