This guide walks you through setting up OpenID Connect (OIDC) 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 SAML 2.0 instead of OIDC, see SAML 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 (Administrator role on the tenant).
Configuration overview
Create a Regular Web Application in Auth0
Register a new application in your Auth0 tenant that TrueFoundry will federate with.
Copy the OIDC credentials into TrueFoundry
Paste the Auth0 Domain, Client ID, and Client Secret into the TrueFoundry SSO form.
Step 1 — Create an application in Auth0
Open Applications
Sign in to the Auth0 dashboard as an administrator.In the left navigation, expand Applications and click Applications, then click Create Application in the top-right.
Choose the application type
Fill in:
- Name — a label such as
TrueFoundry. - Application type — choose Regular Web Applications.
Step 2 — Add TrueFoundry’s callback URL
Add the Allowed Callback URL
On the Settings tab, scroll down to Application URIs and set Allowed Callback URLs to:
Step 3 — Copy the OIDC credentials
Still on the Settings tab, scroll up to the Basic Information section.| Auth0 field | Where you’ll paste it in TrueFoundry |
|---|---|
| Domain | Used to build the Issuer URL |
| Client ID | Client ID |
| Client Secret | Client Secret |
Step 4 — (Optional) Enrich the ID token with claims
By default, Auth0’s ID token includessub, email, and basic profile fields when you request the openid email profile scopes. If you want to send extra information — for example, group memberships — add an Action that decorates the token.
Create a Login flow Action
Give the Action a name such as
Add TrueFoundry claims, choose the Login / Post Login trigger, and click Create.If you add a
groups claim, remember to add groups under Scopes when configuring TrueFoundry below.Step 5 — Configure TrueFoundry
Fill in the SSO form
- Enabled: turn this on.
-
Name: a label such as
Auth0 OIDC. - SSO Provider: select Custom.
- Authentication Configuration: choose OIDC.
- Client ID: the Client ID from Auth0.
- Client Secret: the Client Secret from Auth0.
- Discover endpoints: leave enabled.
-
Issuer URL:
Replace
<your-tenant>with the Domain from your Auth0 application — for example,https://acme.us.auth0.com/. If you use a custom Auth0 domain, use that instead (for example,https://auth.acme.com/). -
Scopes (optional): leave blank to use the default
openid email. Addprofileif you want first/last name; addgroupsif you configured the custom claim above.
Step 6 — Test single sign-on
- Open a private/incognito window and visit 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 SAML instead — see SAML with Auth0 for the equivalent SAML 2.0 flow.
Troubleshooting
'Issuer did not match' or 'Failed to discover endpoints'
'Issuer did not match' or 'Failed to discover endpoints'
Almost always a trailing-slash problem. The Auth0 issuer must end with
/ — use https://<tenant>.auth0.com/, not https://<tenant>.auth0.com. Update the Issuer URL in TrueFoundry and save again.'Callback URL mismatch' on the Auth0 consent screen
'Callback URL mismatch' on the Auth0 consent screen
The exact URL
https://login.truefoundry.com/oauth2/callback is missing from Allowed Callback URLs on the Auth0 application. Add it (comma-separated if other URLs already exist), save changes, and retry.Sign-in works but the user's email is empty
Sign-in works but the user's email is empty
Auth0 only emits the
email claim when the application requests the email scope. The TrueFoundry default already includes it, but if you overrode Scopes, make sure email is in the list — for example, openid email profile.If you still see an empty value, deploy the Add TrueFoundry claims Action from Step 4 to force email into the ID token, and expand Show advanced fields in TrueFoundry to set Email Claim to email.Users sign in but no groups arrive
Users sign in but no groups arrive
Auth0 does not send group/role information by default. Deploy the Action from Step 4, add
groups under Scopes in TrueFoundry, and re-test. You can verify the claim by decoding the ID token at jwt.io after a successful sign-in.