Skip to content

Commit e6c6517

Browse files
committed
Allow additional claims to be added to a response.
1 parent 7bce76d commit e6c6517

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/idpyoidc/server/oidc/userinfo.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ def process_request(self, request=None, **kwargs):
163163
if _grant.add_acr_value("userinfo"):
164164
info["acr"] = _grant.authentication_event["authn_info"]
165165

166+
extra_claims = kwargs.get("extra_claims")
167+
if extra_claims:
168+
info.update(extra_claims)
169+
166170
if "userinfo" in _cntxt.cdb[request["client_id"]]:
167171
self.config["policy"] = _cntxt.cdb[request["client_id"]]["userinfo"]["policy"]
168172

0 commit comments

Comments
 (0)