Skip to main content

Creating a Google OAuth client

Some Google apps listed in Adenin's App Directory require you to create a custom app registration first. These apps are:

  • Google Fit
  • Google Mail
  • Google Drive

In this tutorial we'll walk you through obtaining the OAuth registration.

  1. Go to your Google Cloud Console, and add a new project.

    alt text

  2. Name the project My adenin apps

    alt text

  3. Then select your project and navigate to Library

    alt text

  4. Type in Google Drive or whatever app you wish to add first.

    Either use a different app or repeat this and the next step for the other apps you wish to add. You can add multiple apps into the same project.

    alt text

  5. Enable the API

    alt text

  6. Once you enabled the app(s) you need, navigate to OAuth consent screen

    alt text

  7. Click on Get started

    alt text

  8. Select your email address from the dropdown

    alt text

  9. Select your audience as Internal if you use Google Workspace, or External in any other case. External will impose a limit of 100 connections. We're continuing this tutorial as External which means steps will be slightly different for Internal.

    alt text

  10. Once finished, on the next page click on Create OAuth client

    alt text

  11. Select Web application, enter the name as My adenin app and then enter as your Authorized JavaScript origin https://app.adenin.com and as your redirect URI https://app.adenin.com/oauth2connector/returnUrl

    alt text

  12. After you save this, you will receive your Client Id and Client secret

    alt text

  13. Copy these values across to your adenin connector configuration section

    alt text

  14. Then go to Audience and click Publish app

    alt text

  15. Once this is complete, click on Authorize access in your adenin connector configurations

    alt text

  16. You will receive a warning from Google that the app isn't verified which can be ignored as you're not planning to ship this project to the general public. Click on Go to adenin.com (unsafe)

    alt text

  17. Finally your app will show as being connected successfully

    alt text

I am getting error 403

alt text

If you receive this error straight after connecting to your Google app, then repeat steps 3-5 above for the app in question. If that doesn't solve it, please contact support with a screenshot of your error message.