# Feature SI-10 - File storages settings for type Nextcloud: Allow OIDC based connection instead of OAuth2

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

## Planning

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

## OPEN POINTS / FEEDBACK

| ID | Subject | Status | Decision |
| --- | --- | --- | --- |
| SI-40 | Should the authentication method be in the first section or have it's own section like in the Nextcloud side | decided | First section. The configuration options that follow change live (on selection) using Hotwire, so the form always stays relevant based on user choice.  If this is not possible: the form will show the configuration options for the default selection and will change on confirmation of the step. |
| SI-49 | Is it necessary to create a link between storage and OpenIDConnect provider? | decided | no. no necessity to do that was identified so far |

## Use cases

_No work packages_

## Features and Chunks

| ID | Subject | Type | Status | Assignee | Target versions | Spent time |
| --- | --- | --- | --- | --- | --- | --- |
| SI-45 | Add corresponding settings to data schema of storage | Implementation | closed |  |  |  |
| SI-46 | Allow configuration of new authentication method through UI | Implementation | closed |  |  |  |

## Bugs and other work packages

_No work packages_

## Technical Details

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

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups | https://www.figma.com/design/gtLQfPe09X7XugAH8L7dTy/File-Storages-Integration?node-id=8915-6187 |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Jan Sandbrink |
| Product manager |  |
| Feature Lead |  |
| Developers | OP Dev Titan Team |
| Designer | Parimal Satyal |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

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

## Description

**As** an administrator setting up the OpenProject-Nextcloud integration setting up the OpenProject side  
**I want to** have a second option to use OIDC based access tokens instead of OAuth2 access tokens when I also use and IDP like Keycloak for single sign on (SSO)  
**so that** not each user needs to got through the OAuth grant flow.

**Acceptance criteria**

  - In the files storages settings for Nextcloud, the first form is extended with a select box "Authentication method" with the options
    
      - "Two-way OAuth2 authorization code flow" (default)
    
      - "Common OpenID Connect Identity Provider"

  - If the admin chooses "OAuth2" then step 2 will be "OAuth applications" with the sub-steps "OpenProject OAuth" and "Nextcloud OAuth" as we currently have them

  - If the admin chooses "OIDC" then step 2 will be a new form "OpenID Connect"
    
      - The admin must enter the OIDC client ID of Nextcloud (text input)
    
      - The save button should be labeled as "Save & continue" (leading to the existing step 3 "Project folders")

**Figma**

 

**QA Notes**

The followup features <mention class="mention" data-id="61532" data-type="work_package" data-text="##61532">##61532</mention> and <mention class="mention" data-id="61623" data-type="work_package" data-text="##61623">##61623</mention> already change the UI implemented here. The former adds a third option for the authentication method, but should otherwise not harm testability. The latter changes the UI to configure the Client ID of Nextcloud and adds some additional radio buttons there.

**Out of scope**

<mention class="mention" data-id="61839" data-type="work_package" data-text="##61839">##61839</mention>
