100% Free · Open Source GPLv2 · Zero setup requiredGet the Plugin

Opens in a new tab
ITX UserOps
Experimental

SSO with Google

An OAuth client in Google Cloud, an Internal consent screen, and the one setting that decides whether “any Google account” can reach your login.

Experimental. Single sign-on is implemented and tested against Google, but not against every Workspace configuration. Pilot it with one account before rolling it out, and keep a password or passkey that works — never make SSO the only way into the site. The SSO overview explains the module itself; this page is the setup.

Before you start

  • ITX UserOps Premium active, and the site served over HTTPS.
  • Access to Google Cloud Console — any Google account can create a project, but the Internal consent screen below requires the project to belong to a Google Workspace organisation.

Open ITX UserOps → Integrations → SSO in one tab. It shows the exact callback URL for your site, shaped like:

https://your-site.example/wp-login.php?action=itxuo_sso_callback

Copy yours from the screen.

1. Create or pick a project

In the Cloud Console's project picker, create a project (or reuse one you already keep for this site). No APIs need enabling — OIDC sign-in is built into OAuth credentials.

APIs & Services → OAuth consent screen (Google is renaming this area "Google Auth Platform"; the choices are the same).

The User type decision is the security decision of this whole page:

  • Internal — only accounts in your Workspace organisation can sign in. This is the analogue of Entra's tenant pinning, and the right choice for a staff login. No verification process, no publishing status.
  • External — *any* Google account can complete the sign-in. The plugin's own gates still apply — see step 5 — but prefer Internal whenever the option exists.

Fill the app name and support email; nothing else is required for sign-in.

If you must use External (no Workspace organisation), note that publishing status Testing only allows the test users you list — fine for the pilot, but sign-ins for everyone else fail with access_blocked until the app is published.

3. Create the OAuth client

APIs & Services → Credentials → Create credentials → OAuth client ID.

  • Application type — Web application.
  • Name — the site's name.
  • Authorized redirect URIs — add the callback URL from the Integrations screen, exactly, including the query string. Authorized JavaScript origins are not needed.

Create it, and copy the Client ID and Client secret from the confirmation dialog. Unlike Entra, Google's client secrets do not expire on a schedule — but treat a leaked one as a rotation, not a shrug.

4. Configure the plugin

Back on ITX UserOps → Integrations → SSO:

  1. Tick the experimental acceptance if you have not already — it is the module's on-switch.
  2. Under Google: paste the Client ID and Client secret.
  3. Enable "Sign in with Google" and Save all.

The secret is stored encrypted at rest.

5. Decide who gets an account

A Google sign-in for an email that already has a WordPress account signs that account in. For unknown emails, just-in-time provisioning decides:

  • Domain → role mapping (recommended): yourcompany.com → editor creates accounts only for addresses on your domain, with the role you chose.
  • Open provisioning (jit_open): anybody Google authenticates gets an account here. Read that sentence again with an External consent screen in mind — that is every Gmail address in the world. With Google especially, mapping is the setting that keeps "sign in with Google" meaning "sign in, staff" rather than "sign up, everyone".

Disabled accounts stay disabled and pending accounts stay pending — a provider sign-in does not bypass the plugin's gates.

6. Pilot with one account

In a private window, sign in with one ordinary Workspace account — not your main administrator. Confirm it lands with the right role, then check ITX UserOps → Activity Log for the sign-in with the provider named, and the JIT creation if one happened.

When it does not work

SymptomCause
No "Sign in with Google" buttonClient ID or secret is empty, or the experimental box is unticked
redirect_uri_mismatchThe URI in the Cloud Console does not exactly match the callback URL — compare character by character, including the query string
access_blockedExternal consent screen still in Testing and this account is not a listed test user — or your Workspace admin restricts third-party apps
invalid_clientClient ID and secret do not belong together — re-copy both from the same credential
Signs in, but as a new account rather than the existing oneThe Google account's email does not match the WordPress account's email exactly

Locked out entirely? Getting back in — SSO respects the recovery paths, and a password or passkey you kept working is the way back.

Also worth reading

Log in

Vote on ideas, submit your own and join the discussion.