cznethub / dsp

CZNet Hub Data Submission Portal
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Zenodo authorization fails #127

Open Maurier opened 3 weeks ago

Maurier commented 3 weeks ago

Description of the bug Authorizing Zonodo often fails with the error invalid_grant. It can be reproduced somewhat consistently, but it also succeeds at times, making the authorization process unreliable.

Steps to reproduce the bug:

  1. Go to Account & Settings page.
  2. Go to the Authorized Repositories tab.
  3. Try to authorize and deauthorize Zenodo multiple times.
  4. Authorization will often fail with the error invalid_grant.

Expected behavior Authorization and deauthorization work as expected.

Additional information Zenodo OAuth 2.0 endpoints: image From https://zenodo.org/account/settings/applications/, click on item under Developer applications.

DSP configuration: https://github.com/cznethub/dspback/blob/develop/dspback/routers/repository_authorization.py#L37 https://github.com/cznethub/dspback/blob/develop/dspback/config/__init__.py#L115

Approach:

pkdash commented 3 weeks ago

@Maurier I have created this ticket in Zenodo.