> For the complete documentation index, see [llms.txt](https://docs.ledge.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ledge.co/authentication/how-to-guide-configure-saml-sso-with-ledge.md). Agents can also search and read this documentation through its [MCP server](https://docs.ledge.co/~gitbook/mcp).

# How-to Guide: Configure SAML SSO with Ledge

This guide describes how to configure a SAML 2.0 application in your Identity Provider (IdP) to enable single sign-on with Ledge. The setup is the same regardless of which IdP you use - JumpCloud, Microsoft Entra ID, Google Workspace, OneLogin, and others all follow the same SAML 2.0 standard. Only the UI for entering these values differs between IdPs.\
([click here for Okta](https://docs.ledge.co/authentication/okta-sso-saml.md))

{% hint style="info" %}
Note: Your Ledge Customer Experience Manager will provide you with the connection name — referred to below as  `your-ledge-workspace`.
{% endhint %}

#### Create a SAML 2.0 application

In your IdP's admin console, create a new SAML 2.0 application (sometimes called a "Custom SAML App", "SAML Integration", or "Enterprise Application") and configure the following:

<table data-header-hidden><thead><tr><th></th><th width="249"></th><th></th></tr></thead><tbody><tr><td><strong>Setting</strong></td><td><strong>Description</strong></td><td><strong>Value</strong></td></tr><tr><td>ACS URL</td><td>Where the SAML assertion is sent. Also called "Single Sign-On URL" or "Reply URL".</td><td><code>https://auth.goledge.io/login/callback?connection={your-ledge-workspace}</code></td></tr><tr><td>SP Entity ID</td><td>The Ledge service identifier. Also called "Audience URI" or "Audience".</td><td><code>urn:auth0:goledge:{your-ledge-workspace}</code></td></tr><tr><td>NameID Format</td><td>How the user is identified in the assertion.</td><td><code>urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress</code></td></tr><tr><td>NameID Value</td><td>The user's email address.</td><td>Map to your IdP's email user property</td></tr><tr><td>Signature Algorithm</td><td>Algorithm used to sign the assertion.</td><td>RSA-SHA256</td></tr></tbody></table>

#### Configure attribute statements

Ledge requires the following SAML attributes in the assertion. The attribute names must be the **exact claim URIs** shown below; the values come from your IdP's user properties.

| **Attribute Name (claim URI)**                                       | **Value**         |
| -------------------------------------------------------------------- | ----------------- |
| `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress` | User's email      |
| `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname`    | User's first name |
| `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname`      | User's last name  |
| `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name`         | User's full name  |

These are the standard XML SOAP schema URIs used by most enterprise SAML implementations. If your IdP uses an expression language for attribute values (e.g. Okta), you can construct the full name as `firstname + " " + lastname`; otherwise map it to your IdP's display name property.

#### Assign users

Assign the appropriate users or user groups to the SAML application in your IdP. Only assigned users will be able to sign in to Ledge.

#### Send the configuration to Ledge

Once the SAML app is saved, your IdP will generate metadata that Ledge needs to complete the configuration. Send the following to your Ledge Customer Experience Manager:

* **Preferred:** the IdP metadata XML file (contains both the Sign-In URL and the signing certificate in one file)
* **Or, separately:**
  * The IdP Sign-In URL (sometimes called "SSO URL" or "Login URL")
  * The IdP X.509 signing certificate

Once received, Ledge will complete the configuration on our side and confirm when testing can begin.
