Skip to content

Commit

Permalink
orcid: change legacy URL
Browse files Browse the repository at this point in the history
ORCID has changed their base URL for oauth. The old URL is a redirect which
is not supported by invenio.

Co-Authored-by: Johnny Mariéthoz <[email protected]>
  • Loading branch information
jma committed Sep 18, 2023
1 parent ffb091c commit 703cc0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fi
# | cryptography | 39.0.2 | <41.0.2 | 59473 |
# | certifi | 2022.12.7 | >=2015.04.28,<2023.07.22 | 59956 |
# +==============================================================================+
safety check -i 45183 -i 44501 -i 51668 -i 42194 -i 42852 -i 53325 -i 53326 -i 54456 -i 42498 -i 43738 -i 47833 -i 51457 -i 51358 -i 53812 -i 52495 -i 50792 -i 55261 -i 59062 -i 59473 -i 59956
safety check -i 45183 -i 44501 -i 51668 -i 42194 -i 42852 -i 53325 -i 53326 -i 54456 -i 42498 -i 43738 -i 47833 -i 51457 -i 51358 -i 53812 -i 52495 -i 50792 -i 55261 -i 59062 -i 59473 -i 59956 -i 60224 -i 60225 -i 60223
pydocstyle sonar tests docs
isort --check-only --diff "${SCRIPT_PATH}/.."
autoflake -c -r --remove-all-unused-imports --ignore-init-module-imports . &> /dev/null || {
Expand Down
4 changes: 2 additions & 2 deletions sonar/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,8 +779,8 @@ def _(x):
'sonar.modules.oauth.orcid:account_setup'
OAUTHCLIENT_REMOTE_APPS['orcid']['params'].update(
dict(
base_url='https://pub.{domain}/'.format(domain=ORCID_DOMAIN),
access_token_url='https://pub.{domain}/oauth/token'.format(
base_url='https://{domain}/'.format(domain=ORCID_DOMAIN),
access_token_url='https://{domain}/oauth/token'.format(
domain=ORCID_DOMAIN),
authorize_url='https://{domain}/oauth/authorize#show_login'.format(
domain=ORCID_DOMAIN),
Expand Down

0 comments on commit 703cc0f

Please sign in to comment.