Creating a Custom OAuth App
Registering Your Application
The OAuth user consent flow involves the authenticating user interacting with Google using the browser. To facilitate this, the adapter is already registered as an OAuth application, but you may need to configure values specific to your application or organization. You may also want to display your own information instead of the CData app's when users log in to grant permissions.
- Log into the Google API Console.
- Click Create Project or select an existing project.
- Open the API Manager from the main menu and click Credentials -> Create Credentials -> OAuth Client Id.
If you are connecting from a desktop application, select Other.
If you are connecting from a Web application, select Web Application. In the Authorized Redirect URIs box, enter the URL you want to be used as a trusted redirect URL, where the user will return with the token that verifies that they have granted your app access.
- Click Create. The OAuthClientId and OAuthClientSecret are displayed.
- Click Library -> Spanner API -> Enable API.
When to Create a Custom OAuth App
You might want to create a custom OAuth app to change the information displayed when users log into the Google Spanner OAuth endpoint to grant permissions to the adapter.
Follow the steps below to create a custom OAuth app and obtain the connection properties in a specific OAuth authentication flow.
Create a Custom OAuth App: Desktop
Register your Google Spanner app on https://console.cloud.google.com/apis/credentials to obtain the following connection properties: