Skip to main content
This guide walks you through connecting a Google Workspace custom SAML application to Prelude Auth. Google is the Identity Provider (IdP); Prelude Auth is the Service Provider (SP).

Prerequisites

Because the SP endpoints embed the generated connection ID, the flow is: start the Google SAML app to obtain its metadata, create the Prelude connection from that metadata, then paste the generated SP values back into Google.

Configure Google Workspace SAML

1

Create a custom SAML app in Google

  1. Open the Google Admin Console
  2. Go to Apps > Web and mobile apps
  3. Click Add app > Add custom SAML app
  4. Enter an app name (e.g. “Prelude Auth”) and click Continue
  5. On the Google Identity Provider details screen, click Download metadata (or copy the SSO URL, Entity ID, and Certificate). Click Continue.
2

Create the SAML connection in Prelude

Create the connection from Google’s metadata. Start it disabled — you will enable it once the SP URLs are wired back into Google. If you downloaded the metadata XML, base64-encode it and pass it as idp_metadata_xml:
Alternatively, supply the IdP values explicitly instead of the metadata XML:
The response contains an sp block with the values you need next (sp.entity_id and sp.acs_url).
3

Enter the SP details in Google

Back in the Google Admin Console, on the Service provider details screen:
  1. Set ACS URL to the sp.acs_url from the response
  2. Set Entity ID to the sp.entity_id from the response
  3. Set Name ID format to EMAIL
  4. Set Name ID to Basic Information > Primary email
  5. Click Continue
4

Map attributes

On the Attributes screen, map Google directory fields to the attribute names Prelude expects. The Google provider defaults to snake_case names, so map:Click Finish.
If you use different attribute names on the Google side, override them in the connection’s mapping block via a PUT request.
5

Turn on access and enable the connection

  1. In Google, open User access for the app and turn it ON for the relevant organizational units.
  2. Enable the Prelude connection:

Delete the connection

Existing saml:<connection_id> user identifiers are retained so historical sessions stay auditable.

What’s next?

Now that the Google Workspace connection is configured, integrate the frontend using the Web Integration guide, or require this domain to use SSO with Enforce SSO login.