Auth0 (SAML / OIDC)
Configure SSO with Auth0 using SAML or OIDC protocols.
Last updated
Configure SSO with Auth0 using SAML or OIDC protocols.
This guide explains how to configure SSO integration between Trust and Auth0. After configuring Auth0, return to the Trust SSO Configuration Guide to complete the setup.
Before you begin: Access Trust and copy the Identifier and Reply URL fields as described in Step 2 of the SSO Configuration Guide.
Administrator access to Auth0
Administrator access to Trust
Verified corporate email domain
Access the Auth0 Dashboard
Navigate to Applications → Applications
Click Create Application

Configure the Name (e.g., "Trust - Caf")
Select Regular Web Applications and click Create

In the created application, access the Addons tab
Locate SAML2 Web App and click to enable
Click on SAML2 Web App after enabling

In the settings tab, in the Application Callback URL field, paste the Reply URL from Trust

Configure the JSON:
In the audience field, enter the Trust Identifier URL and configure the mappings
Scroll to the end of the Settings tab and click Save
Access the Usage tab
Locate the Identity Provider Login URL
Build the Metadata URL by adding /metadata before the client ID:
Identity Provider Login URL
https://{your-domain}/samlp/{client-id}
Metadata URL
https://{your-domain}/samlp/metadata/{client-id}
Example: If the Identity Provider Login URL is https://dev-abc123.us.auth0.com/samlp/xyz789, the Metadata URL will be https://dev-abc123.us.auth0.com/samlp/metadata/xyz789.

Access the Auth0 Dashboard
Navigate to Applications
Click Applications
Click Create Application

Configure the Name (e.g., "Trust - Caf")
Select Regular Web Applications and click Create

In the application's Settings tab, configure:
Allowed Callback URLs
Paste the Reply URL copied from Trust

Click Save.
In the same Settings tab, copy the following information:
Domain
Use to build the Issuer URL
Client ID
Client ID
Client Secret
Client Secret

The Auth0 Issuer URL follows the format:
In Auth0, user access to the application is controlled by enabled Connections. A Connection is the source of user identity (internal database, social login, corporate directory, etc.).
In the created application, access the Connections tab
Enable the connections where your users are registered

Database
Users registered directly in Auth0 (e.g., Username-Password-Authentication)
Social
Login via social providers (Google, Microsoft, etc.)
Enterprise
Corporate connections (SAML, OIDC, Azure AD, etc.)
Important: If the Connection where the user is registered is not enabled for the application, the user will not be able to log in.
After configuring Auth0, return to the Trust SSO Configuration Guide to:
Callback URL error
URL does not match
Verify that the reply URL is exactly the same in Allowed Callback URLs
Invalid token
Incorrect Client Secret
Regenerate the Client Secret in Auth0 and update it in Trust
Groups not received
Action not configured
Configure the Action to include groups in tokens/assertions
Invalid SAML assertion
Incorrect audience
Verify that the audience in the addon JSON matches the Trust Identifier
User not found
Connection not enabled
Check the enabled connections in the Connections tab
Last updated
{
"audience": "Identifier URL",
"mappings": {
"email": "email",
"name": "name",
"given_name": "given_name",
"family_name": "family_name"
},
"nameIdentifierFormat": "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress",
"nameIdentifierProbes": [
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"
]
}https://{your-domain}/
