# Feature SI-47 - Support OIDC in storage health status

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

## Planning

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

## OPEN POINTS / FEEDBACK

_No work packages_

## Use cases

_No work packages_

## Features and Chunks

| ID | Subject | Type | Status | Assignee | Target versions | Spent time |
| --- | --- | --- | --- | --- | --- | --- |
| SI-64 | Add check for OIDC configuration | Implementation | closed |  | 15.4.0 |  |
| SI-65 | Check for OIDC audience configuration | Implementation | closed |  | 15.4.0 |  |
| SI-66 | Add check for OIDC IdP capabilities | Implementation | closed |  | 15.4.0 |  |
| SI-67 | Validate token exchange is working as needed | Implementation | closed |  | 15.4.0 |  |
| SI-69 | Add links to docs | Implementation | rejected |  | 15.4.0 |  |
| SI-72 | Check if user is Provisioned by an OIDC IdP | Implementation | closed |  | 15.4.0 |  |
| SI-75 | Check if the user has a usable token for the Storage | Implementation | closed |  | 15.4.0 |  |

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

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

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Marcello Rocha Pereira |
| Product manager |  |
| Feature Lead |  |
| Developers | OP Dev Titan Team |
| 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 the** health status feature to support storages configured for common OIDC tokens,  
**so that** I understand, whether the interaction between OpenProject, the IDP and Nextcloud will work.

**Acceptance criteria**

When an admin performs the connection validation / health status on a storage that's using a common OIDC provider:

  - If no OIDC provider is configured on OpenProject's side or the admin is not logged in through OIDC, it shows an error

  - If user is logged in through OIDC, check suitability of access token for currently logged in user (usually the admin)
    
      - If the token is deemed usable for use in Nextcloud:
        
          - Show success (roughly: "IDP token is usable to access storage")
    
      - If the token is not deemed usable for use in Nextcloud
        
          - ... and if IDP offers no token exchange:
            
              - show error (roughly: "IDP token does not seem suitable to access storage")
        
          - ... and if IDP offers token exchange capability: Try to exchange token
            
              - if exchange succeeds: show success (roughly: "IDP token could be exchanged for token to access storage")
            
              - if exchange fails: show error (roughly: "Attempted token exchange failed")

  - Show an *additional* warning if OIDC provider of current user is not set-up to request the offline\_access scope
