Skip to content

Access token not decoded within token object #66

@mgrebla

Description

@mgrebla

In module src/django_keycloak/services/oidc_profile.py, the object sitting around line 217. is missing access_tokenattribute:

token_object = client.openid_api_client.decode_token( token=token_response[token_response_key], key=client.realm.certs, algorithms=client.openid_api_client.well_known[ 'id_token_signing_alg_values_supported'], issuer=issuer )

Modyfing given code by including it solves this issue:

token_object = client.openid_api_client.decode_token( token=token_response[token_response_key], access_token=token_response['access_token'], key=client.realm.certs, algorithms=client.openid_api_client.well_known[ 'id_token_signing_alg_values_supported'], issuer=issuer )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions