# Single Sign On (SS0)

### Overview

Activating Rechat as an SSO requires 2 steps:

1. Adding Rechat as a Service Provider
2. Adding your IdP to Rechat

### Step 1: Creating a SAML Service Provider

The first step in activating Rechat's Single Sign On is to add Rechat as a Service Provider.\
You can add Rechat as a service provider using the following specs:

| Key             | `Value`                            |
| --------------- | ---------------------------------- |
| ACL URL         | <https://api.rechat.com/auth/saml> |
| Entity ID       | <https://api.rechat.com/auth/saml> |
| Signed Response | Enabled                            |
| NameID Format   | EMAIL                              |

Rechat will also look for the following data coming from SSO users to populate their information:

| 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: Providing Metadata to Rechat

You need to provide Rechat the following information:

* SSO Url
* Entity ID
* Certificate
* Service Provider's ID

Some IdP Providers allow you to download all required metadata in a in a XML file. The XML file is also a valid method of gaining this information.

Once you have completed Step 1, you can contact us to activate your SSO.
