Set up OAuth2 in the Google Cloud Platform
- Updated: 2023/11/02
Set up OAuth2 in the Google Cloud Platform
Create an application in the Google Cloud Platform Console and retrieve the OAuth2 parameters to configure them in the Control Room.
Procedure
- Log in to the Google Cloud console.
- From the projects list, select a project or create a new one.
- Enable the APIs for the Google G Suite applications you want to automate, such as (Google Drive API, Google Calendar API, and Google Sheets API).
-
At the top-left, click Menu > APIs & Services > Credentials.
If you are creating credentials for the OAuth client ID for the first time in Google Cloud Console, then you must perform the following steps to configure the OAuth consent screen and choose scopes:
- In the Google Cloud console, navigate to Menu > APIs & Services > OAuth consent screen.
- Select the user type for your app, then click Create.
- Complete the app registration form, then click Save and Continue.
- Click Add or Remove Scopes. After selecting the scopes required by your app, click Save and Continue.
- On Test users screen, enter your email address, then click Save and Continue.
- Review your app registration summary and click Back to Dashboard. However, you can click Editbutton if you want to make any changes to OAuth consent screen.
- Click +CREATE CREDENTIALS and select OAuth client ID.
- In the Application type field, choose Web application from the drop-down.
- Enter the application name.
- Log in to the Control room as an administrator and navigate to Manage > OAuth connections.
- Click Create connectiontab and select Custom option from the Provider type field.
- Copy the Callback URL and navigate back to the Create OAuth client ID page in Google Cloud Console.
- Click + ADD URI button under Authorized Redirect URIs and paste the URI in the URIs field.
- Click Create.
-
On the Credentials page, select Download
OAuth client from Actions menu to
download and save the Json file.
From the downloaded Json file, make a note of the authentication details (such as client ID, client secret, authorization URI, token URI, redirect URI and so on) to integrate the OAuth connection in the Control Room.