lightSAML / SpBundle

SAML2 SP Symfony Bundle based on LightSAML
https://www.lightsaml.com/SP-Bundle/
MIT License
66 stars 70 forks source link

SAML alongside traditional form login #9

Closed iainmckay closed 8 years ago

iainmckay commented 8 years ago

I'm having problems providing both a SAML based login and a traditional login form. The SpBundle keeps redirecting to the IdP. Can you suggest a way to have both of these working together?

Regards,

iainmckay commented 8 years ago

I figured it out, it was a problem in my security.access_control :)

Warxcell commented 6 years ago

Please post your solution. I have same problem :)

iainmckay commented 6 years ago

I don't remember exactly what we did, what with it being 2 years ago :P

This was the state of our for the SAML related records in our security.access_control section around that time.

access_control:
- { path: ^/saml/, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/(login|login_check)$, roles: [IS_AUTHENTICATED_ANONYMOUSLY, IS_AUTHENTICATED_FULLY] }
- { path: ^/$, roles: [IS_AUTHENTICATED_FULLY, IS_AUTHENTICATED_ANONYMOUSLY] }

If I remember correctly we had this mis-configured and was causing the issue.

Warxcell commented 6 years ago

I see. Seems that I have other problem. I have traditional form login and SAML, but when I open restricted page, symfony redirects me to SAML Login, not traditional form.