This guide walks you through setting up SAML 2.0 single sign-on between TrueFoundry and Auth0. Once finished, members of your Auth0 tenant can sign in to TrueFoundry through a Login with Auth0 button. For OpenID Connect instead of SAML, see OIDC with Auth0.Documentation Index
Fetch the complete documentation index at: https://www.truefoundry.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- A TrueFoundry tenant with Admin access to Platform → Settings → SSO.
- An Auth0 tenant with permission to create Applications and configure Addons.
Configuration overview
Create an Auth0 application (or use an existing one)
Get the TrueFoundry SAML metadata
Paste Auth0's IdP details into TrueFoundry
Step 1 — Create or pick an Auth0 application
Open Applications
Create or reuse
TrueFoundry, select Regular Web Applications, and click Create.Step 2 — Create the SSO configuration in TrueFoundry
In a second browser tab, open TrueFoundry to generate the Callback URL that the Auth0 addon needs.Fill in the basic fields
- Enabled: turn this on.
- Name: a label such as
Auth0 SAML. - SSO Provider: choose Custom.
- Authentication Configuration: select SAML v2.
Save to reveal the Callback URL and Issuer
- Callback URL — the Assertion Consumer Service (ACS) URL. You’ll paste this into the addon’s Application Callback URL field.
- Issuer — the SP Entity ID. You’ll add this to the addon’s settings JSON in the next step.
Step 3 — Enable the SAML2 Web App addon
Back in your Auth0 application, open the Addons tab.Enable SAML2 WEB APP
Set the Application Callback URL
Configure the addon settings JSON
audience value with the Issuer value from TrueFoundry:Step 4 — Copy Auth0’s IdP details into TrueFoundry
Re-open the Addon: SAML2 Web App dialog and switch to the Usage tab.Copy the Identity Provider Login URL
Copy the Identity Provider Certificate
<X509Certificate> block from the metadata XML).Open the downloaded .pem file in a text editor and copy the entire contents — including the -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- lines.Step 5 — Test single sign-on
- Open a private/incognito window and go to your TrueFoundry login page.
- Click Login with Auth0 (or whichever button label you chose under Show advanced fields → Button Text).
- Authenticate with an Auth0 user.
Optional next steps
- Use OIDC instead of SAML — see OIDC with Auth0 for the equivalent OpenID Connect flow.
Troubleshooting
'Invalid Signature' or 'Could not validate SAML response'
'Invalid Signature' or 'Could not validate SAML response'
-----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- lines) into TrueFoundry.If you’re pasting from the metadata XML directly, wrap the bare base64 inside the BEGIN/END markers before saving.'AudienceRestriction' mismatch error
'AudienceRestriction' mismatch error
audience value inside the Auth0 addon’s Settings JSON must exactly match the Issuer value shown on the TrueFoundry SSO row. Re-copy the Issuer from TrueFoundry and update the addon settings.Sign-in works but the user's email is empty
Sign-in works but the user's email is empty
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress rather than email. Either:- Keep the
mappingsblock from Step 3 (which renames the attribute toemail), or - Expand Show advanced fields in TrueFoundry and set Email Claim to
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress.
The Login button works but the user gets 'no matching user found'
The Login button works but the user gets 'no matching user found'