Google + (SSO) social login configuration with Liferay Portal
v Social SSO with Google +
Follow below steps to configure Google+ sso for lIferay portal.
Some time the requirement is like to client want to allow users that authenticated by google authentication.
Ø Google site configuration
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 – Tanzania business portal
-
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.
v Liferay site configuration
- Download social google login hook source code and prepare war file from https://github.com/liferayone/LR62/tree/master/google-login-hook
- Or get direct war file form https://github.com/liferayone/LR62/blob/master/google-login-hook-6.2.0.1.war
- Once download / prepare the war for google login hook then deploy it on portal.
- Login with admin credentials and go to Admin (Control) panel
- Then authentication and check for Google tab.
- 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,
Comments