fixup! rename main firewall

This commit is contained in:
Julien Fastré 2023-12-14 22:31:09 +01:00
parent e5a73e666b
commit e8c506e883
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
1 changed files with 4 additions and 9 deletions

View File

@ -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