-
Notifications
You must be signed in to change notification settings - Fork 232
issuer url and authentication endpoint #489
Comments
This is also an issue when using the package @okta/okta-vue I had a working codebase running on an older version, and it seems that this was broken from the last commit (9d76c9f) for jwt-verifier/lib.js Prior to this commit, the library didn't even verify the issuer, so although you'd have to use different paths for the two libraries to make both the jwksUri (server) and the .well-known (client) paths work, the fetching and verifying would at least still work fine between the two libraries. A temporary fixFor anyone interested, you can pin your dependency to version 0.0.16 (this is the version just prior to v1). This version requires a clientId parameter to match against the incoming JWT, however, which is not present in v1. To remove this requirement you'd have to roll back to v0.0.12 (I haven't looked into what this roll-back would entail missing out on, however. Running such an old version might not be advisable). |
If you use your Okta domain with |
Additional documentation on the various auth server values that can decide what to store as the Issuer can be found here: https://developer.okta.com/docs/concepts/auth-servers/ |
Why not have the verifier look up the values from |
@radicand - A great insight! We're already reviewing our SDKs to see where it makes sense to pull that information from |
Internal ref: OKTA-286876 |
Current documentation and examples for mraible's comment is correct:
Feel free to reopen if you still find more inconsistencies with issuer |
I'm submitting this issue for the package(s):
I'm submitting a:
Current behavior
the packages @okta/okta-react and @okta/jwt-verifier uses different base urls for issuing and verifing a token.
Expected behavior
jwt-verifier finds the correct key with the same issuer
Minimal reproduction of the problem with instructions
given the following config to @okta/okta-react the login process works as expected:
but the verifcation of the token with @okta/jwt-verfier doesn't work because of either the issuer doesn't match or the key couldn't be found
config of jwt-verifier for not matching issuer:
config of jwt-verifier for not finding the key:
Environment
node -v
): v11.15.0The text was updated successfully, but these errors were encountered: