symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -
i'm new symfony user , follow tutorial. current task add logout script unfortunately gives me error:
invalidconfigurationexception in securityextension.php line 429: no authentication listener registered firewall "secured_area".
my security.yml file looks this:
security: # http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers providers: in_memory: memory: users: ryan: password: $2a$12$lcy0mefviec3typhv9snnuzofyr2p/axigoqjeds4am4jwhnz/jli roles: 'role_user' admin: password: $2a$12$cytwee9kpq1pjqkfiwuzfucrpwvyazwm4xzmz1qpufl7/flcm3v0g roles: 'role_admin' firewalls: secured_area: # ... logout: path: /logout target: / # disables authentication assets , profiler, adapt according needs dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false main: anonymous: ~ # activate different ways authenticate http_basic: ~ # http://symfony.com/doc/current/book/security.html#a-configuring-how-your-users-will-authenticate # form_login: ~ # http://symfony.com/doc/current/cookbook/security/form_login_setup.html access_control: # require role_admin /admin* - { path: ^/admin, roles: role_admin } encoders: symfony\component\security\core\user\user: algorithm: bcrypt cost: 12
can show code secured_area:
? think problem in use same routes logout , pattern. please, try change
logout: path: /logout target: /login
if it's help, let me know
update
it must this
firewalls: secured_area: pattern: ^/ anonymous: ~ provider: chain_provider form_login: login_path: loginaction check_path: checkaction csrf_provider: security.csrf.token_manager default_target_path: userredirectaction logout: path: /logout target: /login
Symfony - Invalidconfigurationexception In Securityextension.Php Line
ReplyDelete429: No Authentication Listener Registered For Firewall Secured_Area - >>>>> Download Now
>>>>> Download Full
Symfony - Invalidconfigurationexception In Securityextension.Php Line
429: No Authentication Listener Registered For Firewall Secured_Area - >>>>> Download LINK
>>>>> Download Now
Symfony - Invalidconfigurationexception In Securityextension.Php Line
429: No Authentication Listener Registered For Firewall Secured_Area - >>>>> Download Full
>>>>> Download LINK ko