authentication - Symfony2 - secure everything -


i write application in need have (except login page) secured , redirect login. tried solution http://symfony.com/doc/master/book/security.html (avoid common pitfalls -> sure login page isn't secure) not me - requests still being redirected infinite loop.

here firewalls section of security.yml file:

firewalls:     dev:         pattern:  ^/(_(profiler|wdt)|css|images|js)/         security: false      login:         pattern:  ^/login$         security: false      secured_area:         pattern:    .*         anonymous: ~         form_login:             login_path:  login             check_path:  login_validation             success_handler: authentication_handler         remember_me:             key:      "%secret%"             lifetime: 31536000 # 365 days in seconds             path:     /             domain:   ~ # defaults current domain $_server 

thank in advance help.

edit: of course want logged in , authenticated users have access.

i believe need allow anonymous access check path well.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -