Langfuse Okta SSO and SCIM provisioning

Connect a self-hosted Langfuse Enterprise instance to Okta with an OIDC app for sign-in and a separate SCIM app for provisioning, with roles set before sync starts.

On this page

How Okta SSO and SCIM work together in Langfuse

A self-hosted Langfuse instance often holds trace data for many engineers, product teams and external contractors, so joiners, movers and leavers need to be handled from the identity provider rather than by hand in the Langfuse UI. The working pattern uses two separate Okta applications: an OIDC app that handles sign-in, and a SCIM app that handles user and membership lifecycle. Langfuse's Okta guide requires the split because Okta does not support SCIM on a custom OIDC app. SSO decides who can log in; SCIM decides which users exist in the organization and what role they hold once they are there.

Both halves have prerequisites that are easy to miss. SCIM endpoints in Langfuse live under /api/public/scim and are authenticated with organization-scoped API keys, and self-hosted use of SCIM requires the Enterprise Edition license key. Confirm the license and the organization API key before you configure the Okta SCIM app. Also plan for the fact that SCIM does not set passwords. Users who arrive through Okta sign in through the SSO app, so the SSO configuration, including any domain enforcement you choose, determines how they authenticate.

Deprovisioning is narrower than most teams expect. When Okta deactivates or unassigns a user, Langfuse's DELETE /Users/{id} behavior removes the user's organization membership, not the user record itself. The person can no longer act within that organization, but the account still exists in the Langfuse database and its historic traces remain attributed to it. Your offboarding procedure therefore needs a separate step if you must remove the user entirely, and your data retention and deletion obligations should be checked against that behavior before go-live. Confirm the exact result in a test organization, since it determines what your auditors will see.

What you need before connecting Okta to Langfuse

Okta provisioning into a self-hosted Langfuse depends on a licensed Enterprise instance, two separate Okta apps and an organization-scoped API key. Confirm each item below before you change anything in Okta, because the role attribute decision affects existing users from the first sync.

Enterprise license key

SCIM on a self-hosted Langfuse sits behind the Enterprise Edition, and the organization management API that SCIM uses is also license-gated. Confirm with Langfuse that your key covers the org management API with SCIM before you plan the Okta work, since the Okta configuration will fail without it. Ask who holds the key, where it is stored in your deployment, and how renewal is handled.

License key docs

Compatible Langfuse version

Check that your running Langfuse release includes the SCIM endpoints under /api/public/scim and the organization management routes for projects, API keys and memberships. Record the exact version in your change ticket, because upgrades can change these routes and the Okta configuration should be tested against the version you run in production. Your version must be reachable from your Okta tenant over HTTPS.

Langfuse releases

Okta tenant admin rights

The person configuring provisioning needs administrator rights in Okta to create applications, assign users and groups, and set attribute mappings. Two Okta applications are required: an OIDC app for SSO and a separate SCIM app, because Okta does not support SCIM on a custom OIDC app. Plan who owns each app, and confirm that assignments to the SCIM app are controlled by the same group rules you use for other applications.

SCIM and Org API docs

Organization-scoped API key

SCIM requests authenticate with an organization-scoped API key rather than a project key. Create the key under a dedicated service account or administrator identity, store it in your secrets manager, and restrict who can read it. Rotation and revocation should be on your runbook, since a leaked key lets someone change organization memberships through the same endpoints Okta uses.

Reachable SCIM endpoint

Okta calls the SCIM base path under /api/public/scim from its own cloud, so the endpoint must resolve publicly or through a reachable proxy with a valid TLS certificate. A private-only address or an internal certificate authority that Okta does not trust will fail the connection test. Confirm firewall rules, the load balancer path and certificate chain with your network team before you test.

Role model per project

Decide before enabling provisioning which organization role and project roles each Okta group should receive, and write them down. The SCIM roles attribute defaults to NONE, and a deprovisioning or reprovisioning event can overwrite a user's organization role with that attribute. Agree this mapping with your Langfuse owners, because an incorrect default in the first sync can remove access for existing users.

Configure the Okta SSO app and the SCIM app in sequence

