added 'user' into default_idtoken_processing_hook
This commit is contained in:
parent
3e772b3161
commit
509100f8ad
1 changed files with 2 additions and 1 deletions
|
@ -108,9 +108,10 @@ def fake_sub_generator(user):
|
|||
return user.email
|
||||
|
||||
|
||||
def fake_idtoken_processing_hook(id_token):
|
||||
def fake_idtoken_processing_hook(id_token, user):
|
||||
"""
|
||||
Fake function for inserting some keys into token. Testing OIDC_IDTOKEN_PROCESSING_HOOK.
|
||||
"""
|
||||
id_token['test_idtoken_processing_hook'] = FAKE_RANDOM_STRING
|
||||
id_token['test_idtoken_processing_hook_user_email'] = user.email
|
||||
return id_token
|
||||
|
|
Loading…
Reference in a new issue