# Feature NEX-154 - Disconnect a user on both sides on every disconnect request

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

## Planning

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

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

| ID | Subject | Type | Status | Assignee | Target versions | Spent time |
| --- | --- | --- | --- | --- | --- | --- |
| NEX-176 | Delete client tokens that were provided for the other side | Feature | closed |  | Nextcloud Integration 2.4.0 |  |
| NEX-178 | Revoke client tokens received from OpenProject | Feature | closed |  | Nextcloud Integration 2.2.0 |  |

## 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 |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| Work |  |
| Labor costs |  |

## Description

**As** a user  
**I want to** have a simple way to cut the connection between OP & NC  
**so that** I don't forget to do only one part of the process

**Acceptance criteria**

  - Removing the connection on one side (here in this WP we focus on the Nextcloud side) also disconnects the other side.
      - Delete client tokens received from the other side
      - Revoke client tokens received from the other side
      - Delete client tokens that were provided for the other side <mention class="mention" data-id="44727" data-type="work_package" data-text="#44727">\#44727</mention>

**Notes:**

To revoke a OAuth client token that was provided by OpenProject there is a special endpoint to POST to. See documentation here <https://github.com/doorkeeper-gem/doorkeeper/wiki/API-endpoint-descriptions-and-examples#post---oauthrevoke>

There is currently no endpoint in Nextcloud to revoke tokens. So we would need to implement that functionality ourselves. However, I don't believe that this is a wise idea. In my opinion that is a missing feature in the Nextcloud core. <mention class="mention" data-id="74290" data-type="user" data-text="@julien.veyssier @nextcloud.com">@julien.veyssier @nextcloud.com</mention> could you please provide a feature request against Nextcloud core and link that request here? We can always consider implementing that as a Nextcloud core feature.
