> For the complete documentation index, see [llms.txt](https://help.rechat.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.rechat.com/appendix/brokerage-set-up/single-sign-on.md).

# Single Sign-On (SSO)

Rechat supports SAML 2.0 single sign-on (SSO) and identity provider-initiated single logout (SLO). This guide is intended for administrators who are configuring Rechat in their identity provider (IdP)

### Overview

Activating SSO requires two steps. Configuring Single Logout is optional:

1. Add Rechat as a SAML service provider.
2. Provide your IdP metadata to Rechat.
3. Optional: Configure SAML Single Logout (SLO).

### Step 1: Add Rechat as a SAML Service Provider

Add Rechat as a SAML service provider in your identity provider (IdP) using the settings below:

| Key                       | Value                                     |
| ------------------------- | ----------------------------------------- |
| ACS URL                   | <https://api.rechat.com/auth/saml>        |
| Entity ID                 | <https://api.rechat.com/auth/saml>        |
| Signed Response           | Enabled                                   |
| NameID Format             | Email address                             |
| Single Logout Service URL | <https://api.rechat.com/auth/saml/logout> |

Rechat can use the following SAML attributes to populate the user’s profile:

| Property               | Example                                   |
| ---------------------- | ----------------------------------------- |
| `firstName`            | John                                      |
| `lastName`             | Smith                                     |
| `phoneNumber`          | (555) 555-1234                            |
| `timezone`             | America/Chicago                           |
| `profileImage`         | <https://yourwebsite.com/agents/1002.jpg> |
| `userid` (primary key) | 12345                                     |

### Step 2: Provide Your IdP Metadata to Rechat

Provide Rechat with the following information:

* SSO URL
* Entity ID (issuer)
* IdP signing certificate
* Single Logout URL (optional)

Many IdPs provide these values in a downloadable metadata XML file. You can send that file to Rechat instead of listing each value separately.

After completing Steps 1 and 2, contact Rechat to activate SSO for your organization.

### Optional: Configure SAML Single Logout

Rechat supports identity provider-initiated SAML 2.0 Single Logout (SLO) at:

`https://api.rechat.com/auth/saml/logout`

The endpoint supports HTTP-Redirect (GET) and HTTP-POST bindings. The IdP must send a signed `LogoutRequest` containing its issuer and the user’s `NameID`; `SessionIndex` and `RelayState` are optional.

Rechat validates the request, expires the matching SSO session, and redirects the browser to the IdP with a `LogoutResponse`. If no `SessionIndex` is provided, all sessions for that user and SSO provider are expired; other authentication tokens are unaffected.

Invalid issuers, payloads, or signatures are rejected without expiring a session.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.rechat.com/appendix/brokerage-set-up/single-sign-on.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
