How to get Google Client ID and Client Secret?

Add Google sign-in to your site and save time for your customers. Google sign-in allows site visitors to log in through Google in one click. Before integrating Google sign-in into your website, you need to create a Google client ID and Client Secret. 

To do this go through the following steps:

Note: To generate a Google Client ID and Client Secret, you must be signed in to a Google account.

  • Enter your Project name ➝ click the Create button.

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

  • Add Application name ➝ Support email ➝ Authorized domain ➝ Developer content information ➝ click the Save and Continue button.

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

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

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

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

  • Copy your Client ID and Client Secret.

 

Was this article helpful?
0 out of 0 found this helpful

Table of Contents