# Feature OP-11840 - OIDC backchannel logout: Support ending all user sessions

Project: OpenProject
Status: specified
URL: https://community.openproject.org/work_packages/OP-11840

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Product Backlog |
| Sprint |  |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module | Authentication / OpenID Connect (OIDC) |
| Feature Flag |  |
| Requires doc change | Yes |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**As** an administrator,  
**I want** OpenProject to support OIDC backchannel logout with no session indicated by the logout token,  
**so that** it's possible to implement a "logout all sessions" functionality from an identity provider.

### Acceptance criteria

This feature request is about correct API/specification behaviour, so indicating "user facing" behaviour is hard.

As of writing this ticket, the following observable behaviours should be true:

  - When Keycloak's client setting "Backchannel logout session required" is set to **"On"**, OpenProject only logs out **a single session** when a user logs out from Keycloak

  - When Keycloak's client setting "Backchannel logout session required" is set to **"Off"**, OpenProject logs out **all sessions of the user** when a user logs out from Keycloak

### 

### 

### 

### Technical notes

  - The changes should be compatible to <https://openid.net/specs/openid-connect-backchannel-1_0.html#LogoutToken>

  - Logging out a user via backchannel logout **without** a session identifier (`sid`) should logout **all** sessions of that user

  - Logging out a user via backchannel logout **with** a session identifier (`sid`) should logout **only** that session

### Related links

Keycloak is currently not capable of distinguishing between logging out a single session or many sessions. This is documented in <https://github.com/keycloak/keycloak/issues/27359>.
