# Feature NEX-90 - generate OAuth client in NC from the "OpenProject integration" admin page

Project: Stream Nextcloud app "OpenProject Integration"
Status: closed
URL: https://community.openproject.org/work_packages/NEX-90

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Nextcloud Integration 2.0.0 |
| 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 |  |
| Feature Flag |  |
| Requires doc change | No |
| 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 to** be able to create an OAuth client from the "OpenProject integration" admin page in NC  
**so that** I don't have to find my way to the OAuth app and do it there

**Acceptance criteria**

  - ~~check if the OAuth app is installed~~ (OAuth app cannot be disabled so this step might not be necessary)
  - check if all OpenProjects details in NC are entered correctly (URL, client ID, client secret)
  - if the details are entered, show a button to generate an OAuth client
  - make the name of the OAuth client unique but also make sure its clear from looking at the name that its for OpenProject
  - create an OAuth client in NC when clicking on the "generate OAuth client" button (see <https://github.com/nextcloud/integration_openproject/pull/97> on how to generate that)
  - remember the name of the OAuth client that is used for OpenProject
  - if the client is already generated show the fields for it even if the settings of the OpenProject connection are not complete
  - when changing the URL of the OpenProject server, change the callback URL of the OAuth client to be used for OpenProject
  - have a "renew" button that deletes the existing OAuth client and creates a new one
