# Code maintenance NEX-688 - Make OAuth2 Client usage compatible with NC versions older than NC35

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

## OPEN POINTS

_No work packages_

## Subtasks

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Sajan Gurung |
| Designer |  |
| Developers |  |
| Requires doc change | No |
| Date |  |
| Priority | Medium |
| Target versions |  Nextcloud Integration 3.3.0 |
| Module |  |
| Accessibility | No |
| List |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| Work |  |
| Remaining work |  |

## Description

OAuth2 Client has changed to new attribute-based entity in NC35. See [nextcloud/server\#63288](https://github.com/nextcloud/server/pull/63288)

This doesn't work with older NC versions. We need to support both the usage of both NC35 and older NC versions.

<br>

**❗** **TO BE RELEASED WITH NC35 SUPPORT**

  - The compatible code changes should be released with NC35 support

<br>

### Testing Steps

A. Nextcloud 34

1.  Run NC34

2.  Setup integration with oauth2 method

3.  Check Nextcloud oauth client is generated

4.  Reset NC oauth client

5.  Check only one oauth client is in the server (under Admin -\> Security)

B. Nextcloud 35

1.  Run NC35

2.  Setup integration with oauth2 method

3.  Check Nextcloud oauth client is generated

4.  Reset NC oauth client

5.  Check only one oauth client is in the server (under Admin -\> Security)
