This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Security firewall configuration issue

Discuss installing Symfony 2 here

Security firewall configuration issue

by bishop » Thu Apr 23, 2015 12:13 pm

Hi all,

I'v got a security configuration issue.
I want to create multiple firewall with different authentication process.
I use a OAuth authentification with FOSAuthServer and i want to add one more for another service.

Here my security.yml:

Code: Select all
            pattern: ^/freshdesk/
                provider: fos_userbundle
                check_path: app_freshdesk_login_check
                login_path: app_freshdesk_login
                success_handler: app.freshdesk_authentification_success_handler
                path: fos_user_security_logout
                target: /
            anonymous: true

            pattern: ^/
                provider: fos_userbundle
                check_path: app_oauth_server_auth_login_check
                login_path: app_oauth_server_auth_login
                csrf_provider: form.csrf_provider
                path: fos_user_security_logout
                target: /
                success_handler: app.logout_handler
            anonymous:    true

My problem is, when i login with the freshdesk login form, i'm redirected to login_check but i've got a blank page. I concluded sf2 not intercept my authentication try and i don't know why.

I don't know if it's doesn't clear, and don't hesitated to ask more information, but anyone got a idea or had the same problem?
Thank you

Ps; sorry for my very bad english.
Junior Member
Posts: 1
Joined: Thu Apr 23, 2015 12:04 pm