How to get Google Client ID and Client Secret?

Google Client ID and Client Secret

Google Client ID is a unique identifier assigned to an application or website that uses Google services such as Google Sign-In or Google APIs. It is a string of characters that is generated by Google when you create a new project on the Google Developer Console.

The primary use of a Google Client ID is to enable users to authenticate themselves and grant permission to access Google services via your application or website.

When a user logs in with Google Sign-In, your application sends the Google Client ID to Google's servers, which validates the user's credentials and returns an access token that your application can use to access the user's Google services.

The Google Client ID also provides a way for Google to track the usage of its APIs and services, and to monitor and control access to those services.

By requiring applications to register for a Client ID, Google can ensure that only authorized applications are accessing its services, and that usage is properly monitored and billed if necessary.

Google Client ID plays a crucial role in enabling developers to integrate Google services into their applications and websites while ensuring the security and proper usage of those services.

How to get Google Client ID and Client Secret?

  1. Go to the Google Developers Console.

  2. Click Select a projectNew Project ➝ the Create button.

  3. Enter your Project name ➝ click the Create button.

  4. Click OAuth consent screen in the left side menu ➝ choose User Type ➝ click the Create button.

  5. Add Application name ➝ Support emailAuthorized domainDeveloper content information ➝ click the Save and Continue button.

  6. Complete all 4 steps in OAuth consent screen ➝ click the Back to Dashboard button.

  7. Go to Credentials ➝ click Create Credentials ➝ select OAuth client ID from the dropdown list.

  8. Open the dropdown list Application type ➝ select Web application ➝ enter the name of your OAuth 2.0 client.

  9. Enter your site URL in Authorized JavaScript origins ➝ in Authorized redirect URIs, enter the page URL where you wanted your users redirected back after they have authenticated with Google ➝ click the Create button.

  10. Copy your Client ID and Client Secret.

Related Posts

M.Muzammil

I am Muzammil, a Self-taught Web Designer & Developer. I haven't yet completed my college degree. Started learning programming at the age of 12 and still learning. I love to work in Javascript and make eye-catchy designs. Free for your calls :)

Be The First To Comment

Add Comment