diff options
author | Frederick Muriuki Muriithi | 2024-10-09 16:29:16 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-10-09 16:38:23 -0500 |
commit | e856c43aa538c03afddb1b9424a0bac7408639d5 (patch) | |
tree | 9fe4fb245d5c24aa1fb98efa79c77eaa227020a6 /gn_auth/auth/authentication/oauth2/grants | |
parent | bdf85093f8b64d4137eb075e5b6e28d16f9dd32f (diff) | |
download | gn-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.py | 3 |
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) } |