Content
View differences
Updated by Wieland Lindenthal over 2 years ago
**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](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.
**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](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.