Enable single sign-on (SAML or OIDC) and automatic user provisioning (SCIM) for TrueFoundry with identity providers like Microsoft Entra ID, Okta, Google Workspace, Keycloak, JumpCloud, OneLogin, Auth0, PingOne, AD FS, and Rippling.
Use this file to discover all available pages before exploring further.
TrueFoundry lets your team sign in through your existing Identity Provider (IdP) using OpenID Connect (OIDC) or SAML 2.0, and (for supported IdPs) keep users and teams in sync via SCIM provisioning. Any IdP that speaks OIDC or SAML 2.0 will work — Microsoft Entra ID (Azure AD), Okta, Google Workspace, Keycloak, JumpCloud, OneLogin, Auth0, PingOne, AD FS, Rippling, and others.
Option 1 — TrueFoundry Auth Server + your IdP (default)
The TrueFoundry Auth Server (login.truefoundry.com) sits between your control plane and your IdP. When a user signs in, the control plane hands off to the auth server, which then hands off to your IdP. After the IdP authenticates the user, the auth server validates the response, creates or updates the user record, and returns tokens to the control plane.
Why this is the default
Works identically on SaaS and on-prem installations.
TrueFoundry handles OIDC/SAML quirks, key rotation, and SCIM endpoints centrally.
Only the user’s email and a request count are sent to login.truefoundry.com — used for licensing and tenant routing.
Lets you swap IdPs without redeploying the control plane.
Detailed authentication flow (step-by-step with request/response examples)
Curious about exactly what happens during a login? Here are all the hops between the browser, control plane, TrueFoundry Auth Server, and your IdP.
1
Request Login Page
Browser initiates the OAuth flow by requesting the login page from the TrueFoundry Control Plane, with the redirect URL being the TrueFoundry Control Plane URL.
Example Request/Response
Request
GET /api/svc/v1/oauth2/authorize?tenantName={tenant_name} &controlPlaneURL=https%3A%2F%2Fyour.example.com &redirectURL=https%3A%2F%2Fyour.example.com%2Fauth%2FcallbackHTTP/1.1Host: your.example.com
Browser redirects to the Login Page URL powered by the . The login page provides an interactive form for the user to choose the type of authentication, such as password-based or SSO.
3
Redirect to SSO Identity Provider page
On selecting SSO, the browser is redirected to the SSO Identity Provider’s login page with the redirect URL set to the .
All requests to the Identity Provider are signed using an RS256 key pair. For SAML, destination assertion is enabled, ensuring secure transfer of user authentication information between the SAML identity provider (IdP) and the TrueFoundry Auth Server (SP).
4
Redirect back to the TrueFoundry Auth Server with code
On successful authentication by the SSO Identity Provider, the browser redirects to the configured redirect URL (the ) with an authorization code. The auth server then exchanges this code with the IdP to fetch user information.
Example Request/Response
Request
GET /oauth2/callback?code={authorization_code}&state={encoded_state}HTTP/1.1Host: login.truefoundry.com
To protect data integrity and privacy, all data in transit to and from the TrueFoundry Control Plane or Auth Server is encrypted using TLS 1.2 or higher.
5
Validate & create user if it doesn't exist
The validates the response from the SSO Identity Provider and maps the user based on the email claim against the database, creating a new entry if one doesn’t already exist.
Example Request/Response
This step is performed by the and is not visible to the user.Get Token from SSO Identity Provider:
Request
POST /oauth2/{client_id}/v1/tokenHTTP/1.1Host: example.sso.comContent-Type: application/x-www-form-urlencodedOrigin: https://login.truefoundry.comBody: code={authorization_code} &grant_type=authorization_code &redirect_uri=https://login.truefoundry.com/oauth2/callback
On successful code validation, the responds with authentication tokens (an access token and a refresh token), signed by the auth server.
By default the access token is valid for 1 day and the refresh token for 7 days. Contact support to change these expiries.
9
Set tokens as HttpOnly cookies
The TrueFoundry Control Plane sets these authentication tokens as HTTP-only cookies in the browser. All further requests to the control plane carry these cookies and are used for authentication and authorization at the API server layer.
Option 2 — Direct IdP integration (no TrueFoundry Auth Server)
Available on on-prem deployments only, on the higher-tier Enterprise plan.
For tenants that cannot allow any authentication traffic to leave their environment, the control plane can talk to your OIDC or SAML IdP directly — login.truefoundry.com is not in the loop. User emails and request counts never leave your network.How it works
The control plane is configured at install time with your IdP’s OIDC issuer or SAML metadata (via servicefoundryServer.env in Helm values).
When a user logs in, the control plane redirects them straight to your IdP.
After the IdP authenticates, the user returns directly to the control plane — tokens are signed locally using a private JWKS issued by TrueFoundry.
TrueFoundry support provides the INTERNAL_JWT_JWKS material required to sign tokens within your environment.
Both options support the same set of IdPs and protocols. The choice is about whether traffic flows through login.truefoundry.com or stays entirely within your environment.
Go to Platform → Settings → SSO, toggle Enabled, pick your SSO Provider, and choose OIDC or SAML v2 under Authentication Configuration.
The exact fields depend on the protocol you pick. The provider-specific guides above walk through every screen, but the high-level field mapping is the same everywhere:
OIDC
SAML v2
1
Create a client application in your IdP
Set the redirect/callback URL to https://login.truefoundry.com/oauth2/callback.
2
Fill in the TrueFoundry SSO form
Client ID — application/client ID issued by your IdP.
Client Secret — client secret value generated for the application.
Issuer URL — your IdP’s OIDC issuer (e.g. https://<tenant>.okta.com or https://login.microsoftonline.com/<tenant-id>/v2.0).
Discover endpoints — leave enabled to auto-fetch metadata from <Issuer URL>/.well-known/openid-configuration. If your IdP doesn’t expose a discovery document, disable this and manually fill in Authorization Endpoint, Token Endpoint, UserInfo Endpoint, and JWKS Endpoint.
Scopes(optional) — space-separated additional scopes. Defaults to openid email.
1
Create a service provider in your IdP
When entering ACS / Single sign-on URL or Audience / SP Entity ID, use placeholder values for now — you’ll replace them after saving in TrueFoundry.
X.509 Certificate (PEM) — the IdP signing certificate used to verify SAML responses.
3
Update the IdP configuration
After you save your SAML configuration:
Replace the placeholder ACS / Single sign-on URL with the actual Callback URL shown in TrueFoundry.
Replace the placeholder Audience / SP Entity ID with the actual Issuer shown in TrueFoundry.
Simplify claim configuration with attribute mapping (optional). SAML IdPs often emit attributes like http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress. Add aliases on the IdP side so TrueFoundry’s defaults work without touching advanced settings:
Attribute name
Map to
Purpose
sub
Your IdP’s user ID field
User’s unique identifier
email
Your IdP’s email field
User’s email address
groups
Your IdP’s groups field (if supported)
Group memberships for RBAC
Values you'll exchange with your IdP (full reference)
Every integration involves swapping a small set of values between TrueFoundry and your IdP. Knowing where each value lives in TrueFoundry up front makes the provider-specific guides much easier to follow.
TrueFoundry generates these once you create the SSO configuration under Platform → Settings → SSO. They’re shown in the SSO configuration panel after you click Save.
OIDC
SAML v2
TrueFoundry value
What your IdP calls it
Callback URL
Redirect URI / Sign-in redirect URI / Reply URL
The callback URL is always the same:
https://login.truefoundry.com/oauth2/callback
TrueFoundry value
What your IdP calls it
Callback URL
ACS URL / Assertion Consumer Service URL / Single sign-on URL / Reply URL
Issuer
SP Entity ID / Audience URI / Audience Restriction
Both values are shown in the SSO configuration panel after you save your SAML settings:
Click Show advanced fields in the SSO dialog to override defaults:
Button Text / Button Image URL — customize the SSO button on the TrueFoundry login screen.
Email Claim — claim/attribute carrying the user’s email. Defaults to email.
Unique ID Claim — claim/attribute carrying the user’s unique ID. Defaults to sub.
Wherever possible, configure your IdP to emit attributes named email, sub, and groups. With those names you don’t have to touch the advanced fields in TrueFoundry.
For IdPs that support SCIM, you can automatically create, update, and deactivate TrueFoundry users from your IdP. SCIM works alongside SSO (OIDC or SAML).
1
Enable SCIM in TrueFoundry
Turn on SCIM under Settings → Security & Access → Provisioning.
2
Copy the SCIM Base URL and token from TrueFoundry
Expand the SSO configuration to view the SCIM URL, and click the key icon to generate a SCIM token. Keep both handy — you’ll paste them into your IdP.The token is shown only once at creation. Treat it like a password. If you lose it, generate a new one (which invalidates the previous token).
3
Configure your IdP
In your IdP’s SCIM/provisioning settings, set:
Base URL / Tenant URL to the SCIM URL from TrueFoundry.
Authentication to Bearer token.
Bearer Token / Secret Token to the SCIM token from TrueFoundry.
Then assign users and groups in the IdP and start provisioning. Within a few minutes, users and teams will appear in TrueFoundry.
SCIM is one of three provisioning modes TrueFoundry supports. If you’d rather create users on first login or invite them manually, see Just-in-time (JIT) and Invite-only.
You’ll need admin access to both TrueFoundry and your IdP.
Each tenant has its own SSO and provisioning configuration — make sure you’re configuring the correct tenant.
For Option 1, TrueFoundry’s authentication server is login.truefoundry.com for all customers and the OIDC redirect/callback URL is always https://login.truefoundry.com/oauth2/callback.
For Option 2, work with TrueFoundry support to obtain the INTERNAL_JWT_JWKS material and follow External SSO (OIDC/SAML) at install time.
Once SSO is saved, click the row in the SSO list to view the Callback URL and Issuer that you’ll feed back into your IdP for SAML.
Pick a provider from the cards above to get started.