added 'user' into default_idtoken_processing_hook

This commit is contained in:
Wojciech Bartosiak 2016-02-17 22:23:10 +00:00
parent d69828b8db
commit eb7686abba

View file

@ -49,12 +49,13 @@ def default_after_userlogin_hook(request, user, client):
""" """
return None return None
def default_idtoken_processing_hook(id_token): def default_idtoken_processing_hook(id_token, user):
""" """
Hook to perform some additional actions ti `id_token` dictionary just before serialization. Hook to perform some additional actions ti `id_token` dictionary just before serialization.
:param id_token: dictionary contains values that going to be serialized into `id_token` :param id_token: dictionary contains values that going to be serialized into `id_token`
:type id_token: dict :type id_token: dict
:param user: user instance
:return: custom modified dictionary of values for `id_token` :return: custom modified dictionary of values for `id_token`
:rtype dict :rtype dict
""" """