mirror of
https://github.com/stan220/chixana.git
synced 2026-09-08 16:28:41 +00:00
24 lines
753 B
YAML
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
|