# Feature OP-9625 - OAuth settings of Nextcloud in OpenProject

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-9625

## Planning

| Attribute | Value |
| --- | --- |
| Date | 2022-05-04 – 2022-05-25 |
| Priority | Medium |
| Target versions | 12.2.0 |
| Sprint | 12.2.0 |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

| ID | Subject | Type | Status | Assignee | Target versions | Spent time |
| --- | --- | --- | --- | --- | --- | --- |
| OP-10468 | OAuth2 authorization workflow for OAauthClient for Nextcloud  | Implementation | rejected | Wieland Lindenthal | 12.2.0 |  |
| OP-10482 | Save OAuthClient credentials in a separate model | Implementation | closed |  | 12.2.0 |  |
| OP-10483 | Adding an OAuthClients::ConnectionManager to save, refresh and use OAuthClientTokens | Implementation | closed |  | 12.2.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 | Wieland Lindenthal |
| Product manager |  |
| Feature Lead |  |
| Developers |  |
| Designer | Marc Alcobé |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

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

## Description

**As** a OpenProject admin and Nextcloud admin  
**I want to** 

*   save the OAuth2 **Client ID** and **Client secret** in OP.

**so that** 

*   the OpenProject backend can query Nextcloud on behalf of individual OpenProject users that also have an account on the NC instance.
*   OpenProject can offer a user interface for 
    *   selecting files and folders to create links to them (WP to File) 
    *   upload files and thus implicitly create a link to that file from the WP
    *   create folders to link to them or to then upload a file into them in the same step.

**Acceptance criteria**

*   User can enter **Client ID** and **Client secret** in a settings screen.
*   That settings screen is available in the Administration area
*   Saving access tokens and renewing them continuously is managed transparently for the user
