dFlow
Security and Team Management

SSO with Google Workspace

Configure Google Workspace (Google Cloud OAuth) as an OIDC SSO provider for dFlow.

Use this walkthrough to fill out Account → Single Sign-On → Add OIDC for Google Workspace.

1. Google Cloud Console (do this first)

  1. Open Google Cloud Console → APIs & Services → Credentials.

  2. Create an OAuth 2.0 Client ID, type Web application.

  3. Before you can fill in the redirect URI, pick your Provider ID in the dFlow form (for example acme-google). The modal shows the URI live:

    https://app.dflow.sh/api/auth/sso/callback/acme-google

    Use your own dFlow host if you are self-hosted or on staging.

  4. Paste that exact URI into Authorized redirect URIs in Google Cloud Console and save.

  5. Copy the generated Client ID and Client Secret.

If the OAuth consent screen is still in Testing mode, only test users you explicitly added can sign in. Add your team as test users, or publish the app once setup works.

2. Fill in the dFlow modal

FieldValue
Provider IDacme-google (or whatever you chose; this locks in the redirect URI)
Email domainsacme.com, acme.co — your Workspace domain(s)
Issuer URLhttps://accounts.google.com
Client IDfrom Google Cloud Console
Client secretfrom Google Cloud Console
Scopesopenid email profile (default is fine)
Token auth methodclient_secret_basic (Google supports this)
Discovery endpointleave optional — Google publishes discovery at https://accounts.google.com/.well-known/openid-configuration
Authorization / Token / JWKS endpointsleave blank — discovery fills these in
Use PKCEkeep it On
Skip discoveryleave Off

3. Trusted origins

dFlow adds the issuer origin automatically when you save. Confirm https://accounts.google.com appears under Trusted origins. If it is missing, add it and click Add origin.

4. Save and test

  1. Click Add provider.
  2. Sign out, then on the dFlow sign-in screen enter an email on your Workspace domain (for example [email protected]).
  3. You should redirect to Google, authenticate, and bounce back to the callback URL signed in.

SAML instead of OIDC

If you prefer Google as a SAML IdP, use Add SAML instead. You need the Entry point / SSO URL, IdP certificate (PEM), and optionally metadata XML from the Google Admin SAML app. See SSO with any OIDC or SAML provider.

On this page