This guide walks you through setting up SAML 2.0 single sign-on between TrueFoundry and Google Workspace. Once finished, members of your Workspace can sign in to TrueFoundry through a Login with Google 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 Google Workspace account with Super Admin privileges on
admin.google.comso you can create custom SAML apps.
Configuration overview
Create a custom SAML app in Google
Create the TrueFoundry SSO record
Wire both sides together
Step 1 — Create a custom SAML app in Google
Open the Google Admin Console
Step 2 — Capture Google’s Identity Provider details
The wizard advances to Google Identity Provider details. You’ll grab three values from this screen.Copy the SSO URL
Copy the Entity ID
Download the certificate
.pem file. Its filename starts with Google_ and ends with _SAML2.0. Keep it somewhere you can open in a plain-text editor.Step 3 — Create the SSO configuration in TrueFoundry
In a second browser tab, open TrueFoundry to generate the values Google needs.Fill in the basic fields
- Enabled: turn this on.
- Name: a label such as
Google Workspace SAML. - SSO Provider: select Google.
- Authentication Configuration: choose SAML v2.
Step 4 — Enter TrueFoundry’s details into Google
Switch back to the Google Admin Console tab — you should still be on the Service Provider Details step of the wizard.Paste the Service Provider URLs
| Google field | Paste this value from TrueFoundry |
|---|---|
| ACS URL | TrueFoundry Callback URL |
| Entity ID | TrueFoundry Issuer |
Step 5 — Map Google directory attributes
You’ll now arrive at the Attributes step. TrueFoundry expects the user’s email and (optionally) their name and group memberships in the SAML assertion.Add the core attribute mappings
| Google directory attribute | App attribute |
|---|---|
| Primary email | email |
| First name | firstName |
| Last name | lastName |
(Optional) Send group memberships
groups.Step 6 — Paste Google’s IdP details into TrueFoundry
Return to Platform → Settings → SSO in TrueFoundry and edit the SSO record you saved in Step 3.Set the Identity Provider Endpoint
Set the X.509 Certificate
.pem file you downloaded from Google in any text editor. Copy the entire contents — including the -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- lines — and paste them into the X.509 Certificate field.(Optional) Tune the advanced fields
- Button Text — for example
Login with Google. - Button Image URL — a Google “G” mark hosted on your CDN.
- Email Claim — leave as
emailto match the mapping from Step 5. - Unique ID Claim — leave as
sub. Google’s SAML responses set the Name ID to the user’s primary email, which TrueFoundry uses by default.
Step 7 — Enable user access in Google
Newly-created custom SAML apps are turned OFF for the entire Workspace. You must explicitly enable the app for the users who should be able to sign in.Open User access
Step 8 — Test single sign-on
- Open a private/incognito window and visit your TrueFoundry login page.
- Click Login with Google (or whichever Button Text you chose).
- Authenticate with a Google Workspace user that the app is enabled for.
Optional next steps
- Use OIDC instead — if you don’t need SAML’s group-claim semantics, the
OIDCflow against Google is simpler. Configure a Google Cloud OAuth client and switch Authentication Configuration to OIDC in TrueFoundry. - Switch to a different IdP — see SAML with Microsoft Entra ID for the equivalent flow against Entra.
Troubleshooting
'Invalid Signature' or 'Could not validate SAML response'
'Invalid Signature' or 'Could not validate SAML response'
.pem from the Google Identity Provider details screen of your custom SAML app and paste the entire contents — including the -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- lines — into TrueFoundry’s X.509 Certificate field.Users see 'app_not_configured_for_user' after clicking Login with Google
Users see 'app_not_configured_for_user' after clicking Login with Google
Sign-in works but the user's email is empty in TrueFoundry
Sign-in works but the user's email is empty in TrueFoundry
email attribute mapping wasn’t saved. Edit the SAML app in Google, open Attribute mapping, and confirm Primary email → email is present. As a fallback, expand Show advanced fields in TrueFoundry and set Email Claim to the literal Name ID by leaving it as email — Google’s Name ID is already the user’s primary email when Name ID is set to Basic Information > Primary email.'SAML Response is not signed' or 'Signature required'
'SAML Response is not signed' or 'Signature required'
Group memberships aren't visible in TrueFoundry
Group memberships aren't visible in TrueFoundry
groups app attribute. Edit the app, add the groups, click Save, and re-test sign-in.