Google Workspace integration
Before bootstrap, create an OAuth client for AI Gateway in Google Cloud Console and limit sign-in to your organization's accounts.
To use Google Workspace as the identity provider, create one OAuth client for AI Gateway in Google Cloud Console before bootstrap.
For the redirect URI, scopes, and network constraints, follow IdP app registration in Bootstrap.
1. Create the OAuth consent screen
Section titled “1. Create the OAuth consent screen”In Google Cloud Console, create an OAuth consent screen and set User type to Internal.
AI Gateway does not restrict logins to a specific Google account domain. If the OAuth consent screen is not set to Internal, any Google account that can reach your OAuth client may be added as a member of your organization.
2. Create the OAuth client
Section titled “2. Create the OAuth client”- Go to Credentials → Create Credentials → OAuth client ID → Web application.
- Add the redirect URI to Authorized redirect URIs.
- Copy the client ID and client secret.
Values to enter at bootstrap
Section titled “Values to enter at bootstrap”In bootstrap step 3, select Google Workspace and enter the following values.
| Field | Value |
|---|---|
| Client ID | The client ID you copied in step 2 |
| Client secret | The client secret you copied in step 2 |
There is no issuer field for Google Workspace. AI Gateway uses
https://accounts.google.com as a fixed issuer.
Step 3 saves the Google Workspace values without checking them. A wrong client ID or secret shows up only when the first administrator signs in at step 7; fix it with recovery mode in Bootstrap.