This repository has been archived by the owner on Oct 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 232
JWT-verifier -> [JwtParseError: Unexpected signature algorithm] #997
Comments
Thanks for submitting this issue. |
aha mine is:
|
I used Example jwt:
|
straight from the okta documentation:
Then why is only RS256 supported? |
In jwt-verifier code RS256 is set here: okta-oidc-js/packages/jwt-verifier/lib.js Line 140 in 40fe1da
@aarongranick-okta Can we improve this in njwt and jwt-verifier to allow different signing algorithms? |
Especially because HS256 is the default setting here :/ |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm submitting this issue for the package(s):
I'm submitting a:
I'm receiving an error back but can't find any information on how to resolve it.
Current behavior
A user has an okta accesstoken used in my application that gets sent as a header to my backend API.
In the backend I run the jwt-verifier nodeJS package to ensure that the person accessing the API is actually authorised to do so.
This verify should return wether or not the token is valid.
Expected behavior
The verify function errors out and gives me the
[JwtParseError: Unexpected signature algorithm]
error.Minimal reproduction of the problem with instructions
Below is my verify setup.
Environment
node -v
): v15.14.0The text was updated successfully, but these errors were encountered: