# Bug NEX-643 - Integration setup status is false even though the oauth setup is complete

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | Nextcloud Integration 2.11.4 |
| Observed in versions |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

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

## Description

Do the complete integration setup with oauth method:

```bash
curl -XPOST 'https://nextcloud.local/index.php/apps/integration_openproject/setup' \
-H'Content-Type: application/json' \
-d'{
 "values":{
  "openproject_instance_url": "https://openproject.local",
  "openproject_client_id": "cliend_id",
  "openproject_client_secret": "client_secret",
  "setup_project_folder": false,
  "setup_app_password": false,
  "default_enable_navigation": false,
  "default_enable_unified_search": false
 }
}' \
-u admin:admin
```

The status indicates incomplete setup ❌ :

```yaml
200 OK

{
  "status": false,  ❌
  "nextcloud_oauth_client_name": ...,
  "openproject_redirect_uri": ...,
  "nextcloud_client_id": ...,
  "nextcloud_client_secret": ...,
}
```

<br>

Complete setup with oidc method works: ✅
