By Hemanta Sundaray on 2021-10-30
Google APIs use the OAuth 2.0 protocol for authentication and authorization. Therefore we must obtain OAuth 2.0 client credentials from the Google API console.
Go to Google project dashboard at the following link:
https://console.cloud.google.com
Click on NEW PROJECT.
Name the project and click the CREATE button.
Select APIs and services, then OAuth consent screen.
Select External and click the CREATE button.
Fill out the application name, scroll to the bottom and click the SAVE & CONTINUE button. No other info should be filled out in the consent screen at this time.
Click Credentials in the sidebar and click on the + CREATE CREDENTIALS button.
Select OAuth client ID.
Select Web application.
Also, fill out Authorized JavaScript origins and Authorised redirect URIs.
Copy your Client ID & Client secret in a safe place.
Note that Client ID is a public token. This means that we won't have any issues if anybody gets access to this ID. The Client secret, on the other hand, is a private token. We don't want anybody to get access to this.
Continue to part-3.