# SAML authentication

> In OpenCTI 6.2, SAML requires signed responses and assertions by default. Set two parameters to false if sign-in fails after the upgrade.

- URL: https://filigran.io/docs/lts/7.260309-lts/deploy/upgrade/breaking-changes/opencti/6-2-saml-authentication/
- Products: OpenCTI 7.260309.0-lts.8
- OpenCTI line: 7.260309 LTS · 7.260309.0-lts.8
- For: platform engineers, administrators
- Type: How-to guide

OpenCTI 6.2 upgraded the `passport-saml` library, which changed two SAML defaults: responses and assertions must now be signed. If SAML sign-in fails after you upgrade from an earlier version, this page says what to change in your identity provider, and which parameter to set when it cannot sign.

**Diagram: From OpenCTI 6.2, SAML expects signed responses and assertions by default, so the identity provider signs both, and a parameter is set to false only for what it cannot sign**

- OpenCTI before 6.2: Signatures not required (want_assertions_signed and want_authn_response_signed default to false)
- OpenCTI 6.2 and later: Signatures required (Both parameters default to true)
- If sign-in fails: Identity provider signs both (Responses and assertions), False for unsigned parts (Only the parameter of what the provider cannot sign; from 7.260224.0, a switch of the provider)

Connections:

- Signatures not required → Signatures required: upgrade
- Signatures required → Identity provider signs both: sign-in fails
- Signatures required → False for unsigned parts: if it cannot sign

| | Version |
| --- | --- |
| Changed in | OpenCTI 6.2 |

## What changed {#what-changed}

| SAML parameter | Default before 6.2 | Default from 6.2 |
| --- | --- | --- |
| `want_assertions_signed` | `false` | `true` |
| `want_authn_response_signed` | `false` | `true` |

The new defaults apply when your configuration does not set the parameter.

## What to do {#what-to-do}

If users cannot sign in with SAML after the upgrade, your identity provider does not sign its responses, its assertions, or both. Turn signing on for both in the identity provider, then try again: the signatures are what lets OpenCTI trust who signs in.

Set a parameter to `false` only for what your identity provider cannot sign, for example `want_authn_response_signed` when it signs only its assertions: OpenCTI then accepts that part unsigned.

From OpenCTI 7.260224.0, SAML is configured in the interface, where the two parameters are the switches **Want assertion signed** and **Want authn response signed** of the provider: see [SSO migration from environment variables to UI](https://filigran.io/docs/lts/7.260309-lts/deploy/upgrade/breaking-changes/opencti/7-260224-sso-migration/) and [Add a SAML provider](https://filigran.io/docs/lts/7.260309-lts/opencti/administer/authentications/#add-a-saml-provider).

> **Warning: Check the two switches after the SSO migration**
>
> After the SSO migration of OpenCTI 7.260224.0, open the provider in **Settings > Security > Authentications** and check **Want assertion signed** and **Want authn response signed**: turn them on if your identity provider signs its responses and assertions.

## What's next {#what-s-next}

- [Configure single sign-on](https://filigran.io/docs/lts/7.260309-lts/opencti/administer/sso/), the SAML parameters.
- [Breaking changes](https://filigran.io/docs/lts/7.260309-lts/deploy/upgrade/breaking-changes/), the other changes per version.
