-
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
Cannot use JWK::parseKey for kty=='oct' #555
Comments
Hi @juacala , thanks for opening this issue. |
@yash30201 I'll circle back to this when I get some bandwidth. I didn't have a development branch checked out, but this addition to JWT::parseKey seemed to do the trick:
|
@juacala thank you for your suggestion. I'd like to do better than "seems to do the trick" if we add this to this library, however. Can you provide us with more information about your use-case? a sample key that we could use for testing would also be great. I've found some information on using the octet keys in the JWK IETF spec and this jwk generation guide |
I understand. I should have been more direct in my language. Adding the above code will satisfy the appropriate spec. I tested it both encoding and decoding using your library, as well as using a Javascript library as another party. I'll do my best to find some time to get a PR to y'all for your testing. |
The following code does not work:
Is there an intention to support this?
The text was updated successfully, but these errors were encountered: