We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0927d2 commit ff33150Copy full SHA for ff33150
atr/jwtoken.py
@@ -105,6 +105,10 @@ def verify(token: str) -> dict[str, Any]:
105
106
107
async def verify_github_oidc(token: str) -> dict[str, Any]:
108
+ header = jwt.get_unverified_header(token)
109
+ dangerous_headers = {"jku", "x5u", "jwk"}
110
+ if dangerous_headers.intersection(header.keys()):
111
+ raise base.ASFQuartException("JWT contains disallowed headers", errorcode=401)
112
try:
113
async with util.create_secure_session() as session:
114
r = await session.get(
0 commit comments