Closed stevenbal closed 1 year ago
Currently, claims can only be mapped with the userinfo, but it would be nice if there was an option to use the payload / id_token.
userinfo
payload
id_token
The get_userinfo function from mozilla-django-oidc can be overridden to make this possible: https://github.com/mozilla/mozilla-django-oidc/blob/main/mozilla_django_oidc/auth.py#L235.
get_userinfo
This could also be a difference between OIDC v1 and v2, so that should probably be looked into first
Currently, claims can only be mapped with the
userinfo
, but it would be nice if there was an option to use thepayload
/id_token
.The
get_userinfo
function from mozilla-django-oidc can be overridden to make this possible: https://github.com/mozilla/mozilla-django-oidc/blob/main/mozilla_django_oidc/auth.py#L235.This could also be a difference between OIDC v1 and v2, so that should probably be looked into first