# SAML SSO

## Overview

Security Assertion Markup Language (SAML) is an open standard that allows identity providers (IdPs), such as Rippling, to pass authentication and authorization information to service providers (SPs), such as your application. SAML is one option that apps can use to power Single Sign-On (SS0).

Rippling supports SAML SSO capabilities. The SAML installation steps are treated as separate steps from the OAuth flow.

> **Note:**
> Once the SAML SSO capability is configured within the app listing by the partner, Rippling Admins installing your application will have the following options:
>
> -   Enable SAML SSO during the initial app installation.
> -   Postpone the configuration of SAML SSO to a later time.
> -   Opt-out of setting up SAML SSO entirely, as it remains an optional feature for Rippling Admins installing your application.

## SAML variables configuration options

The below list represents all of the possible SAML configuration values that Rippling can generate dynamically for each Rippling company who goes through the SAML SSO installation steps for your app. These configuration values represent Rippling SAML data that can be generated to then be used in your software.

#### SAML Metadata XML File

SAML metadata is configuration data that is required to establish trust between identity providers and service providers. Both identity providers and service providers have their own metadata, which typically provides the entity ID, redirect URL, and relevant certificates. Rippling can generate a metadata XML file that can be downloaded from Rippling by customers. This file is unique and different to each customer app installation.

#### Entity ID

A globally unique name for a SAML Identity Provider (IdP) or SAML Service Provider (SP). Unique IdP entity IDs are generated for each Rippling customer for each integrated application instance.

#### Assertion Consumer Service (ACS) / Single Sign-on URL / Target URL

An ACS URL is the third-party application's URL that will receive and digest SAML messages from the Identity Provider. This represents the URL endpoint of Rippling as an IDP.

> **Note:**
> This URL is unique and different to each customer app installation.

#### X.509 Certificate

X.509 certificates are trust anchors that allow you to verify signatures and establish trust in the SAML message exchanged between the IdP and SP. Supported certificates include .cert and .pem. Customers can download certificates from Rippling as necessary. Customer can also copy certificates from Rippling so that they can paste them somewhere else as necessary.

> **Note:**
> This certificate is unique and different to each customer app installation.

**Sharing data from your software to Rippling**

The below list represents all of the possible SAML configuration values that Rippling can ingest from your software in order to set up SAML SSO. Rippling can create instructions that allow customers, as part of the SAML SSO installation flow, to copy/upload SAML configurations into Rippling as necessary.

-   SAML Metadata File (upload into Rippling)
-   ACS URL
-   Entity ID
-   Relay State
-   Single Sign-On URL / Target URL (if your app only supports SP-Initiated SSO)

**Configuring SAML attributes**

Rippling can configure SAML attributes as needed. If your app requires SAML attributes to be configured the same for every single customer, this can be done within the app listing directly.

**Global SAML attributes vs. group SAML attributes**

Global SAML attributes are SAML attributes that are configured in your app once and are then used for every single customer who set ups SAML SSO. Using global SAML attributes guarantees that each Rippling company will use the exact same SAML attributes.

Group SAML attributes are configured within each app installation flow. They are optional and do not have to be configured by the customer. Group SAML attributes allows customers to add additional SAML attributes that are not included in the Global attributes. It enables customization of SAML attributes by customer.

**Configuring advanced SAML settings**

Rippling SAML also supports Advanced SAML settings in case there are custom configurations required. Typically, these advanced SAML settings do not require changes, but they are available in case exceptions are encountered. If you'd like to configure these SAML settings, this can be done within the app listing directly.

#### Default Name ID format to be used

This field defines the name identifier format that will be used to communicate with the application regarding a user. The default value configured is `urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress`.

#### Default Relay State

The default relay state provides the application with instructions on where to send users once they've successfully logged in. The default value configured is `null`.

#### Sign response

Certain applications require SAML responses to be signed. If this is the case, check this box to sign the response with the signing algorithm. If this is unchecked, only assertions will be signed. The default value configured is **YES**.

#### Signing algorithm

