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
- Configure a Google OAuth web client and authorize the public /api/auth/callback/google redirect.
- 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.
- 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.
