We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01cae19 commit 28bb46fCopy full SHA for 28bb46f
src/sentry/utils/jwt.py
@@ -137,6 +137,7 @@ def rsa_key_from_jwk(jwk: str) -> str:
137
# The return type is verified in our own tests, this is fine.
138
return key.private_bytes(Encoding.PEM, PrivateFormat.PKCS8, NoEncryption()).decode("UTF-8") # type: ignore
139
elif isinstance(key, RSAPublicKey):
140
- return key.public_bytes(Encoding.PEM, PublicFormat.SubjectPublicKeyInfo).decode("UTF-8")
+ # The return type is verified in our own tests, this is fine.
141
+ return key.public_bytes(Encoding.PEM, PublicFormat.SubjectPublicKeyInfo).decode("UTF-8") # type: ignore
142
else:
143
raise ValueError("Unknown RSA JWK key")
0 commit comments