From 703cc0fca1dd4baeff524d9dbce76be295320276 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johnny=20Marie=CC=81thoz?= Date: Mon, 18 Sep 2023 14:35:10 +0200 Subject: [PATCH] orcid: change legacy URL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ORCID has changed their base URL for oauth. The old URL is a redirect which is not supported by invenio. Co-Authored-by: Johnny MarieĢthoz --- scripts/test | 2 +- sonar/config.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/test b/scripts/test index db4577a9..6eaf885f 100755 --- a/scripts/test +++ b/scripts/test @@ -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 || { diff --git a/sonar/config.py b/sonar/config.py index e86af96d..8af0cdc9 100644 --- a/sonar/config.py +++ b/sonar/config.py @@ -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),