-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tokens can be resolved by multiple keys #666
Comments
Hi @zhangan12138! Your attached doesn't reproduce the issue you are describing, there are a few problems:
|
@zhangan12138 it looks like you fell for the misleading Claims claim = (Claims) Jwts.parser()
.setSigningKey("xxxxxxx")
.parse(token)
.getBody(); Sadly the documentation does not make it very clear, but this method does not verify the signature of the token, see #212. |
Changing the method functionality is a breaking change, but it's something that we are looking into for 1.0 I think most folks confuse assume a JWT is always JWS, so the default parser needs a little work. We are also working on supporting JWE's support which will help flush how to clarify the difference between the different types of JWTs |
@bdemers, there is probably still some work left until version 1.0 will be released and from what I have read it will be a backward incompatible release, so users will likely be hesitant upgrading their dependency. |
Hey @Marcono1234, I'm not sure I've following 100%. Renaming methods is a breaking change and isn't backward compatible. |
Sorry for being imprecise there, the pull request is not actually "renaming" the methods, instead it annotates the old methods with |
This issue has been automatically marked as stale due to inactivity for 60 or more days. It will be closed in 7 days if no further activity occurs. |
thanks |
Hello, I was confused when I used JJWT in the test. When I used 'XXXX' as the key to get the token, I used 'XXXXX ',' XXXXXX' and 'XXXXXXX' to successfully resolve the token. I wonder if I made a mistake in the operation
question.txt
The text was updated successfully, but these errors were encountered: