How to find your OAuth 2.0 client credentials in Gmail

This guide will walk you through creating a Google Auth client for Gmail in a structured manner, and use the credentials created on Keragon dashboard.

Go to console.cloud.google.com

1. Go to console.cloud.google.com

First, visit the console.cloud.google.com page.

Go to console.cloud.google.com

2. Click "Create project"

Go to Google developer console, cloud resource manager, and start by creating a new project.

Click 'Create project'

3. Fill in the "Project name" field

Enter your desired project name, for example, "Keragon Gmail Project".

Fill in the 'Project name' field

4. Click "Create"

Proceed by clicking the Create button.

Click 'Create'

5. Click "Select Project"

Select the newly created project.

Click 'Select Project'

6. Click the menu icon

Click the menu icon at the top left.

Click the menu icon

7. Click "Enabled APIs & services"

Access the enabled APIs and services section.

Click 'Enabled APIs & services'

8. Click "Search" field

Look for resources, docs, and products.

Click 'Search' field

9. Search "Gmail API" and select it from the dropdown

Enter "Gmail API" in the search bar and select it from the search results.

Search 'Gmail API' and select it from the dropdown

10. Click "Enable"

Enable the Gmail API.

Click 'Enable'

11. Click here

Go back to the "Enabled APIs" dashboard.

Click here

12. Click "OAuth consent screen"

Access the OAuth consent screen settings.

Click 'OAuth consent screen'

13. Click "Internal"

Select the Internal option under User Type.

Click 'Internal'

14. Click "Create"

Click CREATE.

Click 'Create'

15. Set the "App name"

Proceed by selecting and filling in the app name field. For example "Keragon Gmail App".

Set the 'App name'

16. Set the User support email field

Select the email address from the dropdown.

Set the User support email field

17. Add an email address under Developer contact information

Sent an email address under Developer contact information.

Add an email address under Developer contact information

18. Click "Save and continue"

Save and proceed to the next step.

Click 'Save and continue'

19. Click "Add or remove scopes"

Access the option to add or remove scopes.

Click 'Add or remove scopes'

20. Search for "Gmail API"

In the Filter, search for Gmail API.

Search for 'Gmail API'

21. Click here

Enable all scopes by clicking the highlighted checkbox.

Click here

22. Click "Update"

Click the Update button.

Click 'Update'

23. Click "Save and continue"

Save and move on to the next step.

Click 'Save and continue'

24. Click "Back to dashboard"

Return to the main dashboard.

Click 'Back to dashboard'

25. Click "Credentials"

Access the credentials section.

Click 'Credentials'

26. Click "Create credentials"

Initiate the creation of new credentials.

Click 'Create credentials'

27. Click "OAuth client ID"

Select the OAuth client ID option.

Click 'OAuth client ID'

28. Click "Application type"

Click the Application type field.

Click 'Application type'

29. Click "Web application"

Select the Web application type.

Click 'Web application'

30. Click "Add URI"

Add new URIs under Authorized redirect URIs.

Click 'Add URI'

31. Fill "https://api.us-east-1.keragon.com/rest/auth/callback"

Add a new URI.

Fill 'https://api.us-east-1.keragon.com/rest/auth/callback'

32. Click "Add URI"

Add the URI to the list and add another one.

Click 'Add URI'

33. Fill "https://api.us-1.keragon.com/rest/auth/callback"

Enter the second URI here.

Fill 'https://api.us-1.keragon.com/rest/auth/callback'

34. Click "Create"

Create the credentials.

Click 'Create'

35. Copy your Client ID and Client Secret

Copy the Client ID and secret and paste them into your Keragon Gmail authentication.

Copy your Client ID and Client Secret

You are now set up to authenticate Gmail on Keragon dashboard and start building your HIPAA-compliant workflow.

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

Articles in this section