From 3d17752be00adec21a17c032dbf1c827a938605f Mon Sep 17 00:00:00 2001 From: Kushal Das Date: Mon, 31 Jan 2022 15:27:12 +0100 Subject: [PATCH] Fixes the sub value to real value As a typo it was getting assigned to client_id. Now, it is assigned to the real calculated value. --- src/oidcop/session/grant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oidcop/session/grant.py b/src/oidcop/session/grant.py index 16b4eb0a..a7c6f8d0 100644 --- a/src/oidcop/session/grant.py +++ b/src/oidcop/session/grant.py @@ -227,7 +227,7 @@ def payload_arguments( if self.authorization_request: client_id = self.authorization_request.get("client_id") if client_id: - payload.update({"client_id": client_id, "sub": client_id}) + payload.update({"client_id": client_id, "sub": self.sub}) _claims_restriction = endpoint_context.claims_interface.get_claims( session_id,