Skip to content

Commit 43adb17

Browse files
authored
fix: integration setup status is false even though the oauth setup is complete
Signed-off-by: Ashim Shrestha <ashimshrestha2384@gmail.com>
1 parent 62fd7bd commit 43adb17

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
3131
- Fix: Do not create OAuth client while setting up with OIDC auth method [#1073](https://github.com/nextcloud/integration_openproject/pull/1073)
3232
- Fix: Do not create OAuth client while updating OIDC setup [#1077](https://github.com/nextcloud/integration_openproject/pull/1077)
3333
- Fix: Handle invalid boolean auth-method value [#1079](https://github.com/nextcloud/integration_openproject/pull/1079)
34+
- Fix: False integration setup status even after complete oauth setup [#1088](https://github.com/nextcloud/integration_openproject/pull/1088)
3435

3536
## 3.1.0 - 2026-06-18
3637

lib/Controller/ConfigController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,7 @@ public function setUpIntegration(?array $values): DataResponse {
656656

657657
if ($values['authorization_method'] === Application::AUTH_METHOD_OAUTH) {
658658
$response = \array_merge($response, $this->recreateOauthClientInformation());
659+
$response['status'] = OpenProjectAPIService::isAdminConfigOk($this->config);
659660
}
660661

661662
if ($setup['oPOAuthTokenRevokeStatus']) {
@@ -711,6 +712,7 @@ public function updateIntegration(?array $values): DataResponse {
711712
$response = \array_merge($response, $this->oauthService->getClientInfo($oauthDbId));
712713
} else {
713714
$response = \array_merge($response, $this->recreateOauthClientInformation());
715+
$response['status'] = OpenProjectAPIService::isAdminConfigOk($this->config);
714716
}
715717

716718
if ($setup['oPOAuthTokenRevokeStatus']) {

0 commit comments

Comments
 (0)