SSO via google+

Social SSO with Google +

Follow below metioned steps to configure Google+ sso with liferay portal.

Configuration in  developers.google.com

1. https://console.developers.google.com Login with google credentials.

 

2. Create new project.

 

3. Add Project Name
 

 

 

 

4. Click on create and go to dashboard to find activated google+ api for     the project


 5. Enable the API services

 

 6. Find the Credentials options at left corner of dashboard

                                    

7. Create Client ID and Secrete key for app

 

Note before create client ID they ask for create/configure consent screen,

so configured consent screen first.

 
     
 

 

8. Save the details mentioned into consent screen from like Product name, homepage URL, Policies page URL, terms Page URL, logo etc..

 

9. Create Client ID

 
-          Select Web Application
-          Add Name and Redirect URI’s
-          Name – project  portal Name      
-          Redirect URI’s -  http://localhost/c/portal/google_login?cmd=token
-          Click on Create button
 
 
# Save Client Id and Secrete key that we need into Liferay configuration.
 

- Liferay site configuration 

 
  1.  Download social google login hook source code and prepare war file from   https://github.com/liferayone/LR62/tree/master/google-login-hook
  2. Or get direct war file form https://github.com/liferayone/LR62/blob/master/google-login-hook-6.2.0.1.war
  3. Once download / prepare the war for google login hook then deploy it on portal.
  4. Login with admin credentials and go to Admin (Control) panel
  5. Then authentication and check for Google tab.
  6. Enable the check box and add the required details i.e. Client ID and Secrete key and saved.
 
Now we can check Google social google is enabled at Login portlet of liferay.
 
- Source code for google login hook is available at below link,
Blogs
Thank u for such a important article. really useful for me.