# Feature SI-165 - Health check: Indicate missing token exchange capability

Project: Stream Integration Basics
Status: closed
URL: https://community.openproject.org/work_packages/SI-165

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 16.3.0 |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Use cases

_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), Modules and project features / File storages |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan | Enterprise / Corporate (COR) |

## Details

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

## People

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

## Estimates and progress

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

## Description

**As** an admin  
**I want to** have a specific health check for token exchange capability,  
**so that** I get a clear error message for a case that most likely results from having the OIDC provider configured for a long time.

**Background information**

A common case is that users have an OIDC provider configured that was configured before we started tracking supported grant types (used to determine whether the provider can do token exchange).

For such a provider we would never try to perform a token exchange, from the backend code. But due to the way that the code leads there, the error message indicates a problem with refreshing the token.

**Acceptance criteria**

*   No additional health check is introduced when token exchange is not configured for the storage (&quot;take first token received by IDP&quot;)
    
*   When token exchange is configured for the storage, check that the storage is capable of performing a token exchange
    
    *   add necessary error codes and documentation along with the new check
