I'm looking for a bundle to integrate CAS authentication on Symfony 2.3. I found these options and the truth is I'm not convinced any, since almost all bundles seem to be abandoned without updating.
1.- sensiolabs / CasBundle: https://github.com/sensiolabs/CasBundle The documentation is sparse and incomplete. I have not found any examples of how to use it.
2.- BeSimple / BeSimpleSsoAuthBundle: https://github.com/BeSimple/BeSimpleSsoAuthBundle With this I'm testing and I am having some problems. I think I'm on the 4th problem solved and I get behind another.
3.- Symfony CAS Client: https://wiki.jasig.org/display/CASC/Symfony+CAS+Client Totally outdated
Really, there are so few options to authenticate with CAS in symfony?
I have the same issue before and i resolved it using BeSimpleSsoAuthBundle but you have to make a few changes : Supposed that you have your user entity has been already implemented in your UserBundle, with a unique attribute sgid you have to override : 1- BeSimple\SsoAuthBundle\Security\Core\User :
2- Override also BeSimple\SsoAuthBundle\Security\Core\Authentication\Provider :
3- When user login to your application save needed information in session :
4- Now define a security listner in Application/UserBundle/Ressources/config/security_listeners.yml :
5- The BeSimple configuration should be like that :
6- The parameters.yml
7- The security.yml
You can also test
l3-team/CasBundle
it seems more recent & active and with a clearer documentation than BeSimpleSSoBundle.It also seems to support Single Sign Out.