Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Plugins
  1. OpenProject
  2. Forums
  3. Plugins
  4. nextcloud integeration app problem The OAuth2 Authorization Server doesn't recognize OpenProject

nextcloud integeration app problem The OAuth2 Authorization Server doesn't recognize OpenProject

Added by hecan ye almost 2 years 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)

RE: nextcloud integeration app problem The OAuth2 Authorization Server doesn't recognize OpenProject - Added by Eric Schubert almost 2 years ago

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

RE: nextcloud integeration app problem The OAuth2 Authorization Server doesn't recognize OpenProject - Added by Eric Schubert almost 2 years ago

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

RE: nextcloud integeration app problem The OAuth2 Authorization Server doesn't recognize OpenProject - Added by hecan ye almost 2 years ago

Eric Schubert wrote:

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

updated to newly released nextcloud integeration app ,version 2.3.8, problem solved!

thanks

RE: RE: nextcloud integeration app problem The OAuth2 Authorization Server doesn't recognize OpenProject - Added by Rizwan Khan over 1 year ago

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.

  • (1 - 4/4)
Loading...