Files
chixana/config/packages/security.yaml
T
2020-01-11 18:55:08 +03:00

24 lines
753 B
YAML

security:
# https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
# https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
providers:
my_provider:
entity: { class: App:User, property: username }
firewalls:
# disables authentication for assets and the profiler, adapt it according to your needs
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
anonymous: ~
logout:
path: /logout
target: /
logout_on_user_change: true
guard:
authenticators:
- App\Security\GoogleAuthenticator