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

View File

@ -7,10 +7,11 @@ security:
enable_authenticator_manager: true enable_authenticator_manager: true
# https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords # https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords
password_hashers: password_hashers:
Chill\MainBundle\Entity\User: 'auto'
Symfony\Component\Security\Core\User\User: plaintext
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto' Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto'
# https://symfony.com/doc/current/security.html#loading-the-user-the-user-provider # https://symfony.com/doc/current/security.html#loading-the-user-the-user-provider
providers: providers:
chain_provider: chain_provider:
chain : chain :
providers: [in_memory, users] providers: [in_memory, users]
@ -20,18 +21,13 @@ security:
admin: { password: '%env(resolve:ADMIN_PASSWORD)%', roles: ['ROLE_ADMIN', 'ROLE_ALLOWED_TO_SWITCH', 'ROLE_USER'] } admin: { password: '%env(resolve:ADMIN_PASSWORD)%', roles: ['ROLE_ADMIN', 'ROLE_ALLOWED_TO_SWITCH', 'ROLE_USER'] }
users: users:
id: chill.main.user_provider id: chill.main.user_provider
encoders: encoders:
Chill\MainBundle\Entity\User: Chill\MainBundle\Entity\User: auto
algorithm: bcrypt
Symfony\Component\Security\Core\User\User: plaintext Symfony\Component\Security\Core\User\User: plaintext
firewalls: firewalls:
dev: dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/ pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false security: false
wopi: wopi:
pattern: ^/wopi pattern: ^/wopi
provider: chain_provider provider: chain_provider
@ -39,8 +35,7 @@ security:
guard: guard:
authenticators: authenticators:
- lexik_jwt_authentication.jwt_token_authenticator - lexik_jwt_authentication.jwt_token_authenticator
main:
default:
# remove during upgrade from symfony 4 to symfony 5 TODO check this # remove during upgrade from symfony 4 to symfony 5 TODO check this
#anonymous: ~ #anonymous: ~
provider: chain_provider provider: chain_provider