Skip to content

Let users sign in with their Google account.

  • CLI:

    bridge setup sso --provider google --client-id <id> --client-secret <secret>
    
  • Control Center (your admin dashboard at app.thebridge.dev): Auth → LoginGoogle SSOConfiguration

  • MCP (AI-assistant integration): coming soon.

Either path saves the credentials and turns the connection on. You need a Google OAuth client first; see below.

  1. In Google Cloud Console, create (or open) an OAuth 2.0 Web application client. (The Control Center’s Configuration dialog has a Find your keys here shortcut straight to this page.)

  2. Under Authorised JavaScript origins, add Bridge’s hosted auth domain: https://auth.thebridge.dev.

  3. Under Authorised redirect URIs, add:

    https://api.thebridge.dev/auth/federated/google/return
    

    This is a fixed URL shared by every app on Bridge; it isn’t specific to yours, and it’s the same value the Control Center’s Configuration dialog shows you. Always use whatever value is shown there if it differs from this.

  4. Copy the Client ID and Client secret Google gives you back into Bridge, via the CLI command above or the Control Center dialog.

A ready-made SSO button and login form both handle this. See SSO login button in UI components.