1 Answer
- Newest
- Most votes
- Most comments
0
Hello.
Is it possible to actually inspect the header and payload of a JWT issued by Forgejo?
I believe it is necessary to verify that the alg in the header is RS256 and that the kid in the header matches the kid in the JWKS exactly.
You will also likely need to verify that the sub claim in the payload matches the IAM trust policy condition exactly.
curl -s \
https://git.sakthisanthosh.in/api/actions/.well-known/keys \
| jq
{
"keys": [
{
"alg": "RS256",
"e": "AQAB",
"kid": "zufh62wMCHeIo9GDCQbR2lQp_w1_ywvzUyfKn09Wa_A",
"kty": "RSA",
"n": "8Hrg1JDv6D633cBsILqDPnENUAU_IxvkOIMrV8eKrAPV-ek1C6mY0AdVLYw1JYTFJ9O6KmWsTnT2BjUcygfa8_6CDUJ3A16o8QAAcOoPIDcmEyukOxHyMrDCNchXzucWfJbwq0s79fgyWVZYDIkN4GBR5DWjRqa_UucvM4xu1iqGK5e92eZRHIHAFO-c67HU3UAQOArg6SEVLJVNkA3drT7pXfmO4xiG1BcrQtfpRBNSfCfrwPV7k7zgv3BZL3Y8bP7zemNrz3wmhDB66KOc_rFQZ2VPul3RG3x9IxgioMeEacnxH4khwRS12nXACzWvqqrcdT5L45wDcb5Ad9N1HQ",
"use": "sig"
}
]
}
Relevant content
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
