added 'user' into default_idtoken_processing_hook
This commit is contained in:
parent
a28db60d9e
commit
3e772b3161
1 changed files with 3 additions and 2 deletions
|
@ -98,11 +98,12 @@ OIDC_IDTOKEN_PROCESSING_HOOK
|
|||
OPTIONAL. ``str``. A string with the location of your function hook.
|
||||
Here you can add extra dictionary values specific for your app into id_token.
|
||||
|
||||
The function receives a ``id_token`` dictionary and returns it with additional fields.
|
||||
The function receives a ``id_token`` dictionary and ``user`` instance
|
||||
and returns it with additional fields.
|
||||
|
||||
Default is::
|
||||
|
||||
def default_idtoken_processing_hook(id_token):
|
||||
def default_idtoken_processing_hook(id_token, user):
|
||||
|
||||
return return id_token
|
||||
|
||||
|
|
Loading…
Reference in a new issue