Skip to content

Single Sign-On (SSO)

Warden supports Single Sign-On via Google OAuth. Once configured, users can sign in with their Google account instead of a username and password.

  1. Go to the Google Cloud Console
  2. Create or select a project
  3. Navigate to APIs & Services → Credentials
  4. Click Create Credentials → OAuth client ID
  5. Select Web application
  6. Add your Warden callback URL as an authorized redirect URI:
    https://your-warden-instance.com/api/auth/sso/google/callback
  7. Copy the Client ID and Client Secret
  1. Log in as an admin
  2. Go to Settings → Security → SSO
  3. Enter your Client ID and Client Secret
  4. Click Test to validate
  5. Toggle Enable Google SSO on
  6. Save

The Sign in with Google button now appears on the login page.

SettingDefaultDescription
Client IDFrom Google Cloud Console
Client SecretFrom Google Cloud Console (masked after saving)
Redirect URLAuto-detectedOverride only if using a custom proxy setup
Allowed DomainsAllComma-separated list of email domains (e.g., company.com, partner.org)
Auto-ProvisionOnAutomatically create accounts for new Google users

Restrict SSO to specific email domains. When configured, only users with matching domains can sign in. Leave empty to allow any Google account.

Matching is case-insensitive.

When enabled (default): Users signing in with Google for the first time are automatically created with the Viewer role. Their display name, email, and avatar are populated from Google.

When disabled: Only users with existing accounts can sign in via Google. New users see a “no account found” error. Admins must create accounts manually first.

ScenarioWhat Happens
New Google user, no matching emailNew account created (if auto-provision is on)
Google email matches an SSO-only accountAccounts are linked automatically
Google email matches a password-protected accountBlocked — prevents account takeover

Users created through SSO have no password — they can only sign in via Google. An admin can set a password for them if local login is also needed.

ErrorSolution
”Google SSO is not configured”Check Client ID and Client Secret in Settings
”Your email domain is not allowed”Add the domain to Allowed Domains or clear the field
”No account found”Enable auto-provision or create the user manually
”Google sign-in was cancelled”The user needs to approve the Google consent screen
”Email address is not verified”The user needs to verify their email in Google account settings