> For the complete documentation index, see [llms.txt](https://docs.shiptify.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shiptify.com/single-sign-on-sso/single-sign-on/saml-2.0.md).

# SAML 2.0

SAML 2.0 enables a user to authenticate in one system and access another by proving their authentication.

### Overview of SAML

<mark style="color:purple;">SAML 2.0</mark> (Security Assertion Markup Language) is an open standard created to provide <mark style="color:purple;">cross-domain single sign-on</mark> (SSO).

Although SAML has been around since 2005, it remains a popular choice for identity federation in B2B and B2E applications, contributing to its ongoing success. If you aim to offer seamless SSO between businesses and enterprises, supporting SAML is essential. It is predominantly used in enterprise and government applications.

SAML relies on XML to represent user identity data and uses simple HTTP protocols for data transport.

### How SAML Works?

SAML is an XML-based authentication protocol in which <mark style="color:purple;">Identity Providers (IdP)</mark> -- entities that manage and store user credentials -- exchange digitally signed XML documents, known as SAML Assertions, which allow users to access a Service Provider (SP), such as the apps you use daily at work or a website.

The service requesting and receiving data from the <mark style="color:purple;">Identity Providers (IdP)</mark> is known as the <mark style="color:purple;">Relying Party (RP)</mark> and the user identity data, encapsulated in the <mark style="color:purple;">SAML Assertion</mark>, is in the form of attributes, e.g,. email address, name, phone, etc.

### SAML and Single Sign-On (SSO)

SAML authentication workflows can be initiated by either the Service Provider (SP) or the Identity Provider (IdP). For instance, IdP-initiated authentication may occur when an employee is logged into their corporate dashboard and wants to access a company-purchased tool on an external site. The IdP sends a SAML Assertion through the web browser, logging them in automatically.

In SP-initiated authentication, an employee attempting to access an external site (the SP) is redirected to their corporate SSO login page to authenticate. After successful authentication, they are redirected back to the external site, with a SAML Assertion verifying their identity.

### Using SAML with Shiptify

<figure><img src="https://350225424-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyxHjxTF7kQzmBcBwXcc1%2Fuploads%2FrybBJajT8FTfCQT3mAPw%2FCleanShot%202026-01-26%20at%2011.45.02.png?alt=media&amp;token=169201bd-6d55-4ede-ad47-a086b7b71348" alt=""><figcaption></figcaption></figure>

To implement SAML on Shiptify, please contact your sales representative. Once confirmed, we will provide you with our digitally signed XML file and await yours to set up the protocol.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.shiptify.com/single-sign-on-sso/single-sign-on/saml-2.0.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
