Skip to content

Commit

Permalink
Allow additional claims to be added to a response.
Browse files Browse the repository at this point in the history
  • Loading branch information
rohe committed Mar 20, 2024
1 parent 7bce76d commit e6c6517
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/idpyoidc/server/oidc/userinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ def process_request(self, request=None, **kwargs):
if _grant.add_acr_value("userinfo"):
info["acr"] = _grant.authentication_event["authn_info"]

extra_claims = kwargs.get("extra_claims")
if extra_claims:
info.update(extra_claims)

if "userinfo" in _cntxt.cdb[request["client_id"]]:
self.config["policy"] = _cntxt.cdb[request["client_id"]]["userinfo"]["policy"]

Expand Down

0 comments on commit e6c6517

Please sign in to comment.