Basically today we have seen almost every website needs you to register yourself before you can post or take part in any discussions to the website. But it become a tedious task to register and login to many different sites. Solution is to provide the users the option to Login with existing Google / Facebook account as almost everyone have Facebook and Google account.
In this post, I am going to explain how to integrate the Google Login / Sign in for your website.
Download Source Code
For this, First you need to create your Client ID, Client Secret and your developer API key.
For this go to https://code.google.com/apis/console/
Enter the Project name and submit on Create.
Wait for new seconds, the new page will open like this.
On the left menu, click on API & Auth and click on credentails. Then on center click on Add Credential , under that, click on oAuth 2.0 Client ID.
Select the type of Application and the application Information to get the credentials.
Add them in the code(mentioned in code, where it is to be added).
If you like the Post, please share on facebook and google.
Other related Posts:
Login with Facebook Account
Introduction to Natural Language Processing
ORCAM - Blind can read too.!!!
Introduction to JSON
You can also check our Microservices post
Introduction to Microservices