Set up Google Workspace single sign-on
This guide gets people signing in to Weavestream with their Google Workspace accounts. You do everything in two places: the Google Cloud console and Admin → Settings → Single sign-on in Weavestream. No server access or environment variables are needed.
You need to be a Weavestream super admin (the Single sign-on settings are SUPER_ADMIN only) and a Google Workspace user who can create a project in your organization's Google Cloud.
This is not the Google Workspace integration. The integration syncs people, devices and groups; this guide is about signing in. Each needs its own Google Cloud project (see
step 1 ).
If your deployment sets
SSO_OIDC_ISSUERin its environment, the settings tab is read-only and says "Managed by environment variables". The environment wins. See Environment variables.
Throughout, replace the placeholders with your own values: <client-id>, <secret-value> and <weavestream-api-url>.
How Google differs from Entra
Before you start
- In Weavestream, open Admin → Settings → Single sign-on.
- Tick Enable single sign-on. The other fields appear only while it is ticked. Do not save yet.
- Choose Other OpenID Connect provider.
- Copy the Callback URL (the Copy button). It looks like
<weavestream-api-url>/v1/auth/sso/callback. You will paste it into Google in step 3.
Google accepts a callback URL only if it uses https and a real host name. Plain http works only for localhost, and a raw IP address is refused. If the callback URL looks wrong, the deployment's API_URL is not set to the public address. Fix that first.
1. Create a Google Cloud project
- Open the Google Cloud console with an account in your Google Workspace organization.
- Create a new project, for example
Weavestream SSO. - Set its Organization to your Workspace organization. Internal is offered in step 2 only for a project that belongs to an organization.
Use a project of its own. The audience applies to the whole project, so do not share it with the Google Workspace integration or any other app that needs an External audience.
2. Configure the app with an Internal audience
- In the project, open Google Auth Platform and select Get started.
- Enter an App name, for example
Weavestream, and a User support email. - Under Audience choose Internal.
- Enter a contact email address, accept Google's policy, and create the app.
Do not use External
With an External audience, Google can let any Google account reach Weavestream, including personal Gmail accounts. With Create accounts automatically on, those people would get an account, and with Link accounts by email on, the match would rest only on Google's word for an address outside your organization.
You do not need to add scopes, publish the app or send it for verification. Weavestream asks only for openid, profile and email.
3. Create the OAuth client
- Open Google Auth Platform → Clients → Create client.
- For Application type choose Web application and give it a name.
- Leave Authorized JavaScript origins empty.
- Under Authorized redirect URIs add the Callback URL you copied from Weavestream. It must match exactly.
- Select Create.
- Copy the Client ID (
<client-id>, it ends in.apps.googleusercontent.com) and the Client secret (<secret-value>) straight away. Google shows the secret only now.
Google says a change to a client can take from 5 minutes to a few hours to take effect. It also deletes a client that is unused for six months.
4. Enter the values in Weavestream
In Admin → Settings → Single sign-on:
- Tick Enable single sign-on if it is not ticked, and choose Other OpenID Connect provider.
- Set Provider name to what people should see, for example
Google. The button will read "Sign in with Google". - Set Issuer URL to exactly
https://accounts.google.com, with no trailing slash. - Paste
<client-id>into Client ID. - Paste
<secret-value>into Client secret. Do this after the issuer and client ID: changing either one empties the secret. - Leave Scopes as
openid profile email. Withoutemail, nobody can be matched on first sign-in. - Leave Allowed tenant ID (under Advanced settings) empty. A value there blocks every Google sign-in.
- Choose the account rules (you can change them later):
- Link accounts by email: turn on if your people already have Weavestream accounts with the same email address as in Google. Super admins and accounts with platform capabilities are never linked this way (step 6).
- Create accounts automatically: turn on only if everyone in your Workspace organization should get an account. New accounts have no access until you grant it.
- Trust the provider's multi-factor sign-in: leave off. It has no effect with Google.
- Leave Allow password sign-in on for now.
- Select Save single sign-on settings. Confirm with your usual two-factor code or password when asked.
To limit sign-in to some of your people, leave Create accounts automatically off. Then only someone who already has a Weavestream account, linked to Google by email or by hand, can sign in. You can also manage the app per organizational unit in the Google Admin console, under Security → Access and data control → API controls.
5. Test the connection
Select Test connection. It checks, from the Weavestream server, that Google's discovery document and signing keys can be fetched, that the issuer matches, and that this deployment can finish a sign-in (API_URL is under the same origin as APP_URL).
It does not sign anyone in. It cannot check the client ID, the client secret, the redirect URI or the Internal audience. Step 6 does.
6. Link your own admin account
Super admins and accounts with platform capabilities are never linked by email, so link yours yourself. This is also what makes it safe to turn off password sign-in later.
- Sign in the usual way (password and two-factor code), then click your avatar and open Profile → Security → Single sign-on.
- Choose Link Google account, confirm when asked, and pick your Workspace account at Google.
- You return to Profile with a message that the account is linked.
- Sign out, choose Sign in with Google, and enter your Weavestream two-factor code. You should land in Weavestream.
Then check the audience: in a private window, choose Sign in with Google and pick a personal Gmail account. Google must refuse it with org_internal. If Google lets it through, the audience is not Internal: turn single sign-on off until step 2 is fixed.
Other accounts with platform capabilities must link themselves the same way, while they can still sign in with a password. Everyone else is linked on first sign-in (if you enabled Link accounts by email), or can link themselves from the same place. Someone who has no Weavestream two-factor yet is asked to set it up on first sign-in.
7. Optionally turn off password sign-in
Once at least one super admin has linked their account, and every account with platform capabilities has linked itself (step 6):
- Return to Admin → Settings → Single sign-on.
- Untick Allow password sign-in and save.
Everyone except super admins must now use Google, including in sessions already open. Super admins keep password sign-in so that a Google problem cannot lock you out. Read Break-glass before you do this; it applies to Google too.
Troubleshooting
Google shows some errors on its own page. Weavestream's errors appear on the login page and are deliberately generic: the detail is in the audit log (auth.sso.login.failure, with a fixed reason code, never a token) and the API log.