summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsubh <subh@example.com>2026-02-13 12:57:07 +0530
committersubh <subh@example.com>2026-02-13 12:57:07 +0530
commit5d059a6aa686c7dd224647b31d138e113a0c8527 (patch)
tree147889b337aa7659d008496486ed9fa5723e67bd
parent39a487c36f255e21f03d18d2d7be7d4670065085 (diff)
added the 'sub' field to the claim setmain
-rw-r--r--signedjwt-privesc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/signedjwt-privesc.py b/signedjwt-privesc.py
index 71eea49..7674211 100644
--- a/signedjwt-privesc.py
+++ b/signedjwt-privesc.py
@@ -19,6 +19,7 @@ def getJwt(service_account_email, token):
now = int(datetime.now().timestamp())
payload = {
"iss":service_account_email,
+ "sub":service_account_email,
"scope":"https://www.googleapis.com/auth/cloud-platform",
"aud":"https://oauth2.googleapis.com/token",
"iat": now,