From e8c506e8837cf21030f2d7a6f3a0f9d16c310fe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 14 Dec 2023 22:31:09 +0100 Subject: [PATCH] fixup! rename main firewall --- config/packages/security.yaml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/config/packages/security.yaml b/config/packages/security.yaml index b9ddc66..2c3590e 100644 --- a/config/packages/security.yaml +++ b/config/packages/security.yaml @@ -7,10 +7,11 @@ security: enable_authenticator_manager: true # https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords password_hashers: + Chill\MainBundle\Entity\User: 'auto' + Symfony\Component\Security\Core\User\User: plaintext Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto' # https://symfony.com/doc/current/security.html#loading-the-user-the-user-provider providers: - chain_provider: chain : providers: [in_memory, users] @@ -20,18 +21,13 @@ security: admin: { password: '%env(resolve:ADMIN_PASSWORD)%', roles: ['ROLE_ADMIN', 'ROLE_ALLOWED_TO_SWITCH', 'ROLE_USER'] } users: id: chill.main.user_provider - encoders: - Chill\MainBundle\Entity\User: - algorithm: bcrypt + Chill\MainBundle\Entity\User: auto Symfony\Component\Security\Core\User\User: plaintext - firewalls: - dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false - wopi: pattern: ^/wopi provider: chain_provider @@ -39,8 +35,7 @@ security: guard: authenticators: - lexik_jwt_authentication.jwt_token_authenticator - - default: + main: # remove during upgrade from symfony 4 to symfony 5 TODO check this #anonymous: ~ provider: chain_provider