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

Commit 77251f1

Browse files
committed
Fix token exchange claims on introspection endpoint
1 parent da554e0 commit 77251f1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/oidcop/oauth2/introspection.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ def process_request(self, request=None, release: Optional[list] = None, **kwargs
115115
_resp.update(_info)
116116
_resp.weed()
117117

118-
_claims_restriction = grant.claims.get("introspection")
118+
_claims_restriction = _context.claims_interface.get_claims(
119+
_session_info["session_id"], scopes=_token.scope, claims_release_point="introspection"
120+
)
121+
119122
if _claims_restriction:
120123
user_info = _context.claims_interface.get_user_claims(
121124
_session_info["user_id"], _claims_restriction

0 commit comments

Comments
 (0)