diff --git a/django_pyoidc/VERSION b/django_pyoidc/VERSION index 8cbf02c..43b2961 100644 --- a/django_pyoidc/VERSION +++ b/django_pyoidc/VERSION @@ -1 +1 @@ -0.0.12 +0.0.13 diff --git a/django_pyoidc/utils.py b/django_pyoidc/utils.py index f555d3c..c743db9 100644 --- a/django_pyoidc/utils.py +++ b/django_pyoidc/utils.py @@ -43,7 +43,7 @@ def extract_claim_from_tokens(claim: str, tokens: dict, raise_exception=True) -> value = tokens["info_token_claims"][claim] elif "id_token_claims" in tokens and claim in tokens["id_token_claims"]: value = tokens["id_token_claims"][claim] - elif "access_token_claims" and claim in tokens["access_token_claims"]: + elif "access_token_claims" in tokens and claim in tokens["access_token_claims"]: value = tokens["access_token_claims"][claim] else: if raise_exception: