Replies: 1 comment 3 replies
-
@blankdots can you show us the code and/or the token? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Not sure this is an issue so I am starting a discussion:
I am trying to verify a token ( with
jwt.Parse
as described here: https://github.com/lestrrat-go/jwx/blob/main/docs/01-jwt.md#parse-and-verify-a-jwt-with-single-key ) for which the jwk has as an algorithmRSA-OAEP-256
. I usejwk.Fetch
to get the keyset and use it in the verification.If I use
jwt.InferAlgorithmFromKey(true)
i get:invalid jwa.SignatureAlgorithm
which seems to be a knowalg
for JWE https://www.rfc-editor.org/rfc/rfc7518.html#section-4.1 I suspect the implementation of the JWK endpoint which i am using wrongly assumes RSA-OAEP-256 is a signature algorithmAm i doing something wrong, or how should i approach this verification?
Beta Was this translation helpful? Give feedback.
All reactions