Elgg using openam authentication service for single sign on

I am implementing Openam and Webagent which will help in restricting the access to a protected resource which in my case is Elgg application.

Well, whenever I try top access ELGG webpage, openam will redirect browser to openam login page for authentication and after user has successfully given his or her credentials, openam should redirect to elgg webpage I tried to access earlier.

Openam will generate a SSO token after successfully authenticating the user and will send the sso token(session) to elgg application which should not then ask for login credentials, it should open up that user's profile who had authenticated in openam.

iplanetDirectoryPro is the cookie openam sends to elgg.

I just need to know how and where to modify the php code in elgg to get this sso token and retrieve the attributes from this token and open up the session for the user.

Any help would be appreciated.

Thankyou :)

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking