From eb7686abba641d024a9c26b90e42d4f441a87c15 Mon Sep 17 00:00:00 2001 From: Wojciech Bartosiak Date: Wed, 17 Feb 2016 22:23:10 +0000 Subject: [PATCH] added 'user' into default_idtoken_processing_hook --- oidc_provider/lib/utils/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oidc_provider/lib/utils/common.py b/oidc_provider/lib/utils/common.py index c97c7e8..85983e7 100644 --- a/oidc_provider/lib/utils/common.py +++ b/oidc_provider/lib/utils/common.py @@ -49,12 +49,13 @@ def default_after_userlogin_hook(request, user, client): """ 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. :param id_token: dictionary contains values that going to be serialized into `id_token` :type id_token: dict + :param user: user instance :return: custom modified dictionary of values for `id_token` :rtype dict """