Jerome,

Interesting.

Is your Facebook-integrated CAS server example source code available somewhere? Perhaps share via github?

Andrew


On 8/23/2011 11:00 AM, jleleu wrote:
Hello,

I did some testing on facebook integration with CAS.
I did not find how to create a specific handler for facebook, the way to do it 
is to make users authenticate at facebook and come back to the CAS server.
I use OAuth protocol for facebook : OAuth is the right protocol if you want to 
integrate with social networks.
I use the Scribe library in Java 
(https://github.com/fernandezpablo85/scribe-java) : you can integrate through 
OAuth with Facebook, Twitter, Yahoo, Gmail...
I add a link to the "authorizationUrl" for facebook on the CAS login page. You 
click on this link and the facebook login page appears for authentication. After 
authentication, you are redirected to a specific url you choose : in my case 
https://myserver/cas/facebook, which is a controller outside the CAS webflow.
At this url (/cas/facebook), you get a temporary code, with it you can get an 
access token and finally get the facebook identity of the authenticated user 
(that's the way OAuth works). At this point, you are sure the user is 
authenticated in facebook, it's up to you to give him a CAS identity.
It should work the same way for other social networks.
Regards,
Jerome



--
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-dev

Reply via email to