Skip to content

triauth for LangfuseOIDC

Let your engineering and product teams open Langfuse with one approval on their own device, and no Langfuse passwords.

  • AI
  • Open source
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

  1. Open oidc.triauth.org and enter your domain. Paste Langfuse's redirect address, https://langfuse.example.com/api/auth/callback/custom with your own Langfuse address in place of langfuse.example.com, and click Connect app. The bridge gives you a client ID and a client secret.

  2. Add the settings below to Langfuse's environment and restart it. Replace example.com with your domain and the two placeholders with the client ID and the client secret from the bridge.

    ini
    AUTH_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.com
  3. Open 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_SIGNUP is 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_LINKING is 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

SettingValue
Redirect addresshttps://<your-langfuse>/api/auth/callback/custom, built from NEXTAUTH_URL, which must be the public address
Where in Langfuseenvironment variables
IssuerAUTH_CUSTOM_ISSUER takes https://oidc.triauth.org/<your domain> without a trailing slash, and the rest comes from the discovery document
Scopesopenid email profile, the default
PasswordsAUTH_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

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.