This sequence builds sign-in first, then provisioning, so that users can authenticate through Okta before any SCIM push changes their organization roles. Each step closes with a check that must pass before the next one starts.

  1. Confirm the Enterprise license and org-scoped API key

    Before touching Okta, confirm that your self-hosted Langfuse runs with an Enterprise license key, since the SCIM endpoints under /api/public/scim require the Enterprise Edition. Create an organization-scoped API key in the Langfuse organization settings and store it in your secrets manager, not in the Okta configuration screen. You know this step is done when a test request to the SCIM endpoint with that key returns an authenticated response rather than an authorization error.

  2. Create the OIDC application for sign-in

    Using Langfuse's Okta guide, create an OIDC web application in Okta for user sign-in. Set the redirect URI to your Langfuse host and copy the client ID and client secret into your Langfuse configuration. This app handles authentication only, so do not try to add SCIM to it, because Okta does not support SCIM on a custom OIDC app. You know this step is done when a test user can complete a sign-in from the Langfuse login page and land in the UI.

  3. Enforce SSO for chosen email domains

    Once the OIDC sign-in works, decide which email domains must use SSO and configure Langfuse to enforce it for those domains. Optionally disable password sign-in for the instance if your policy requires it. Keep a break-glass administrator account in mind before disabling passwords, and test it separately. You know this step is done when a test account on an enforced domain is redirected to Okta and a password login attempt for that domain is refused.

  4. Create the separate SCIM application

    In Okta, create a second application for SCIM provisioning, separate from the OIDC app. Set the SCIM connector base URL to the Langfuse SCIM path on your host, then choose the HTTP header authentication option and supply the organization-scoped API key. SCIM does not set passwords, so users still sign in through the OIDC app. You know this step is done when Okta's connection test against the Langfuse endpoint succeeds.

  5. Map the roles attribute before enabling provisioning

    Map an Okta attribute or group rule to the SCIM roles attribute so every provisioned user receives an intended Langfuse organization role. Remember that SCIM creates users with role NONE when no roles attribute is sent, and that deprovisioning and reprovisioning can overwrite an existing role with the SCIM value. Review every mapping with your identity and security owners. You know this step is done when a test user in each target group shows the expected role in a dry-run or in a sandbox organization.

  6. Push a test user and verify the result

    Assign one test user to the SCIM app and run a push. Confirm in Langfuse that the user exists with the role you mapped, not with NONE, and that the user can sign in through the OIDC app. Then unassign the test user and confirm that Langfuse removes only the organization membership while the user record remains. You know this step is done when the create, role and removal results all match your mapping.

  7. Enable provisioning for production groups

    Only after the role mapping passes the test push, enable provisioning for production groups in Okta and keep an administrator watching the first sync. Confirm which existing Langfuse users are already in the organization, because an initial sync can downgrade their roles to the SCIM default if the attribute is wrong. Record the mapping and the test results in your change record. You know this step is done when a sample of existing users still holds the role they had before the sync.

How the SCIM request flow moves users and roles

Okta sends SCIM requests from the provisioning app to Langfuse's SCIM endpoints under /api/public/scim, and each lifecycle event maps to a specific call. When Okta assigns a user to the SCIM app, it issues a POST to /Users. Langfuse creates the user if the email address is new, then adds that user to your organization with the role NONE unless the request includes a roles attribute. Updates from Okta arrive as attribute changes on the same user, and a deactivation in Okta arrives as a DELETE on /Users/{id}. Every call is authenticated with an organization-scoped API key, so the key's scope and rotation belong in your design before the first sync runs.

The detail that matters most is what a DELETE does. It removes only the organization membership, not the user record, so the account still exists in Langfuse and any traces or prompts it created remain. That behavior is useful for offboarding, but it sets up the main risk. When the same person is reprovisioned later, Okta sends a new POST and Langfuse re-adds the membership using the roles attribute in that request. If that attribute is missing or set to the default NONE, the user's previous organization role can be overwritten. A project lead who was downgraded during a deprovisioning cycle or a temporary removal could return with no access at all, or an admin could return with a lower role than before.

Before you enable provisioning, decide how the roles attribute will be populated in Okta and confirm the mapping with a test user in a non-production organization. Check three things: which role each Okta group or profile value produces, what Langfuse does on a second POST for an existing membership, and whether your team has a recorded list of roles to restore after a reprovision. The exact request and response behavior should be confirmed against the current Langfuse SCIM and Org API documentation in your deployed version, since the endpoints depend on the Enterprise Edition.

How Okta, Langfuse Web and the organization API fit together

The diagram starts with two separate Okta applications: an OIDC app that signs administrators and users into Langfuse, and a SCIM app that pushes user changes to Langfuse Web at /api/public/scim. Both hand-offs cross the trust boundary into your network, so the SCIM app's organization-scoped API key and its network path are the parts to check first. Inside the boundary, Langfuse Web writes organization memberships and roles to PostgreSQL, which is where a role change made in Okta takes effect. SCIM does not set passwords, so sign-in still depends on the OIDC app.

Two Okta apps feed one Langfuse Web endpoint and a membership store.

Which Okta attributes map to which Langfuse roles and memberships

This table compares each Okta input (user profile fields, the roles attribute, group membership and assignments) with what Langfuse does with it during SCIM provisioning. Read each row as the question to answer before enabling provisioning, and the last column as what the user ends up with on first sync. The main takeaway is that a missing or wrong roles value does not fail loudly; it can leave users at NONE or overwrite an existing role.

Okta inputLangfuse targetEffect on first syncWhat to confirm before enabling
Primary emailSCIM user email (identifier for the user)Used to match an existing user or create a new one; a new email creates the userEmails are unique and match the SSO sign-in identity your users already use
Given and family nameSCIM user name fieldsPopulates display name for the user; does not grant accessMapping exists in the Okta SCIM app's attribute mappings, not only in the profile
Roles attribute (organization role)Organization role for the membershipIf provided, sets the role; if absent, the user is added with role NONEAttribute name and allowed values match what Langfuse expects in your version
No roles attribute sentOrganization membership with role NONENew users arrive with no effective project access until a role is assignedWhether you want unassigned users created at all or blocked by assignment rules
Group or app assignmentWhich users Okta sends to the SCIM appOnly assigned users are provisioned; unassigned users are not created or updatedGroup push or assignment rules include only the intended population
Existing user with a role set in LangfuseExisting organization roleReprovisioning can overwrite the role with the SCIM roles value, which defaults to NONERoles attribute is correct for every assigned user before the first sync runs
Deactivated or unassigned user in OktaOrganization membership removed (DELETE /Users/{id})Removes the membership only; the user account itself remainsYour offboarding process also revokes sessions, API keys and project access where needed

Hardening the SSO and SCIM path

Once Okta sign-in and SCIM provisioning work, the risk shifts to who can sign in with a password, who can change the provisioning app, and which keys and logs prove what happened. The cards below cover the controls Langfuse documents and the checks to run in your own environment before you rely on them.

Disable password sign-in after SSO works

Once users can sign in through the Okta OIDC app, turn off password sign-in so Okta becomes the only front door. Test with a few named accounts first, and keep a documented break-glass path for the instance owner so a bad identity configuration does not lock out the whole team. Confirm the exact setting names against the Langfuse authentication docs for your version.

Authentication docs

Enforce SSO for your email domains

Domain enforcement sends users with a matching email domain straight to Okta, which closes the gap where someone creates a local account with a corporate address. Check that every domain you own is covered and that contractor or partner domains are handled deliberately. Verify the behavior with an account from each domain before you announce the change.

Scope and rotate organization API keys

SCIM and the organization management routes authenticate with organization-scoped API keys, so anyone holding that key can change projects and memberships. Store the key in your secrets manager, limit the number of people who can read it, and set a rotation schedule that your operators own. Document where the key is configured so a rotation does not break provisioning silently.

SCIM and Org API docs

Limit Okta admin rights over the SCIM app

Whoever can edit the SCIM app in Okta can change attribute mappings, and a mapping error can downgrade roles across the organization. Restrict application admin rights to a small group, require change review for mapping edits, and keep the roles attribute value under version control or a written record. Confirm which Okta admin roles your tenant uses for application management.

Serve the SCIM endpoint over TLS only

Okta sends user data and the API key to your SCIM endpoint on every sync, so plain HTTP or an untrusted certificate exposes both. Terminate TLS at your load balancer or ingress with a certificate your Okta tenant trusts, and confirm the endpoint is reachable from Okta but not from the open internet. Test the certificate chain from outside your network before go-live.

Review provisioning audit logs

Audit logs are an Enterprise feature on self-hosted Langfuse, so confirm your license key enables them before you rely on them for provisioning evidence. Check that role changes, membership removals and API key use appear in the log, and that logs ship to a system your security team controls. Run a test deprovisioning and confirm the entry is there.

