Could you point if phpCAS that uses API for authenticating users against a CAS server could be integrated at an existing Codeigniter project?

Hi Experts

Could you point if  phpCAS that uses API for authenticating users against a CAS server (WebSSO CAS) could be integrated at an existing Codeigniter project?

CAS - Central Authentication Server

I'm implementing a SSO (Single Sign-On)  funcionality to allow a web app conexion based on user id and  correspondent user's data obtained from LDAP (AD-Active Directory)

phpCAS

I'm planning to implement the SSO functionality at PHP Codeigniter's site index.php.

Thanks in advance!
Eduardo FuerteDeveloper and AnalystAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chris StanyonWebDevCommented:
Hey Eduardo,

I'm not familiar with the process you're talking about, but as for CodeIgniter, you should be able to implement the phpCAS class as a 3rd party library in your installation.

The class file from the source code repo would need to be dropped into the Libraries folder of your installation. You would then need to load it up to use it (either Autoload or by explicitly loading it)

Have you used this class outside of CodeIgniter? If so, then it's use would effectively be the same. You would instantiate it in your controller, and then call the various methods on that instance.
Chris StanyonWebDevCommented:
Hey Eduardo,

Just done a quick search and someone has already wrapped the official phpCAS library into a CodeIgniter library. You can find it here - https://github.com/eliasdorneles/code-igniter-cas-library.

The docs show you how to install it, configure it and use it.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Eduardo FuerteDeveloper and AnalystAuthor Commented:
Hi Chris

Thank you for help.

Very good starting point!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Internet Protocol Security

From novice to tech pro — start learning today.