> ## Documentation Index
> Fetch the complete documentation index at: https://developers.scoutworks.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Any SAML identity provider

> Sign volunteers in through Okta, JumpCloud, OneLogin, Keycloak or any other SAML 2.0 identity provider.

Any identity provider that speaks SAML 2.0 can sign your volunteers in to Scoutworks. In **Settings → Sign-in and directory**, choose **Other SAML provider** (behind the link under the provider choice), verify your domain, and follow the steps below.

If your provider can also push users over SCIM 2.0, give it the tenant URL and token the wizard shows, and read the [SCIM reference](https://developers.scoutworks.app/scim-sso/scim-reference.md). Without SCIM, you can let Scoutworks create volunteers the first time they sign in: see [Just-in-time access](#just-in-time-access).

## Give your identity provider Scoutworks' details

Every connection has its own service provider metadata, which most providers can read directly:

```text theme={null}
https://api.scoutworks.app/api/auth/saml/{connectionId}/metadata
```

Or type the values in:

| Setting | Value |
| - | - |
| SP entity ID (audience) | `https://api.scoutworks.app/api/auth/saml/{connectionId}/metadata` |
| Assertion Consumer Service (ACS) URL, HTTP-POST | `https://api.scoutworks.app/api/auth/saml/{connectionId}/acs` |
| Sign-in (start) URL | `https://api.scoutworks.app/api/auth/sso/tenant/{connectionId}/start` |
| Name ID format | Persistent, or email address |
| Sign assertions | **Required** |
| Sign the response | Optional. If the response carries a signature, Scoutworks checks it too |
| Encrypt assertions | Optional, when Scoutworks' metadata lists an encryption certificate |

## Give Scoutworks your identity provider's details

Choose one:

* **A metadata URL** (best). Scoutworks reads it again every day, so a new signing certificate is picked up without a sign-in outage.
* **A metadata file** you upload.
* **The values typed in:** the IdP entity ID, the single sign-on URL (HTTPS) and the signing certificate in PEM form.

Up to two signing certificates can be live at once, so your provider can roll one over. The connection's health card shows when each one expires: add the new one before the old one ends.

## Attributes to send

| Scoutworks value | Default attribute name | Notes |
| - | - | - |
| Email | `email` | Required. Must be on one of your verified domains to link an existing account |
| First name | `firstName` | |
| Last name | `lastName` | |
| Groups | `groups` | Optional |
| Person ID | the NameID | Use a persistent NameID, or set a `subject` attribute that never changes for a person |

You can rename any of these on the connection if your provider uses other names. The defaults for Entra and Google are in [Limits](https://developers.scoutworks.app/scim-sso/limits.md#saml-defaults).

## What Scoutworks checks

* The assertion is signed by one of the connection's certificates. An unsigned assertion, or one with a wrapped or moved signature, is refused.
* The assertion is no more than 5 minutes old, and its audience is this connection.
* Each assertion is used once. A replayed one is refused.
* A sign-in your provider starts (from its app portal) has no `InResponseTo`. One that names a request must name Scoutworks' own.

A SAML sign-in satisfies your Scoutworks MFA policy only when its `AuthnContextClassRef` says a second factor was used (the accepted values are in [Limits](https://developers.scoutworks.app/scim-sso/limits.md#saml-defaults)). Otherwise Scoutworks asks for its own second factor.

## Just-in-time access

Without SCIM, you can turn on **just-in-time access** on the connection. A person who signs in with an address on your verified domain, and has no Scoutworks account, gets one, with the connection's default access. Set the default access before you turn this on: without one, they are told "Your organisation hasn't given you access to Scoutworks yet — please ask your group administrator".

Just-in-time access only adds people. It never suspends or removes anyone, so with this alone you must remove leavers in Scoutworks yourself.

## Test it

With the connection in **testing**, press **Test sign-in** in the wizard. It opens a popup and signs you in through your provider, without starting a Scoutworks session, and the wizard shows whether it passed.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.