You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following arguments were given to JOSE.JWK.from_record/1:
# 1
{:error, {:missing_required_keys, ["keys", "kty"]}}
Attempted function clauses (showing 2 out of 2):
def from_record({:jose_jwk, keys, kty, fields})
def from_record(list) when is_list(list)
So, my workaround is the following - which is fine, just not ideal:
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.
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: