Connecting promptfoo On-Prem to SAML or OIDC single sign-on

Connect promptfoo On-Prem to your SAML 2.0 or OIDC identity provider through its FusionAuth service, map claims to teams and roles, and verify access before automatic assignment is switched on.

On this page

Connecting promptfoo On-Prem SSO before you open access to teams

Connecting promptfoo On-Prem to your SAML 2.0 or OIDC identity provider is the step that decides who can sign in to the platform and, through team and role assignment, what they can see and change. Before you widen access, treat this connection as an access control project, not a login convenience. promptfoo Enterprise includes SSO and teams-based access control, and promptfoo On-Premise runs that functionality inside your own infrastructure, with a FusionAuth service handling identity. The identity service is part of the product you are deploying, so it needs an owner, a configuration record and a test plan like any other system that gates red team results.

The self-hosted promptfoo app on its own is not a substitute. Its documentation states that the self-hosted server has no RBAC, no built-in authentication or SSO, and is not recommended for production use, and it stores data in a local SQLite database that cannot be shared across replicas. The SSO connection is therefore part of the Enterprise rollout, not an optional add-on to a community deployment. Confirm with promptfoo which edition, which FusionAuth configuration and which On-Prem deployment method your environment will use before you schedule the work, because those choices determine the settings you will be able to change later.

How an identity provider login reaches promptfoo On-Prem roles

The flow starts in the user's browser, which is sent to the identity provider your organization already runs for SAML 2.0 or OIDC sign-in. The provider returns claims to the FusionAuth service inside your network, and those claims are not enough on their own. They must be mapped onto the FusionAuth user data object, and only then do team and role assignments take effect in the promptfoo On-Prem web app. Check the mapping rules at the boundary before enabling automatic assignment.

Login path from browser through FusionAuth, with the required claim mapping step inside your network.

Choosing SAML 2.0 or OIDC for your identity provider

This table compares SAML 2.0 and OIDC as the protocol between the FusionAuth service in promptfoo On-Prem and your identity provider, along with the questions to answer for each. Use it to narrow the choice, then confirm which options the promptfoo On-Prem documentation supports in the release you deploy. The protocol matters less than whether your IdP can send group membership as a usable claim or attribute.

QuestionSAML 2.0OIDC
Does your IdP support it?Most enterprise IdPs support SAML 2.0 for application sign-on, but confirm it is enabled for your tenant and plan.Most modern IdPs offer OIDC, but confirm the application type and client flows your IdP exposes.
Where does group membership come from?Group membership usually arrives as attribute statements in the assertion. Confirm the attribute name and whether it lists groups by name or ID.Group membership usually arrives as a claim in the ID token or from the userinfo endpoint. Confirm the claim name and whether the IdP includes it by default.
How are signing keys or secrets rotated?Signing certificates expire and must be replaced in both the IdP and the FusionAuth configuration. Plan the overlap window.Client secrets or certificates for private key authentication need rotation. Plan the overlap window and where the new value is stored.
How are attribute names and claim formats agreed?Agree the NameID format and each attribute name and value format before testing. Mismatches are a common source of failed sign-ins.Agree the scopes, claim names and token lifetimes before testing. Confirm which claims appear in the token and which need the userinfo endpoint.
Who administers the IdP application?Often a central identity team owns the SAML application, so plan change requests for certificate renewal and attribute changes.Often the same central identity team owns the OIDC client, so confirm who can change redirect URIs, secrets and claim mappings.
Who maintains the promptfoo side?Your platform or security team typically manages FusionAuth settings and the mapping of claims to teams and roles.Your platform or security team typically manages FusionAuth settings and the mapping of claims to teams and roles.

Setup sequence for FusionAuth with your identity provider

This sequence takes the FusionAuth service in your promptfoo On-Prem deployment from a running but unconfigured state to a verified sign-in path that assigns teams and roles from your identity provider. Each step closes with a check so your team can confirm the result before moving on.

  1. Confirm On-Prem and FusionAuth are running

    Your platform team confirms that the promptfoo On-Prem deployment is up and that the FusionAuth service it depends on starts, reaches its database, and serves its administrative interface from inside your network. Record the internal hostnames, the public callback address users will reach, and the certificate chain that covers both. You are done when an administrator can log in to the FusionAuth console directly, and the promptfoo web UI loads with local sign-in still working as a fallback. Keep that fallback until SSO is proven.

  2. Register the promptfoo application in your IdP

    Your identity team creates an application record in the SAML 2.0 or OIDC identity provider for promptfoo On-Prem. Set the redirect or assertion consumer URL to the FusionAuth endpoint for your deployment, and choose the attributes or claims you intend to send, such as the user identifier, email, group membership and any role attribute. Assign a pilot group of test users to the application. You are done when the identity provider shows the application as active and a pilot user can start a sign-in that reaches the FusionAuth login page without an error.

  3. Configure the SAML or OIDC connection in FusionAuth

    In the FusionAuth console, create an identity provider entry that matches the protocol you chose. For SAML 2.0, import the IdP metadata and confirm the entity ID and signing certificate. For OIDC, enter the issuer, client ID, client secret and the scopes that return the claims you need. Keep the connection set to allow sign-in, but leave any automatic user creation rules at their defaults for now. You are done when a test sign-in with a pilot account completes the round trip and FusionAuth creates or links a user record.

  4. Identify the claims that carry team and role data

    Review the sign-in response captured during the pilot test and list every claim or attribute that carries group, department, role or organization data. Note the exact claim names, their formats, and whether a value is a single string or a list. Ask your identity team which source is authoritative, because group membership that is maintained elsewhere can drift from the directory. You are done when you have a written list of claim names with one sample value per pilot user, and your security owner has agreed that these are the only sources used for access decisions.

  5. Map claims onto the FusionAuth user data object

    Define how each identity provider claim is copied into the FusionAuth user data object, and then how that data maps to promptfoo teams and roles. Per the promptfoo On-Prem SSO documentation, an incoming claim alone does not assign a team or role, so the mapping must be written into the user data object explicitly. Keep the mapping table in version control with one row per claim value and its target team and role. You are done when a pilot user's FusionAuth user data object shows the expected team and role values after a fresh sign-in.

  6. Test sign-in with a pilot group

    With automatic assignment still off, sign in as each pilot user with a different combination of groups, including one user with no team data and one with a role the mapping should reject. Compare the resulting promptfoo teams and roles against the expected results in your mapping table. Confirm that the unassigned user lands without access to shared targets or red team results. You are done when every test account produces the expected outcome, and you have a dated record of each test that your compliance reviewer can read.

  7. Review resulting teams and roles

    Have the platform owner and a security reviewer check the teams and roles that promptfoo shows for each pilot account, and confirm that no account holds more privilege than its source group grants. Check that administrative roles are limited to the people you named and that group names with unexpected values are not silently mapped. Resolve any gaps by correcting the mapping, not by granting access by hand, and rerun the pilot tests. You are done when the review record shows zero unexpected grants and the reviewer signs off on the mapping.

  8. Enable automatic assignment

    Turn on automatic team and role assignment in FusionAuth for the whole identity provider connection, and announce the change to the users who will see it. Keep local fallback access for a named administrator until the first full week of production sign-ins has been reviewed, and check the audit or sign-in logs for failed or unmapped attempts. You are done when new users receive the teams and roles defined in the mapping on first sign-in, and the logs show no unmapped attempts that your team has not already explained.

How claims map to teams and roles

Identity claims from your provider only grant access once they are translated into promptfoo On-Prem team and role assignments. The cards below follow that path, from the claims your IdP sends to the FusionAuth user data object, then to teams, roles and the users who fall outside every mapping.

Group claims from the IdP

Start by listing which group or attribute claims your SAML 2.0 or OIDC provider emits for promptfoo users, and which groups correspond to teams and to admin or reviewer roles. Confirm the claim name, format and whether nested groups are flattened, because the mapping depends on exactly what arrives at sign-in. Test with a few real accounts from each group before you rely on the list. Ask the vendor how multi-valued claims are handled.

On-Prem SSO docs

FusionAuth user data as the landing point

An incoming claim alone does not assign access. In promptfoo On-Prem, IdP claims must be mapped onto the FusionAuth user data object, and that mapped value is what drives team and role assignment. Review the user data object for a test user after sign-in to confirm the expected values appear. Document who owns this mapping, since changes to it change everyone's access.

Team assignment

Map each IdP group to a single promptfoo team so that red team results, targets and plugin collections stay visible only to the right product group. Decide whether a user may belong to several teams and how conflicts are resolved. Verify that a user in two groups sees the union you intended, not a silent subset. Confirm with the vendor how team membership is shown to administrators.

Role assignment

Roles control what a user can do inside a team, such as running scans, changing targets or administering users. Map roles from a dedicated IdP group rather than from team membership, so privileged rights are granted by a separate approval path. Test each role with a non-production account and record what it can and cannot do. Confirm the available role names and permissions with the vendor, since those are not fixed in the supplied facts.

Users with no matching claim

Decide what happens when a user authenticates successfully but carries no team or role claim. The safe default is no access to scan data until an administrator assigns a team. Test this path with an account that is in the identity provider but in no promptfoo group. Ask the vendor whether such users are created, denied, or placed in a default team, and whether that behavior can be changed.

Changes when a user leaves a group

Removing someone from an IdP group should remove their promptfoo team and role on their next sign-in, but that behavior must be proven rather than assumed. Test removal, role downgrade and account disablement separately, and check whether an existing session keeps access until it expires. Confirm with the vendor how long mapped values persist in the user data object and whether a forced re-sync is available.

Testing access before automatic assignment is enabled

Start with the simplest proof: a test user from each identity provider you plan to connect can complete sign-in to the On-Prem instance through the FusionAuth service. Run this separately for SAML 2.0 and OIDC, because the assertion or token exchange, redirect URIs and certificate or key handling differ between them. This test proves that the trust relationship, metadata or client registration and network path work. It does not prove that the user gets the right access, so do not count a successful login as an authorization result.

  • Use named test accounts: Create dedicated accounts in the identity provider, not shared logins, so every attempt is traceable.
  • Record the protocol and provider: Note whether each attempt used SAML or OIDC, and the identity provider tenant or metadata version in use.
  • Test from the intended network path: Sign in through the same proxy, load balancer or DNS name that users will use.
  • Capture failures as well as successes: Keep the error messages and FusionAuth logs for any rejected assertion or token.

Confirm the exact configuration steps and supported binding options with the promptfoo On-Prem SSO documentation and your identity provider's administrator guide before running these tests.

Security and operational considerations for the identity service

The FusionAuth service sits between your identity provider and promptfoo On-Prem, so it holds credentials, assigns access and produces sign-in records. The cards below cover the controls to review before go-live and the operating questions to settle with your identity and platform teams.

Certificate and client secret handling

The SAML signing certificate and the OIDC client secret let FusionAuth trust your identity provider, so they are the first credentials to plan for. Store them in your secrets manager rather than in configuration files or tickets, limit who can read them, and record who rotates them and when. Before go-live, confirm with your identity provider team how a certificate rollover or secret rotation will be coordinated so sign-in does not break mid-change. Confirm the rotation procedure in writing before the first login test.

On-Prem SSO docs

Admin access to FusionAuth

Whoever administers FusionAuth can change how users are authenticated, which claims are read and which accounts exist, so admin rights are a privileged path into the platform. Keep the number of administrator accounts small, require the identity provider's MFA for them, and use separate admin accounts instead of shared logins. Review the admin list on a fixed schedule and remove accounts when people change roles.

Least-privilege claim mapping

In On-Prem, IdP claims must be mapped onto the FusionAuth user data object before they drive team and role assignment, and a claim alone is not enough. Map only the specific groups that correspond to promptfoo teams, and do not map a broad directory group such as all staff or all engineers to an admin role. Write the mapping table as a reviewable artifact and test it with a user who holds only the intended group.

Logging of sign-ins and changes

You need two kinds of record: sign-in events from FusionAuth and your identity provider, and configuration changes to the mapping, roles and certificates. Confirm which events FusionAuth logs, where they are stored, how long they are kept, and who can read or delete them. Forward them to your central log platform if that is where your security team investigates access. Ask your vendor and your own team to confirm the retention period, since it depends on your environment.

Keeping the identity service inside the trust boundary

FusionAuth handles user identity data and sits on the path to every promptfoo session, so it should run in the same network zone and under the same hardening standards as the platform it protects. Limit inbound access to the login and admin endpoints, restrict database access to the FusionAuth service, and confirm that no identity traffic leaves your network unless your design requires it. Review this boundary with your network team during the On-Prem design review.

Outage behavior for IdP and FusionAuth

If your identity provider or FusionAuth is unavailable, users may be unable to sign in, so decide in advance who keeps access during an outage. Agree on a break-glass administrator account that is stored offline, is tested periodically and is covered by logging. Document how the team will recover sign-in after an identity provider change, and rehearse the procedure before go-live. Ask the vendor which failure modes the On-Prem deployment is designed to tolerate.

Running SSO after go-live

Review claim-to-role mappings every time the identity provider's groups change. In promptfoo On-Prem, an incoming IdP claim does not assign anyone a team or role on its own. The claim has to be mapped onto the FusionAuth user data object, so a renamed, split or retired group in your IdP can silently stop granting access or keep granting it after the person has moved on. Assign an owner for the mapping file, make group changes in the IdP a trigger for a mapping review, and keep the mapping under version control so each change has a recorded author and reason. Confirm with your identity team how group membership changes are announced to the people who own the promptfoo mapping.

Rotate IdP certificates and client secrets on a schedule your team controls. For SAML, the signing certificate in FusionAuth and the one published by your IdP must stay in step, and for OIDC the client secret or key material must be replaced on both sides before the old one expires. Add these dates to your certificate calendar, test each rotation in a non-production FusionAuth instance first, and repeat the sign-in and mapping checks from go-live afterward. Ask your IdP vendor how it notifies administrators of expiring certificates and whether it can send that notice to a shared mailbox rather than one person.

Plan a FusionAuth check with every promptfoo upgrade. Upgrading the promptfoo application does not automatically confirm that the FusionAuth configuration, callback URLs and claim mappings still work with the new release, so include an SSO test in your upgrade runbook. Your team operates the identity provider, the mapping file, the FusionAuth administrator accounts and the evidence trail. The vendor's dedicated deployment engineer supports the On-Prem deployment and can help with upgrades and troubleshooting, but agree in writing with DeployOpen or Promptfoo what that support covers, who holds administrator credentials and how fast issues are handled. For periodic access reviews, keep exported role assignments, mapping history, certificate rotation records and sign-in test results together, and confirm with your auditors which of these they will ask for.

Questions buyers ask before connecting On-Prem SSO

How much effort does connecting promptfoo On-Prem to SSO take?

Effort depends mostly on how many identity providers you connect, how clean your claims are, and how many teams and roles you need to map. A single SAML 2.0 or OIDC provider with a small, stable set of groups is a contained job. Each additional provider, each unclear claim, and each role that needs a special rule adds configuration and testing. Claim design is often the largest driver, because an incoming claim alone does not assign anyone a team or role in On-Prem: the claim must be mapped onto the FusionAuth user data object. Ask any partner to scope these items separately in writing so you can see what drives the quote.

Can our own team connect On-Prem SSO without outside help?

Yes, if you have people who can administer your identity provider, operate the FusionAuth service in your environment, and test role mapping carefully. The work is configuration and verification rather than custom code, but it touches access control for an LLM security platform, so mistakes can grant the wrong people access to red team results. Teams that do it in-house usually need a named owner for the identity provider side, another for the FusionAuth side, and a plan to test before automatic assignment is turned on. Confirm the exact steps against the promptfoo On-Prem SSO documentation for your version before you start.

What do we need to provide before the SSO work starts?

Plan for four inputs. First, administrator access to your SAML 2.0 or OIDC identity provider so the application can be registered and claims can be configured. Second, a group design that states which groups map to which teams and roles, agreed by the platform owner and the security team. Third, a staging environment where the FusionAuth configuration and role mapping can be tested without affecting production users. Fourth, security sign-off on the access model, including who may hold administrative roles. Ask your provider to confirm which of these they expect you to supply and which they will prepare.

How long does an SSO connection take, and what sets the duration?

No duration is supplied for this work, so the figure should come from your written scope rather than a general rule. The main factors are the number of identity providers, the readiness of your group structure, whether a staging environment is available, how many roles need testing, and how quickly your identity and security teams can review changes. Delays usually come from waiting on identity provider changes or sign-off, not from the FusionAuth configuration itself. Ask for a timeline that lists each test gate and who must approve it.

What recurs after SSO goes live?

Once SSO is running, you carry ongoing work. Group membership changes in your identity provider must be reflected in team and role mapping, so someone must own that process. Certificates or client secrets used between the identity provider and FusionAuth will need renewal before they expire. Each new team or role adds a mapping to review, and each upgrade of promptfoo On-Prem or FusionAuth should be followed by a sign-in and role check. Decide who performs access reviews and how often, and confirm how any retainer or support arrangement covers these tasks.

What does an Enterprise On-Prem engagement include compared with a fixed-scope services quote?

promptfoo On-Premise runs the Enterprise functionality on your infrastructure with complete data isolation and a dedicated deployment engineer, according to promptfoo's pricing page. promptfoo Enterprise includes teams-based access control and SSO as a product feature. Those are licensing and product terms set by promptfoo, so confirm with promptfoo what your license covers. DeployOpen's work is separate: it is a fixed-scope services engagement, agreed in writing, that can cover planning, configuring the SSO connection, mapping claims to teams and roles, testing access and documenting the result. Ongoing support and upgrades are available as retainers. Ask for a quote that lists each deliverable and states what promptfoo licensing is assumed.

How do we test access before turning on automatic assignment?

Test with a small set of named accounts before any automatic assignment is enabled. Sign in with one user from each team and role, confirm that the expected team and permissions appear, and confirm that users without the right claims get no access. Remember that an incoming claim alone is not sufficient in On-Prem, so check that the mapping onto the FusionAuth user data object produces the intended result. Record each test and its outcome, and have the security team review the results before you enable automatic assignment for all users.

How DeployOpen scopes and delivers On-Prem SSO

DeployOpen treats SSO for promptfoo On-Prem as a scoped engagement inside your own infrastructure, starting from your identity provider and the access model your teams already use. The work covers the FusionAuth service, claim mapping to teams and roles, and access testing before automatic assignment is switched on.

How we scope

  • Engagements are fixed-scope, with scope and deliverables agreed in writing before work starts.
  • The written scope names your identity provider, whether it uses SAML 2.0 or OIDC, and the claims available to map.
  • Scope should list the teams and roles you need, the users to test with, and who approves the access model.

How we build

  • We configure the FusionAuth service in your On-Prem deployment and connect it to your SAML 2.0 or OIDC identity provider.
  • We map incoming identity provider claims onto the FusionAuth user data object, since a claim alone does not drive team or role assignment.
  • We test sign-in and team and role assignment with test accounts before automatic assignment is enabled for your users.

How we hand over

  • You receive written documentation of the configuration, claim mappings, team and role assignments and test results.
  • We document the steps to add a claim mapping, change a role or rotate the identity provider settings, so your team can run them.
  • Handover includes a review session where your identity and security staff confirm the access model before go-live.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Ask whether a retainer covers FusionAuth upgrades and changes to your identity provider's claims or group structure.
  • Confirm in the quote how support requests, response expectations and the on-site or remote access model are defined.

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.