Monday, 15 July 2013

Liferay SSO with Facebook



From Liferay 6.0 Facebook SSO Single Sign-On is introduced.
Facebook SSO using OAuth 2.0. 

It's a very easy steps to do configure Facebook SSO with Liferay.




  • To create Facebook SSO, you first have to have a Facebook application account, and than go to facebook developer site ,create a new Facebook application account.You have to set Site URL.From facebook application account you can get Application ID and Secret Key.




 
  • Go to your Liferay Portal Site, In control Panel click on 'Portal Setting' under Portal tab.
  • Now Go in Portal setting > Authentication > General. here you must have to enble 'Allow stranger to create account'.







  • Go to Authentication > Facebook. Enable facebook SSO. Set Application ID and Key you get from Facebook application account.
    Also you need to set "Redirect URL". http://mydomain.com/c/login/facebook_connect_oauth.
    if you are doing all this in local than you must have to map a domain name (127.0.0.1  -- mydomain.com) and also have to set in Community Virtual host as well.



  • Now go to Sign In Portlet, You can see a Facebook logo with link in the portlet.Click on the link and login in facebook.After login in facebook you redirect to Liferay Portal Page with a following Screen to add new user in Liferay,if you are alredy a member/User of Portal than user forced to automatic logged in using the SSO.






No comments:

Post a Comment

Infinidb _CpNoTf_ problem

infinidb table with a varchar column insert string as a '_CpNoTf_' while using Cpimport. The Problem is occured if inserted string ...