auth_oidc: log id_token content for debug (#53591)
This commit is contained in:
parent
fb43ef51e1
commit
6a16ab98fe
|
@ -45,6 +45,9 @@ class OIDCBackend(ModelBackend):
|
|||
logger.warning('auth_oidc: invalid id_token %s: %s', original_id_token, e)
|
||||
return None
|
||||
|
||||
id_token_content = id_token.as_dict(provider)
|
||||
logger.debug('auth_oidc: id_token content %s', id_token_content)
|
||||
|
||||
try:
|
||||
provider = utils.get_provider_by_issuer(id_token.iss)
|
||||
except models.OIDCProvider.DoesNotExist:
|
||||
|
@ -214,7 +217,7 @@ class OIDCBackend(ModelBackend):
|
|||
user_ou = provider.ou
|
||||
save_user = False
|
||||
mappings = []
|
||||
context = id_token.as_dict(provider)
|
||||
context = id_token_content.copy()
|
||||
if need_user_info:
|
||||
context.update(user_info or {})
|
||||
|
||||
|
|
Loading…
Reference in New Issue