TDV Adapter for REST

Build 22.0.8462

Create a Custom OAuth App

Introduction

You can use a custom OAuth app to authenticate a service account or a user account. You can always create a custom OAuth application, but note that desktop and headless connections support embedded OAuth, which simplifies the process of authentication.

When To Create a Custom OAuth Application

CData embeds OAuth Application Credentials with CData branding that can be used when connecting via either a Desktop Application or from a Headless Machine.

You may choose to use your own OAuth Application Credentials when you want to

  • control branding of the Authentication Dialog
  • control the redirect URI that the application redirects the user to after the user authenticates
  • customize the permissions that you are requesting from the user

Enable the

Follow these steps to enable the :

  1. Navigate to the Google Cloud Console.
  2. Select Library from the left-hand navigation menu. This opens the Library page.
  3. In the search field, enter "" and select from the search results.
  4. On the page, click ENABLE.

Create an OAuth Application for User Accounts (OAuth)

When using AuthScheme=OAuth, and you're using a web application, you must create an OAuth Client ID Application. For desktop and headless flows, creating a custom OAuth application is optional.

Follow these steps to create a custom OAuth application:

  1. Navigate to the Google Cloud Console.
  2. If you have not done so, follow the steps in the console to create an OAuth consent screen.
  3. Select Credentials from the left-hand navigation menu.
  4. On the Credentials page, select Create Credentials > OAuth Client ID.
  5. In the Application Type menu, select Web application.
  6. Specify a name for your OAuth custom web application.
  7. Under Authorized redirect URIs, click ADD URI and enter a redirect URI. Press Enter.
  8. Click CREATE, which returns you to the Credentials page.
  9. A window opens that displays your client Id and client secret. Although the client secret is accessible from from the Google Cloud Console, we recommend you write down the client secret. You need both the client secret and client Id to specify the OAuthClientId and OAuthClientSecret connection properties.

Create an OAuth Application for Service Accounts (OAuthJWT)

When using AuthScheme=OAuthJWT, you must create a Service Account Application. Follow these steps:

  1. Navigate to the Google Cloud Console.
  2. If you have not done so, follow the steps in the console to create an OAuth consent screen.
  3. Select Credentials from the left-hand navigation menu.
  4. On the Credentials page, select Create Credentials > Service account.
  5. On the Create service account page, enter the Service account name, the Service account ID, and, optionally, a description.
  6. Click DONE. This returns you to the Credentials page.

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8462