Category : firewall

I was wondering if we could use multiple providers for one firewall. I looked on the Internet but found nothing. security: providers: chain_provider: chain: providers: [fos_userbundle, intranet_ldap] from_database: entity: class: AppEntityUser property: username fos_userbundle: id: fos_user.user_provider.username #fos_user.user_manager intranet_ldap: id: AppSecurityLdapUserProvider firewalls: dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false admin: pattern: /admin(.*) context: user form_login: provider: fos_userbundle login_path: ..

Read more

i’m writing this message to ask you how it is possible on symfony to launch my app with multiple provider; this is my security yaml: security: encoders: AppEntityUser: algorithm: auto # https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers providers: chain_provider: chain: providers: [in_memory, app_user_provider] # used to reload user from session & other features (e.g. switch_user) app_user_provider: entity: class: AppEntityUser property: ..

Read more