> For the complete documentation index, see [llms.txt](https://intuitem.gitbook.io/ciso-assistant/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://intuitem.gitbook.io/ciso-assistant/configuration/sso/oidc.md).

# OpenID Connect (OIDC)

### Configure CISO Assistant with OpenID Connect (OIDC)

Once you've retrieved the **Client ID**, the **Client Secret** and the **Issuer URL** (sometimes called the discovery or `.well-known` URL) from your provider, the configuration on CISO Assistant is pretty simple.<br>

1. Log in into CISO Assistant as an **administrator > Extra > Settings**

   <figure><img src="https://629777851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCqFeU3oPCgDWkkR386NK%2Fuploads%2Fgit-blob-b4097d5f09ba374dae055f39f929e89adf3a6e8e%2Fimage%20(9).png?alt=media" alt=""><figcaption></figcaption></figure>
2. Navigate to **SSO** settings

   <figure><img src="https://629777851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCqFeU3oPCgDWkkR386NK%2Fuploads%2Fgit-blob-dbc29aad7328c2d702ce4dee051206cbcab5b0a1%2Fimage%20(2)%20(1)%20(1)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>
3. **Enable SSO**

   <figure><img src="https://629777851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCqFeU3oPCgDWkkR386NK%2Fuploads%2Fgit-blob-08d7ed2d63e2d70237c79219acca740acb84995f%2Fimage%20(3)%20(1)%20(1)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>
4. Select the **OpenID Connect** provider

   <figure><img src="https://629777851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCqFeU3oPCgDWkkR386NK%2Fuploads%2Fgit-blob-3dfd0378612939ebc96382779e9674d67d3c4adb%2Fimage%20(4)%20(1)%20(1)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>
5. Enter the **Client ID**

   <figure><img src="https://629777851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCqFeU3oPCgDWkkR386NK%2Fuploads%2Fgit-blob-a3f4fe09905892ce5c566f9ae612e07085fdc7f8%2Fimage%20(5)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>
6. Enter the **Client secret**

   <figure><img src="https://629777851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCqFeU3oPCgDWkkR386NK%2Fuploads%2Fgit-blob-51c94b58cef6b9fa66a17bddd23d646ede32f34d%2Fimage%20(6)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>
7. Enter the **Server URL**
8. If your identity provider requires other OAuth scopes, open **Advanced settings** and enter them as a comma-separated list in **Additional scopes**. They are appended to the default `openid`, `profile`, and `email` scopes.
9. And that's it! Don't forget to **click the 'Save' button**
10. You should now be able to see the **Login with SSO** button

<div align="left" data-full-width="false"><figure><img src="https://629777851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCqFeU3oPCgDWkkR386NK%2Fuploads%2Fgit-blob-483c2bd1d96c127f5174569314c2babe1e8ea541%2Fimage%20(8).png?alt=media" alt="" width="375"><figcaption></figcaption></figure></div>

{% hint style="warning" %} <mark style="color:orange;">Be aware that the user needs to be created on CISO Assistant to be authenticated with SSO.</mark>
{% endhint %}

{% hint style="info" %}
CISO Assistant automatically sends a standards-compliant `state` and `nonce` on every OIDC authorization request (43 characters matching `^[A-Za-z0-9-._~]{43,128}$`), and validates the `nonce` claim returned in the `id_token`. No configuration is required. This is helpful for identity providers that enforce format or length constraints on these parameters. Per OIDC Core 3.1.3.7, the `nonce` sent in the authorization request must be present and match in the `id_token` — a missing or mismatched nonce will reject the login.
{% endhint %}

### Single Logout

Turn on **Enable service provider-initiated single logout** in the SSO settings to close the OIDC session at the identity provider when users log out of CISO Assistant (see [Single Logout](/ciso-assistant/configuration/sso.md#single-logout) for the general behavior). It additionally requires:

* an `end_session_endpoint` in the provider's OpenID configuration, and
* `<frontend_url>/login` registered as an allowed post-logout redirect URI on the OIDC client.

CISO Assistant calls the end-session endpoint with `client_id`, `id_token_hint`, and that post-logout redirect URI.

{% hint style="info" %}
With Microsoft Entra ID, OIDC logout still prompts the user to select an account, because Entra ignores the standard `id_token_hint`. The logout itself works, but the prompt cannot be suppressed without Entra-specific configuration. For a prompt-free single logout with Entra ID, use SAML instead.
{% endhint %}


---

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://intuitem.gitbook.io/ciso-assistant/configuration/sso/oidc.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
