This guide walks you through setting up SAML 2.0 single sign-on between TrueFoundry and OneLogin. OneLogin doesn’t ship a TrueFoundry-specific connector, so you’ll use the SAML Custom Connector (Advanced) app and wire it up manually. Once finished, members of your OneLogin account can sign in to TrueFoundry through a Login with OneLogin button.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.
- A OneLogin account with permission to create new Applications (Super User or Admin).
Configuration overview
Create a custom SAML app in OneLogin
Get the TrueFoundry SAML metadata
Configure the SAML connection on both sides
Step 1 — Create a SAML app in OneLogin
Open Applications
Add a new app
SAML Custom and select SAML Custom Connector (Advanced) from the results.Step 2 — Create the SSO configuration in TrueFoundry
In a second browser tab, open TrueFoundry to generate the values OneLogin needs.Fill in the basic fields
- Enabled: turn this on.
- Name: a label such as
OneLogin SAML. - SSO Provider: choose Custom. OneLogin isn’t in the dropdown, so the Custom option is the right pick.
- Authentication Configuration: select SAML v2.
Step 3 — Enter TrueFoundry’s details into OneLogin
Back in OneLogin’s application detail page, switch to the Configuration tab on the left.Fill in the Application details
| OneLogin field | Value to paste |
|---|---|
| Audience (Entity ID) | TrueFoundry Issuer |
| ACS (Consumer) URL Validator | A regex that matches the TrueFoundry Callback URL, for example ^https:\/\/login\.truefoundry\.com\/.*$ |
| ACS (Consumer) URL | TrueFoundry Callback URL |
| Login URL | (optional) The TrueFoundry login page, for IdP-initiated sign-in |
Set the SAML initiator and signature element
- SAML initiator → Service Provider.
- SAML signature element → Assertion.
Step 4 — Copy OneLogin’s IdP details back to TrueFoundry
Switch to the SSO tab on the left side of the OneLogin application.Grab the IdP endpoint and certificate
- SAML 2.0 Endpoint (HTTP) — this is the URL TrueFoundry uses to redirect users to OneLogin.
- X.509 Certificate — click View Details under the certificate, then copy the entire PEM, including the
-----BEGIN CERTIFICATE-----and-----END CERTIFICATE-----lines.
Step 5 — Map SAML parameters in OneLogin
OneLogin doesn’t include user profile attributes in the SAML response by default. You need to add them under the Parameters tab so TrueFoundry can identify the user.Add the required parameters
| Field name | Value (OneLogin attribute) |
|---|---|
email | |
firstName | First Name |
lastName | Last Name |
(Optional) Add a groups parameter
- Field name →
groups - Check Include in SAML assertion and Multi-value parameter.
- Value → the OneLogin attribute that carries the user’s group memberships, typically
MemberOfor a custom roles attribute.
Step 6 — Assign users in OneLogin
OneLogin only sends SAML responses for users assigned to the application.Open Users
Step 7 — Test single sign-on
- Open a private/incognito window and go to your TrueFoundry login page.
- Click Login with OneLogin (or whichever label you set under Show advanced fields → Button Text).
- Authenticate with a OneLogin user that you assigned to the application.
Optional next steps
- Automate user lifecycle with SCIM — see SCIM with OneLogin to push users and groups from OneLogin into TrueFoundry automatically.
- Customize the login button — under Show advanced fields, set Button Text to
Login with OneLoginand Button Image URL to a hosted logo if you’d like a branded button.
Troubleshooting
OneLogin returns 'ACS URL does not match' or 'Invalid ACS URL'
OneLogin returns 'ACS URL does not match' or 'Invalid ACS URL'
^https:\/\/login\.truefoundry\.com\/.*$) genuinely matches the Callback URL you copied from TrueFoundry. Don’t forget to escape the slashes in the regex.TrueFoundry sign-in fails with 'no email found in SAML response'
TrueFoundry sign-in fails with 'no email found in SAML response'
email parameter isn’t being sent. In OneLogin’s Parameters tab, open the email row and make sure Include in SAML assertion is checked and the value is set to the user’s Email attribute. The parameter name must be exactly email (lower-case) unless you’ve overridden Email Claim under TrueFoundry’s Show advanced fields.'Invalid Signature' or 'Could not validate SAML response'
'Invalid Signature' or 'Could not validate SAML response'
-----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- lines, then paste it back into TrueFoundry’s X.509 Certificate field.The Login button works but the user gets 'no matching user found'
The Login button works but the user gets 'no matching user found'
'Audience' or 'Entity ID mismatch' errors
'Audience' or 'Entity ID mismatch' errors