From 2eb7c14d5106d2063475cb8ac69d183df321c593 Mon Sep 17 00:00:00 2001 From: fzzylogic Date: Wed, 27 Dec 2023 12:43:40 +0900 Subject: [PATCH] Update scopesclaims.rst --- docs/sections/scopesclaims.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/sections/scopesclaims.rst b/docs/sections/scopesclaims.rst index 977027f0..77086df1 100644 --- a/docs/sections/scopesclaims.rst +++ b/docs/sections/scopesclaims.rst @@ -109,5 +109,10 @@ Inside your oidc_provider_settings.py file add the following class:: _(u'Another description.'), ) + # To ensure that the profile scope, potentially adjusted by custom function specified + # by OIDC_USERINFO setting, is indeed returned. It is not returned implicitly. + def scope_profile(self): + return self.userinfo + .. note:: If a field is empty or ``None`` inside the dictionary you return on the ``scope_scopename`` method, it will be cleaned from the response.