-
Notifications
You must be signed in to change notification settings - Fork 102
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
Passing a %JOSE.JWK{}
to Signer.create()
#294
Comments
Hi @acco ! No specific reason at all besides my short sight of things when I've implemented the Signer. A PR will certainly be welcomed. There is just the boring part of ensuring the signer can handle the desired algorithm. For instance: you pass a RSA key for an algorithm that expects an octet key or an elliptic curve key. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey team,
I work with
JOSE.JWK
in their native struct in my codebase. Eg:I want to be able to do something like this:
But this raises this error:
So, my workaround is the following - which is fine, just not ideal:
Any reason not to support passing in JWK's directly?
Thanks!
The text was updated successfully, but these errors were encountered: