Content
nextcloud integeration app problem The OAuth2 Authorization Server doesn't recognize OpenProject
Added by hecan ye over 1 year ago
Hi there
i`m trying to setup the nextcloud integeration , There are no problems with the setup process,and successfully added the file storages to a project.
but in the OpenProject and Nextcloud accounts connecting process , i always got a error message on the borwser page.
OAuth2 returned an error:OAuth2 provider reported: The OAuth2 Authorization Server doesn't recognize OpenProject (invalid_client).
No error message were found in the openproject logs ,
but in the nextcloud logs , founded a http 400 error
POST /index.php/apps/oauth2/api/v1/token HTTP/1.1" 400 3246 "-" "Rack::OAuth2 (1.21.3) (2.8.3, ruby 3.2.2 (2023-03-30))
openproject and nextcloud are both deploy with docker compose ,
openproject deployed without SSL , using a nginx reverse proxy to provide https ,
nextcloud using a self signed TLS/SSL certificate.
openproject image version: openproject/community:12.5.8
nextcloud image version:latest,from nextcloud settings page , the accurate version is Nextcloud Hub 5(27.0.1)
nextcloud integeration app version 2.3.7
is there anyone runing into the same problem, please help me!
Replies (4)
Hi hecan ye,
We are currently experiencing the same issue in our development environments. The commonality seems(!) to be the nextcloud version. Apparently it happens in the newest version 27.0.1.
The error indicates that the access token request, that is issued by the OpenProject backend to the nextcloud backend AFTER the authorization grant was successfully done (login in nextcloud, clicking on "grant access"), has an expectation to the request body, which is not matched.
Right now, I try hard to narrow down the problem. I also am in contact with nextcloud devs, to investigate both sides of the infrastructure.
UPDATE: Sadly it is not tied to the version. Just made a quick check with a nextcloud 25.0.9, same issue.
Best,
Eric
Ahoi hecan ye,
we have found the culprit. There was a patch level release in Nextcloud version 25 to 27, which changed the encryption of the OAuth client secrets. (see https://github.com/nextcloud/server/pull/38398)..)
And the integration app for OpenProject did not yet adapt those changes.
So, the solution for you for now would be to downgrade the Nextcloud version to 27.0.0. Then OAuth process will work again.
Of course, we will prepare a patch for the integration app, so next version should solve this issue for newer versions of Nextcloud core.
Best,
Eric
Eric Schubert wrote:
updated to newly released nextcloud integeration app ,version 2.3.8, problem solved!
thanks
To better assist you, I would need more details about the error message you're encountering. Additionally, please check the configuration settings for both OpenProject and Nextcloud to ensure they align correctly.
If you're using AppLooter for managing these integrations, consult its documentation for troubleshooting tips. It might provide specific insights into resolving connectivity issues between OpenProject and Nextcloud.