From d69828b8db29c7d6aeb32045c3b2f5ecf5c21f87 Mon Sep 17 00:00:00 2001 From: Wojciech Bartosiak Date: Wed, 17 Feb 2016 22:16:39 +0000 Subject: [PATCH] Extended description of OIDC_IDTOKEN_PROCESSING_HOOK --- docs/sections/settings.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/sections/settings.rst b/docs/sections/settings.rst index f8fcbc9..0474b9d 100644 --- a/docs/sections/settings.rst +++ b/docs/sections/settings.rst @@ -96,7 +96,15 @@ 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. +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. + +Default is:: + + def default_idtoken_processing_hook(id_token): + + return return id_token OIDC_IDTOKEN_SUB_GENERATOR ==========================