triauth for LangfuseOIDC
Let your engineering and product teams open Langfuse with one approval on their own device, and no Langfuse passwords.
- Sign-in through
- OpenID Connect bridge
- Available in
- Every self-hosted Langfuse
- Set up in
- Environment variables
About Langfuse
Langfuse is a monitoring and quality tool for software that uses large language models. It records what an AI application did, scores how good the answers were, and manages prompts, so engineering and product teams can see and improve their AI features. It runs in Langfuse's cloud or on your own servers.
Connect Langfuse to triauth
Langfuse signs people in through the triauth OpenID Connect bridge, as its custom provider. Once connected, the sign-in page shows a button with your domain's name. People on your team click it, type their username, and approve on their own device. Nobody keeps a Langfuse password, and when someone leaves, removing their identity records at your domain ends their access to Langfuse as well.
This page is about a Langfuse that you run yourself.
How it works
Open oidc.triauth.org and enter your domain. Paste Langfuse's redirect address,
https://langfuse.example.com/api/auth/callback/customwith your own Langfuse address in place oflangfuse.example.com, and click Connect app. The bridge gives you a client ID and a client secret.Add the settings below to Langfuse's environment and restart it. Replace
example.comwith your domain and the two placeholders with the client ID and the client secret from the bridge.iniAUTH_CUSTOM_CLIENT_ID=<client ID from the bridge> AUTH_CUSTOM_CLIENT_SECRET=<client secret from the bridge> AUTH_CUSTOM_ISSUER=https://oidc.triauth.org/example.com AUTH_CUSTOM_NAME=example.comOpen Langfuse's sign-in page and click the button with your domain's name.
Checkpoint
Langfuse's sign-in page shows a new button with your domain's name. Choosing it opens a page from the bridge that asks for the username, and the person's authenticator asks them to approve.
Good to know
- Everyone with an identity at your domain gets a Langfuse account the first time they sign in, unless
AUTH_DISABLE_SIGNUPis set. To let only one team in, limit the app to a group when you connect it. - People who already have an account under the same email address are connected to it when
AUTH_CUSTOM_ALLOW_ACCOUNT_LINKINGis on. - Organization and project roles are managed in Langfuse, or through its SCIM and organization APIs. The groups published at your domain are not used.
For the person who connects the app
| Setting | Value |
|---|---|
| Redirect address | https://<your-langfuse>/api/auth/callback/custom, built from NEXTAUTH_URL, which must be the public address |
| Where in Langfuse | environment variables |
| Issuer | AUTH_CUSTOM_ISSUER takes https://oidc.triauth.org/<your domain> without a trailing slash, and the rest comes from the discovery document |
| Scopes | openid email profile, the default |
| Passwords | AUTH_DOMAINS_WITH_SSO_ENFORCEMENT=example.com sends everyone at your domain through the bridge, and AUTH_DISABLE_USERNAME_PASSWORD removes the password form |
Langfuse keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. Langfuse's authentication guide explains every variable.
Next steps
- Read the OpenID Connect bridge page for what every connected app gets and what the bridge keeps private.
- Read Roll out to your team to give everyone in your organization an identifier at your domain.
- Read Groups to limit Langfuse to one team when you connect it.
- Read Langfuse's authentication guide for every setting Langfuse offers.
All logos and trademarks belong to their respective owners and do not imply affiliation or endorsement of the organization or product by triauth, nor vice versa. The content provided on this page may include information from third-party sources. We do not assume any responsibility for the completeness, correctness, or applicability of the information. You should independently verify any details before relying on them.