From ed65f4fdb9226141f451f63a1392fb28e1d4c208 Mon Sep 17 00:00:00 2001 From: matkaczmarek Date: Fri, 4 Oct 2024 11:37:53 +0200 Subject: [PATCH] Rebase and resolve conflicts in poetry.lock --- physionet-django/user/validators.py | 4 +++- poetry.lock | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/physionet-django/user/validators.py b/physionet-django/user/validators.py index 2c306243b..edc19c2a4 100644 --- a/physionet-django/user/validators.py +++ b/physionet-django/user/validators.py @@ -211,6 +211,7 @@ def validate_nan(value): if re.fullmatch(r'[0-9\-+()]*', value): raise ValidationError('Cannot be a number.') + def validate_orcid_token(value): """ Validation to verify the token returned during @@ -219,6 +220,7 @@ def validate_orcid_token(value): if not re.fullmatch(r'^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$', value): raise ValidationError('ORCID token is not in expected format.') + def validate_orcid_id_token(token): """ When openid scope is enabled then ORCID returns @@ -246,7 +248,7 @@ def validate_orcid_id_token(token): audience=settings.ORCID_CLIENT_ID, issuer=settings.ORCID_DOMAIN ) - except jwt.InvalidTokenError as e: + except jwt.InvalidTokenError: raise ValidationError('ORCID id_token is invalid.') def validate_orcid_id(value): diff --git a/poetry.lock b/poetry.lock index 8958817f8..209bf9898 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1817,4 +1817,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = "^3.9" -content-hash = "19fb58009a4ecb2e178d0dc1459694f10a16f09758853eac0dcd765a1b271967" +content-hash = "23b54601a6a94c6824e7b7ada009153cc9d191a03dc3025ce1e4108caec12210"