-
Notifications
You must be signed in to change notification settings - Fork 271
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
Invalid signature #372
Comments
I've run into a similar issue and have identified the problem as being incompatible signature format. In the product I am working on I am attempting to validate JWTs whose signatures were produced by google cloud's KMS. In KMS signature verification example doc we can see the doc writers assume a KMS-generated signature would be in ASN1 format:
But With no way to prefer (when signing) or detect (when verifying) the use of ASN1 for signature serialization. I'd be willing to submit a PR to address this issue if the maintainer could provide guidance on the preferred approach for enabling the detection or selection of signature serialization format at the public crate api level. I imagine it could be as simple as providing |
I have the same problem. JWT tokens generated using this library are incompatible with my other apis and jwt.io. Does there exist a workaround? |
Hi,
I am having an issue when I use my generated token on other services (like pasting on the jwt.io website), it gives me an "Invalid signature". I have the following minimal example:-
and I generate my keys like so:-
The code works fine, no issues.
Any idea what the issue could be? I am generating my own access tokens to use with other services.
Thank you.
The text was updated successfully, but these errors were encountered: