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 :- Navigate to the Google Cloud Console.
- Select Library from the left-hand navigation menu. This opens the Library page.
- In the search field, enter "" and select from the search results.
- 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:
- Navigate to the Google Cloud Console.
- If you have not done so, follow the steps in the console to create an OAuth consent screen.
- Select Credentials from the left-hand navigation menu.
- On the Credentials page, select Create Credentials > OAuth Client ID.
- In the Application Type menu, select Web application.
- Specify a name for your OAuth custom web application.
- Under Authorized redirect URIs, click ADD URI and enter a redirect URI. Press Enter.
- Click CREATE, which returns you to the Credentials page.
- 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:
- Navigate to the Google Cloud Console.
- If you have not done so, follow the steps in the console to create an OAuth consent screen.
- Select Credentials from the left-hand navigation menu.
- On the Credentials page, select Create Credentials > Service account.
- On the Create service account page, enter the Service account name, the Service account ID, and, optionally, a description.
- Click DONE. This returns you to the Credentials page.