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

Eduardo Fuerte
Eduardo Fuerte used Ask the Experts™
on
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!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2018
Distinguished Expert 2018

Commented:
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.
Most Valuable Expert 2018
Distinguished Expert 2018
Commented:
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.
Eduardo FuerteDeveloper and Analyst

Author

Commented:
Hi Chris

Thank you for help.

Very good starting point!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial