NOTE: a more practical use case for this inline json would be $(curl https:/oauth.mydomain.com/.well-known/jwk.json) to fetch the JWKS from a remote endpoint
Tests
I have added tests/pub_rsa_jwks.json and tests/pub_ecdsa_jwks.json which are JWKS representation of tests/private_rsa_key.der and tests/private_ecdsa_key.pk8.
Documentation
I guess this serves as doc?
Preflight checklist
[X] Code formatted rustfmt ($ cargo fmt)
[X] Code linter check with clippy ($ cargo clippy)
Summary
Add support for JWKs secret for
jwt decode
for RSA and ES algorithms:--secret
arg as.json
file--secret
arg:Tests
I have added
tests/pub_rsa_jwks.json
andtests/pub_ecdsa_jwks.json
which are JWKS representation oftests/private_rsa_key.der
andtests/private_ecdsa_key.pk8
.Documentation
I guess this serves as doc?
Preflight checklist
$ cargo fmt
)$ cargo clippy
)