Langfuse SSO with Google Workspace (OIDC)

Add Google sign-in to self-hosted Langfuse and enforce allowed Workspace hosted domains.

Last updated

On this page (5)

Langfuse · Google Workspace · OIDC

Before you start

  • Self-hosted Langfuse with public NEXTAUTH_URL.
  • Google Cloud OAuth Web application.

Configure sign-in

  1. Configure a Google OAuth web client and authorize the public /api/auth/callback/google redirect.
  2. Set AUTH_GOOGLE_CLIENT_ID and AUTH_GOOGLE_CLIENT_SECRET. Set AUTH_GOOGLE_ALLOWED_DOMAINS to the approved Workspace domains; Langfuse checks the hosted-domain claim.
  3. Restart Langfuse and verify the intended sign-up and organization membership policies.

Verify the result

  • Test a Workspace account from an allowed domain and a personal or out-of-domain Google account.
  • Check project visibility and avoid enabling email-based account linking by default.

Official documentation

Have Pilae connect your identity provider

Pilae can deploy Langfuse with your identity provider already connected. We agree the edition, account mapping and access tests with your team before rollout.