# Set up SAML single sign-on

Connect your identity provider so people sign in to Rework with the account they already have, and choose whether passwords still work.

Source: https://support.rework.com/article/set-up-saml-single-sign-on

If your company already runs an identity provider such as Okta, Microsoft Entra ID, Google Workspace or Keycloak, your people shouldn't need a second password to get into Rework. SAML single sign-on hands the sign-in step to that provider: someone clicks **SAML SSO** on the login page, authenticates where they always do, and comes back signed in. Joiners and leavers are then handled in one place instead of two. This guide walks you through the whole exchange, from collecting the details to switching it on.

> **Note:** You'll need the **App Admin** role in Rework Account to open this page. SAML also has to be enabled on your deployment; if it isn't, the page opens but the configuration can't be saved.

## Before you start

SAML is a two-way exchange, so you need details from your identity provider and your provider needs details from Rework. Collect these four from your provider's admin console first:

- The **IdP Entity ID** (sometimes called Issuer or Identity Provider Issuer).
  
- The **SSO URL** (Sign-on URL, SAML 2.0 Endpoint, or Login URL) as an `https://` address.
  
- The **SLO URL**, if the provider supports single logout. This one is optional.
  
- The **x509 signing certificate**, in PEM form, including its `-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----` lines.
  

You'll also need to know which attribute carries the user's email address, because that's what Rework matches against. Every person who will sign in this way must already exist in Rework with that same email.

## Step 1: Open SAML Single Sign-On

- Open the **Account** app, then **Settings** in the left sidebar.
  
- On the **System security** card, click **Config SAML single sign-on**.
  

![The System security card with Config SAML single sign-on](https://storage.googleapis.com/reworkv3-public/success/260923/rfNncXnBPwW35gLng6kYooS68A1LMFN5HiP35FrQoJNqyt133StZt96BS3xS6zQk/img.2cWgb4AzMnCXIKgTPHEeaMmv0wzG4sGnADpANYdOCOPYC8wazYPZpuUaP5RsaSKW.png)

## Step 2: Leave Status on Disabled while you work

The **Identity provider** card opens with two decisions at the top.

1. **Status** turns the connection on and off. Leave it on **Disabled** until you've filled everything in and given your provider the Rework details from Step 5. Saving with **Enabled** and an incomplete form is refused with _Enable requires Entity ID, SSO URL, and x509 certificate_.
   
2. **Enforcement** decides whether passwords still work:
   
   - **Allow password sign-in alongside SAML**: people can use either. Keep this while you're testing, and keep it if contractors or service accounts have no entry in your identity provider.
     
   - **Require SAML — block password sign-in**: the only way in is your provider.
     

![Status and Enforcement at the top of the Identity provider card](https://storage.googleapis.com/reworkv3-public/success/260923/c9IW2YUdWOY2LvieUwY8KDw6Bdi8sRpENGND5yGVP0x1xfLvPxuhRegbriEQzMOI/img.B5kybQtXdsuA6TMaR5bZJPo2CTnUsIyY53wBc8Xhr8qAliOPi7FQXv8n6gP1LJN2.png)

> **Warning:** **Require SAML — block password sign-in** applies to everyone, including you. Turn it on only after you've signed in through your provider at least once in another browser and confirmed it works.

## Step 3: Enter the identity provider details

Fill in the four values you collected:

1. **IdP Entity ID**: the issuer your provider identifies itself with, for example `https://idp.northwind.studio/saml/metadata`.
   
2. **SSO URL**: where Rework sends people to sign in, for example `https://idp.northwind.studio/saml/sso`. It has to start with `http://` or `https://`, or the page answers _Must be an http(s) URL_.
   
3. **SLO URL (optional)**: where Rework sends a single-logout request. Leave it empty if your provider doesn't offer one.
   
4. **x509 Certificate**: paste the whole certificate, BEGIN and END lines included. Rework uses it to check that the responses really came from your provider, so a missing or truncated block is answered with _Paste the certificate including the BEGIN/END lines_.
   

![The four identity provider fields filled in with Northwind values](https://storage.googleapis.com/reworkv3-public/success/260923/G3T3NaT6cQEFAl0uM62dNoQUi8lGwjj7tbYsCVjxwSiKeosS0Pc4BGOtyZJ2RzfV/img.hwDzQU3Aj1zjdtr492r1eMfifCv4BreSDCDlRzS5oNKJtXktsfVAXpeqk8j1HXaK.png)

## Step 4: Check the NameID and attribute mapping

Most providers need no change here. Open **Advanced — NameID & attribute mapping** if yours does:

- **NameID format**: how the subject of the assertion is identified. `emailAddress` by default, which is what almost every provider sends.
  
- **Email attribute**: the name of the attribute that carries the address Rework should match a user on. `email` by default; some providers send `mail` or a full claim URI instead.
  

Rework matches an incoming assertion to a user by email address, so this pair is what decides whether a person is recognised.

![The Advanced NameID and attribute mapping section](https://storage.googleapis.com/reworkv3-public/success/260923/7BySLq0SnTjR4FW8Awi08oEmt3so0EAaIfDi3AkxKxBPs18Hve8gZEZvD86Qnsvl/img.bxudHivt0Ka76QYGHFPIu4eZHY6P6FWeEjzjW9kmjNQatqQZnf3q90tEX5ipQOTz.png)

## Step 5: Give your identity provider the Rework details

The **Service provider info — paste into your IdP** card at the bottom of the page holds what your provider needs. The values are worked out from your own Rework address, so copy them from the page rather than typing them:

| Field on the card | What your provider usually calls it |
| --- | --- |
| **ACS / Reply URL** | Assertion Consumer Service URL, Reply URL, or Single sign-on URL. Ends in `/auth/saml/callback`. |
| **SP Entity ID** | Service Provider Entity ID, Audience URI, or Audience Restriction. Ends in `/saml/sp`. |
| **SLO URL** | Single Logout URL. Ends in `/auth/saml/slo`. |

💡 Each row has a **Copy** button. If your provider prefers to import a file, use **Download SP metadata XML** underneath and upload that instead: it carries the same three values plus Rework's own signing certificate.

## Step 6: Save, test, then switch it on

- Click **Save configuration** at the top right. A **Saved.** note appears beside the button.
  
- Open the Rework login page in a private window and click **SAML SSO**. You should be taken to your provider and returned signed in.
  
- If someone has two-factor authentication turned on, they're asked for their code after the provider returns them. See [Set up two-factor authentication](https://support.rework.com/article/set-up-two-factor-authentication).
  
- Once the test works, come back, set **Status** to **Enabled** and save again.
  

![Status and the Save configuration button](https://storage.googleapis.com/reworkv3-public/success/260923/8eSs385YIewapB3grgATKSzWIISA0mMcIlnx4x0SnlSRPFseK4xpCBLOG0Uc1izv/img.wjgKNDAQmeAIC3kwDXp38PdGbNIAJ63m5MzUhJx5Y9l7gFS2Bs8kO6vhQTfUbJK6.png)

Leave **Enforcement** on **Allow password sign-in alongside SAML** for a while after switching on. Move to **Require SAML — block password sign-in** only when every account that needs to sign in exists in your identity provider.

Every attempt, successful or not, is recorded with the method **SAML SSO** in [System login logs](https://support.rework.com/article/review-system-login-logs), which is the fastest way to see whether a failing sign-in reached Rework at all.
