Skip to content
AI GatewayAI Gateway Manual

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.

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.

  1. Go to Credentials → Create Credentials → OAuth client ID → Web application.
  2. Add the redirect URI to Authorized redirect URIs.
  3. Copy the client ID and client secret.

In bootstrap step 3, select Google Workspace and enter the following values.

FieldValue
Client IDThe client ID you copied in step 2
Client secretThe 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.