License key docs

Why initial sync downgrades roles and other common failures

This table lists the failures teams most often hit when provisioning Langfuse users from Okta with SCIM, with the cause and fix for each. Read it before the first sync, because the role downgrade risk is the one most likely to affect users without an obvious error.

FailureLikely causeFix
Users arrive with role NONE after the first syncSCIM POST /Users adds new users with role NONE unless the roles attribute is sent, and the Okta attribute mapping does not provide itMap the roles attribute in the SCIM app before assigning users, then confirm the role on a test user in Langfuse
Deprovisioned users regain a stale role on reprovisioningLangfuse warns that deprovisioning and reprovisioning can overwrite the organization role with the SCIM roles attribute, so an outdated or empty value is appliedSet the roles attribute to the intended value for each group before reassigning a returning user, and review the attribute during any offboarding cycle
SCIM calls rejected for a missing Enterprise keySCIM is an Enterprise Edition feature for self-hosted use, and the instance does not have a valid license key loadedConfirm the license key is set on the Langfuse Web container and check the instance reports Enterprise features before enabling Okta provisioning
SCIM calls rejected with an authorization errorThe SCIM app in Okta uses a project-level or otherwise incorrect API key, not an organization-scoped keyCreate an organization-scoped API key, store it as the bearer credential in the Okta SCIM app, and rerun a test provisioning call
SSO sign-in loops back to the Okta login pageThe redirect URI registered in the OIDC app does not match the Langfuse public URL or the callback path configured on the instanceCompare the sign-in redirect URI in the Okta OIDC app with the external host and callback path, then correct whichever value is wrong and retest in a private window
Users sign in but see no projectsSCIM creates the user and organization membership, but no project membership is assigned for that userAssign the user to the required projects through the organization management routes or your provisioning process, then confirm access for a test account
Passwords appear to be missing for provisioned usersSCIM does not set passwords, so the account depends entirely on SSO sign-inConfirm the Okta OIDC app is assigned to the same users and that password sign-in is disabled or enforced by domain as intended

Questions teams ask before connecting Okta to Langfuse

What drives the cost of connecting Okta to a self-hosted Langfuse?

The cost depends on the license tier, how many projects and roles you need, how complex your Okta admin setup is, and how much testing you require before enabling provisioning. SCIM provisioning on a self-hosted instance requires the Enterprise Edition, so the license decision is the first cost line. Projects and role mapping add design and testing work because each role must be set correctly in Okta before sync runs. Okta admin complexity matters when group rules, multiple directories or approval processes already exist. Ask any partner for a written, fixed-scope quote that lists each Okta application, each role mapping, the test cases and the handover, and state who pays for the Langfuse license and who pays for the setup work.

How long does an Okta and SCIM setup for Langfuse take?

Duration depends on your environment rather than on a fixed number, so ask for a timeline in the written scope. The main variables are whether Langfuse is already running with working SSO, how many Okta groups and roles map to Langfuse, whether your Okta tenant needs new applications created from scratch, and how many test users and deprovisioning cases you want to verify. Teams that already run SSO for Langfuse usually have less to build. Confirm with your Okta administrators how long approvals and change windows take, because those often set the calendar more than the technical work does.

What must our team provide before the engagement starts?

You need to provide Okta administrator access with rights to create and assign applications, a network path from Okta's provisioning service to your Langfuse endpoint, and a working Langfuse instance that is reachable at the address you will configure. Your team must also decide which Langfuse roles each Okta group receives, since the SCIM roles attribute controls the role a user gets. Provide an organization-scoped API key owner who can issue the credential that SCIM uses. Confirm the network path with your security team early, especially if Langfuse sits in a private network or behind a gateway.

Can our internal team set up Okta SCIM for Langfuse without a partner?

Yes, a capable internal team can do it, provided it has Okta administration skills, operational access to the Langfuse deployment and a clear role model. The Langfuse Okta guide requires two Okta applications, an OIDC app for SSO and a separate app for SCIM, because Okta does not support SCIM on a custom OIDC app. The harder part is usually the role decision and the testing, not the clicks. Set the roles attribute correctly before enabling provisioning, and test deprovisioning in a non-production instance first. A partner can take over the design, testing and documentation if your team lacks time or Okta depth.

What happens to existing Langfuse users during the first Okta sync?

