aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/authentication/oauth2/grants
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-10-09 16:29:16 -0500
committerFrederick Muriuki Muriithi2024-10-09 16:38:23 -0500
commite856c43aa538c03afddb1b9424a0bac7408639d5 (patch)
tree9fe4fb245d5c24aa1fb98efa79c77eaa227020a6 /gn_auth/auth/authentication/oauth2/grants
parentbdf85093f8b64d4137eb075e5b6e28d16f9dd32f (diff)
downloadgn-auth-e856c43aa538c03afddb1b9424a0bac7408639d5.tar.gz
Add a client to the JWTBearerToken objects.
Diffstat (limited to 'gn_auth/auth/authentication/oauth2/grants')
-rw-r--r--gn_auth/auth/authentication/oauth2/grants/jwt_bearer_grant.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gn_auth/auth/authentication/oauth2/grants/jwt_bearer_grant.py b/gn_auth/auth/authentication/oauth2/grants/jwt_bearer_grant.py
index 1f53186..975cd68 100644
--- a/gn_auth/auth/authentication/oauth2/grants/jwt_bearer_grant.py
+++ b/gn_auth/auth/authentication/oauth2/grants/jwt_bearer_grant.py
@@ -31,7 +31,8 @@ class JWTBearerTokenGenerator(_JWTBearerTokenGenerator):
for key, value in tokendata.items()
},
"sub": str(tokendata["sub"]),
- "jti": str(uuid.uuid4())
+ "jti": str(uuid.uuid4()),
+ "oauth2_client_id": str(client.client_id)
}