The 6 Steps to Google Authentication as Web Service in ASP.NET
Gone are the days when users were required to sign-in on different websites using different IDs. Initially, the number websites were less and it was not that tedious to create a username and password for authentication. As the number of websites and even users have increased, it is practically impossible for people to remember username and password for every website and it is difficult for companies to retain customers with this trend in place.
The current approach is to make use of the authentication
via popular mediums. For example, if you are accessing a website on your Android phone, a website can authenticate you with the Google credentials and you would not be required to sign in on the website. As a user, you are not required to do anything extra, but as a developer, you would need to create a website that can fulfill this request. In this blog, we will learn how to get Google API access using Google+.
You need to be a Google API user which means that there should be an established project before you follow the steps below. If you are not a user, then follow these steps before proceeding to creating a client ID. If you already have a project, then, skip the next section and follow the steps in latter section.
Create a Project
To create a project, follow these steps:
Step 1: Visit Google APIs page.
Step 2: Click the dropdown icon on Project and select Create project. You will find this on the top left side of the page near the Google APIs.
Step 3: Name your project. Select your preference regarding the updates notification and accept the terms of service. Click Create.
Once you have created a project, you will have access to the dashboard from where you can enable or disable API settings as per your requirements. The available options include Chrome Web Store API, Cloud Network Monitoring Performance API, Contacts API, and Content API for shopping. Now, follow the steps below to create a new client ID.
Create a Client ID
To create a client ID, follow these steps:
Step 1: Visit the Google APIs page and login with your Gmail credentials.
Step 2: Click APIs & auth from the left-hand navigation and then click Credentials.
Step 3: From the main screen, Click Create new Client ID to open a dialog box.
Step 4: Select Web application under Application type.
Step 6: Click Create Client ID.
In case of any discrepancy in the information or set up, you can always edit the information or delete the created client ID.
You can easily create a project or a new client ID following the steps above. Explore the project dashboard for other interesting features that can make your work easy.