This algorithm is used in conjunction with the X.509 certificate and is used to sign the assertion. If Sign Response is checked, this algorithm will also be used to sign the SAML response. The default value configured is [http://www.w3.org/2000/09/xmldsig#rsa-sha1](http://www.w3.org/2000/09/xmldsig#rsa-sha1).

#### Digest algorithm for assertions

The digest algorithm is used to calculate the digest of the SAML Assertion or response. This is a part of the validation process to ensure the integrity of the SAML message. The default value configured is [http://www.w3.org/2000/09/xmldsig#sha1](http://www.w3.org/2000/09/xmldsig#sha1).

#### Encrypt assertions

Certain applications require SAML assertions to be encrypted. If this is required by the application, check this box and Rippling will encrypt the SAML assertions it emits for that application using the public key in the field below. The default value configured is **NO**.

#### Service provider's public key to encrypt assertions

Certain applications require SAML assertions to be encrypted. If this is required by the application, Rippling will encrypt the SAML assertions it emits for that application using this public key. The default value configured is `null`.

#### Disable 'InResponseTo' field in assertions for IDP initiated SSO

The 'inResponseTo' field is primarily used within login flows initiated from the application. If this field is not disabled, then Rippling will send a dummy value as a placeholder for this field. The default value configured is **NO**.

#### Disable automatic standardization of attributes

Rippling will automatically replace attribute names with their standard names when available. If this field is checked, Rippling will not modify the attribute names according to available standards. The default value configured is **NO**.

#### Use SAML standard namespaces for xml metadata/assertions

If this field is marked as true, Rippling will use the SAML defined standards for XML namespaces.

> **Note:**
> It is recommended that this field is checked.

The default value configured is **NO**.

#### Application only supports login initiated from the application, also referred to as SP initiated flow

In the case that an application only supports login initiated from the application, Rippling will enable you to push employees to the application's login page to begin the SSO process. In these cases, the Rippling dashboard will push users to the application to then begin the SSO process. The default value configured is **NO**.

## Custom SAML instructions

As part of the SAML SSO installation steps, you can create and add customized instructions for your app that guide customers through how they can set up SAML SSO. Rippling can generate dynamic values for each Rippling company with instructions for the customer to either email the value to your SSO support team or guide the customer on how to copy the values from Rippling and paste them into their own environment in your software.

Rippling SAML instructions allow you to do the following:

1.  **Generate SAML variables specific to each customer from Rippling** that can then be copied by the customer during the installation flow and pasted into your software. Customer-specific entity ID, ACS URL, Metadata File, Metadata URL, and X509 Certificates can be generated as necessary.
2.  **Enable customers to copy SAML variables from your 3rd-party software into Rippling** during the installation flow. You can create an input field for each instruction step and prompt customers to copy and paste, or upload a file into Rippling that will be used by Rippling once the SAML SSO integration is turned on.
3.  **Provide specific instructions to customers on how to turn on SAML SSO.** If customers have to email your support team to fetch their SAML information and request that it be turned on, you can write instructions and even the template email customers should send to your support team. If customers can fetch their SAML information self-service and on their own, you can provide screenshots with step by step instructions of where and how customers can turn on and fetch this information. If there are important behaviors or considerations customers shoudl be aware of, you can add disclaimers, FYIs, tips, and warnings to ensure that every customer is aware.

To create custom SAML SSO instructions:

-   Turn on your SSO capability and click **Save**.
-   Click on **Configure Settings**.

![saml1](https://developer.rippling.com/assets/images/saml1-c6a76175a7ed9db4bfed8785aaa817ba.png)

-   Click on **SAML** under "What type of SSO does your listing offer?".
-   After clicking on **Add/Edit SAML Instructions**, click on **New Step** next to **Instruction Step**.

![saml4](https://developer.rippling.com/assets/images/saml4-62e13adb9d786e186a5a959dedf8ab92.png)

-   You can now add and delete as many instruction steps as needed:

![saml5](https://developer.rippling.com/assets/images/saml5-eb46e5b734a09178844b63b27fba8749.png)

> **Note:**
> A couple of considerations about instructions steps:
>
> -   Each instruction step only supports one input field.
> -   Each instruction step only supports one image/screenshot.
> -   Copying text from other locations and pasting it in is not recommended as formatting consistency is not supported.

### Adding inputs to SAML instructions

You can add inputs to your SAML instructions so customers, if needed, can copy and paste or upload their SAML information into Rippling.

-   On your instruction step, scroll to the bottom and select **Add Input Field**.

  

![saml6](https://developer.rippling.com/assets/images/saml6-322d804d9696c2db14f1402212d00815.png)

  

-   Choose if you want the input to be text based or file based (Text, TextArea, or File).
-   Choose the SAML variable input you want customers to input (Metadata URL, ACS URL, Entity ID, etc.).
-   Provide a name for the input using the **Input Field Placeholder**.
-   Provide a **Field Tip** to help customers understand where they can fetch this variable from your software or your support team.
-   Click **Save Step**.

Each step can only have one input field at a time. So if you need multiple input fields you must create multiple instruction steps.

### Creating a custom parameter in SAML instructions

Sometimes SAML information has a customer-specific parameter tied to each the SAML information. For example, if you have a concept of "organization" that is tied to every customer's tenant and URLs, then your SAML Entity ID and ACS URL might look something like this:

[https://sample.com/{OrganizationCode}/entity](https://sample.com/%7BOrganizationCode%7D/entity)

[https://sample.com/{OrganizationCode}/acs](https://sample.com/%7BOrganizationCode%7D/acs)

Instead of creating two separate instruction steps to insert the Entity ID and ACS URL, you could instead create one instruction step to let the customer just input the Organization Code value. To do this:

-   Title your step.
-   Select **Add Input Field**.
-   Configure **Input Field Type** as **Text**.
-   Configure the **Input Field Dropdown** as **other**.
-   Add an **Input Field Name**.

> **Note:**
> If the 'Input Field Dropdown' is a different option from 'Other', the 'Input Field Name' field will not populate and will not need to be specified.

-   Type in the name you want to display to customers in the **Input Field Placeholder**.
-   Click **Save Step**.

Now that you have created the mechanism for the customer to insert their parameter, you need to configure that parameter in your SAML. Click the **Edit** button in the **Additional Setup Data**.

![saml9](https://developer.rippling.com/assets/images/saml9-081d44971638738f5c772c836328789b.png)

-   Configure your **ACS URL** and **Entity ID** rule using the parameter you just created.
-   You must insert your parameter using `{ }`.

![saml10](https://developer.rippling.com/assets/images/saml10-4d7d9fd7908a373d8f56ebc8c7f7f862.png)

-   Click **Save**.

Now, when a customer inputs the single value into the **OrganizationCode** input field, that value will then propagate to both your ACS URL and Entity ID.

### Adding dynamic SAML variables from Rippling

If you need a customer to have to manually fetch their SAML information from Rippling and paste it into your software, or send it to your support team, you can insert Rippling variables into your instructions step.

-   Create a new instruction step.
-   Click the **Insert Variable**.
-   Select your variable.

![saml11](https://developer.rippling.com/assets/images/saml11-fc5c6298d7b8bbb45dd080618ea9adbb.png)

-   Once selected, wrap the variable in `< >` if you want it to be an easy copy button for a customer to use.
-   Once selected, wrap the variable in `<< >>` if you want it to be an easy download button for a customer to use.

> **Note:**
> Please ensure that each variable **must** is wrapped. All variables must be wrapped!

## Creating a static SAML configuration

Hardcoded SAML configurations within the app listing enable you to configure static SAML settings that would be applied across every customer installing your application.

To configure this, you'll:

-   Turn on your SSO capability and click **Save**.
-   Click on **Configure Settings**.

![saml1](https://developer.rippling.com/assets/images/saml1-c6a76175a7ed9db4bfed8785aaa817ba.png)

-   Click on **SAML** under "What type of SSO does your listing offer?".
-   Select **Add/Edit SAML Configuration**.

![saml3](https://developer.rippling.com/assets/images/saml3-91f4625e983debcc45f31a549986abe3.png)

-   Input the necessary SAML information, which can include one of the following combinations:
    
    -   ACS URL and Entity ID
    -   Metadata URL
    -   Metadata

![saml14](https://developer.rippling.com/assets/images/saml14-01e1bdfd735b9c3a4f0704e1a3935dd3.png)

-   After selecting **Save**, these SAML configurations will apply for every customer installing your application.

## Requirements

To understand the SAML SSO requirements expected from apps in the Rippling App Shop, refer to our [Partner Requirements](https://developer.rippling.com/documentation/developer-portal/getting-started/requirements).

## FAQs

#### How should I configure my app listing if the SAML metadata will be the same across all customers?

If the SAML metadata will be the same for all customers installing your application, you will want to create a static SAML configuration. With these settings, you can hardcode information such as ACS Url, Entity ID, Metadata URL, or Metadata.

#### How should I configure my app listing if the SAML metadata is dynamic, or changes per customer installing the application?

If the app listing will have different SAML metadata for each customer installing the application, you can choose to create custom SAML instructions. This would allow you to create input fields where customers could copy and paste the varying SAML metadata information during the application's installation flow.

Additionally, you could create SAML instructions that guide each customer through how they contact your support organization to retrieve their SAML metadata information.

#### How do I know when a customer has enabled SAML SSO within my application?

There is currently no API endpoint or webhook which would notify you when a customer has enabled SAML SSO within your application. Because of this, the service provider should be the source of truth for this information. As part of the SAML SSO setup, the customer must enable this capability within the SP's system, which will, in turn, mean it has been turned on within Rippling.

#### How can I test out the SAML SSO connection initially without the API?

You can use the Rippling Custom SAML App Editor to test and build the SAML SSO connection as needed. You can configure the SAML settings in Rippling as you need and you can manually configure the SAML settings in your software from Rippling. This enables you to troubleshoot any of the SAML advanced settings as you require.

#### What if my customers do not all want SAML SSO as part of their integration?

While Rippling requires that your integration _support_ SSO (via SAML as one option), Rippling does not require that customers _enable_ SAML SSO with your integration. During the app installation flow, customers have the option to turn SAML SSO on or leave it off. Customers can choose to skip the SAML SSO flow during the initial app installation. They can navigate to the Setups tab of your app to turn on SAML SSO at any point.

#### How can I map my dynamic SAML attributes?

To map dynamic SAML attributes, such as user's first name, last name, etc, this can be done in within the app listing's capabilties.

Single sign-on will first need to be toggled on in the _Capabilties > Capabilities setup_ tab, and then you'll go to _Capability settings_ > select **SAML** > **Add/Edit SAML Instructions**. From here, you can select **\+ Add attribute** and create/map SAML attributes as needed.

![saml12](https://developer.rippling.com/assets/images/saml12-a9ff677960b5d2253746b33c70cd1188.png)

> **Note:**
> One thing to note is that even though the "email" attribute is already sent in the SAML response, there is the option to map this same attribute to different fields (which is why `user.email` is available within the value map dropdown).

#### I'm experiencing difficulty finalizing my SAML SSO connection.

For troubleshooting SAML SSO issues, please see [this Help Center article](https://help.rippling.com/s/article/360054486794).

It's important to remember that the metadata is unique to each installation of the application. If the app has been recently uninstalled and reinstalled, for instance, you'll need to refresh the SAML metadata. Utilize the aforementioned article to extract the SAML assertion, which can then be shared with your Service Provider (SP) to interpret the information contained within the metadata file.

> **Need Support?**
> If you're a partner seeking answers or encountering difficulties while integrating with Rippling, please contact us at [partner.support@rippling.com](mailto:partner.support@rippling.com). Ensure our responses reach you by preventing emails from this address from being filtered into your spam folder.

Source: https://developer.rippling.com/documentation/developer-portal/v2-guides/saml

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
