Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 88111ca

Browse files
committed
A 'verified' attribute for id_token_hint like the verified_id_token
1 parent 4e6ee68 commit 88111ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/oidcmsg/oidc/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def verify(self, **kwargs):
410410
if "id_token_hint" in self:
411411
if isinstance(self["id_token_hint"], six.string_types):
412412
idt = IdToken().from_jwt(str(self["id_token_hint"]), **args)
413-
self["id_token_hint"] = idt
413+
self["verified_id_token_hint"] = idt
414414

415415
if "response_type" not in self:
416416
raise MissingRequiredAttribute("response_type missing", self)
@@ -812,7 +812,7 @@ def verify(self, **kwargs):
812812
return False
813813

814814
# replace the JWT with the IdToken instance
815-
self["id_token_hint"] = idt
815+
self["verified_id_token_hint"] = idt
816816

817817
return True
818818

0 commit comments

Comments
 (0)