Add a Google Identity Provider
This guide walks you through registering a Google identity provider (IdP) in ThunderID. Once configured, you can add Sign in with Google to any application by including a Google social login executor in its authentication flow.
Prerequisites
- ThunderID is running. See Get Started.
- You can sign in to the ThunderID Console.
- A Google account with access to Google Cloud Console.
Step 1: Register an OAuth App in Google Cloud Console
-
Go to Google Cloud Console and sign in.
-
Select or create a project.
-
In the navigation menu, go to APIs & Services → Credentials.
-
Click Create Credentials → OAuth client ID.
-
Set Application type to Web application.
-
Under Authorized redirect URIs, add the callback URL for your ThunderID deployment:
https://<your-thunderid-host>/gate/callbackYou can copy this value exactly from the Console in the next step, so it does not need to match character for character here.
-
Click Create. Google displays your Client ID and Client Secret. Copy both values. You need them in the next step.
Step 2: Configure the Google Connection in the Console
- Sign in to the ThunderID Console.
- Navigate to Connections.
- Click the Google card. If the card shows Not configured, this opens a form to create the connection. If it already shows Configured, this opens the existing connection instead.
- The form shows a setup hint with the Redirect URI. Copy it and add it to your Google OAuth client's authorized redirect URIs if you have not already done so.
- Enter your Client ID and Client secret from the previous step.
- Click Create connection. If you opened an existing Configured connection instead, update the credentials and click Save changes.
ThunderID automatically uses the Google authorization, token, userinfo, and JWKS endpoints. You do not need to supply them.
The connection requests the openid email profile scopes by default. To change this, open the connection after creation and set Scopes on its edit page.
The Google connection also accepts a prompt field to control the Google consent screen behavior (for example, consent or select_account). Set it on the connection's edit page, or through the Connections API.
Next Steps
- Connect an IdP to an Application: Add this Google IdP to an application's authentication flow.
- Manage Identity Providers: Update or delete identity providers.