Existing users are the main risk during the first sync. Langfuse warns that SCIM deprovisioning and reprovisioning can overwrite a user's organization role with the SCIM roles attribute, which defaults to NONE. A user who already has an admin or member role could be downgraded if Okta sends a user without the correct roles attribute. Before enabling provisioning, record each current user's role, set the roles attribute for every Okta group, and run the first sync against a copy of your data or a test organization. Confirm the rollback steps with the Langfuse documentation before production.

What does SCIM deprovisioning do to a Langfuse user?

When Okta deactivates or removes a user, Langfuse's DELETE request on the Users endpoint removes only the organization membership, not the user record. This means a deprovisioned person loses access to the organization's projects but the account itself remains in the instance. Confirm this behavior in your test environment and decide whether your policy also needs a separate step to remove the account or to disable password sign-in. Also confirm how quickly Okta sends deprovisioning events for your configuration, and document who checks that a leaver no longer appears as a member.

Does SCIM set passwords for Langfuse users?

No. SCIM provisioning creates or updates the user and their organization membership, but it does not set passwords. Users still sign in through the SSO connection configured in the OIDC application, and you can disable password sign-in or enforce SSO for specific email domains in Langfuse. Confirm the sign-in policy with your identity team before rollout so that users who were previously using a password are not locked out without a planned path. Test the sign-in flow with a pilot group before expanding to all users.

Testing the join, move and leave cases before go-live

Before you point the production Okta group at Langfuse, run the four lifecycle cases against a non-production instance: a new joiner, a role change, a deactivation and a reactivation. The point of the test is to prove that each Okta action produces the Langfuse membership and role you expect, and that nothing else changes. Build a sandbox group in Okta with two or three test users, assign the SCIM app to it, and give each user a roles value on the Okta side so that you know what the intended role is at every step.

Record the role state of every test user in Langfuse before you enable provisioning, then again after each step. Capture the organization membership, the project roles and the user's status in the UI or through the organization management API, and keep a simple table of expected versus observed values. Pay particular attention to the reactivation step and to any user who already has a role in Langfuse before the sync. Langfuse warns that deprovisioning and reprovisioning can overwrite the organization role with the SCIM roles attribute, which defaults to NONE, so a reactivated user who comes back without the attribute may lose access they previously held. Also confirm that a deactivated user's account still exists afterward, since SCIM removes only the organization membership.

Keep the sandbox group separate from the production group, and do not add existing production users to it during testing. Once every case passes with the expected role, document the attribute mapping and the test results, then assign the production group. If a case fails, fix the attribute source or the Okta mapping and repeat the full sequence rather than patching a single user by hand. Ask your Langfuse contact, or confirm in your own environment, how your Enterprise license and SCIM endpoint are configured on the test instance so the results carry over to production.

How DeployOpen scopes and delivers Langfuse Okta integration

DeployOpen plans, builds, documents and hands over the Okta SSO and SCIM provisioning for your self-hosted Langfuse instance, inside your own infrastructure. The work starts with a written scope that fixes the Okta apps, role mapping and deprovisioning behavior before any user is pushed to Langfuse.

How we scope

  • Confirm the Langfuse Enterprise license key and Enterprise Edition features your deployment needs for SCIM.
  • Agree which Okta groups map to Langfuse organization roles, with the default role set deliberately before provisioning starts.
  • Record the scope, deliverables and timeline in writing before any work begins, as all engagements are fixed-scope.

How we build

  • Configure the OIDC application for SSO and a separate SCIM application in Okta, since Okta does not support SCIM on a custom OIDC app.
  • Test create, update, deprovision and reprovision events in a non-production instance to confirm role attributes are preserved.
  • Check organization-scoped API key handling and the SCIM endpoints under the Langfuse public API path before connecting production users.

How we hand over

  • Document the Okta app settings, attribute mappings, group-to-role rules and the steps for a user leaving the organization.
  • Provide a runbook covering the role downgrade risk during initial sync and how to correct a role after reprovisioning.
  • Walk your identity and Langfuse administrators through the configuration and the test evidence before handover is signed off.

How we support

  • Ongoing support, Langfuse upgrades and continuous testing are available as retainers after the initial handover.
  • Revalidate the SCIM configuration when you upgrade Langfuse or change Okta group structures.
  • Confirm with your Langfuse support plan which SLA and named support options apply to your self-hosted Enterprise instance.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.