nhynes / jwk-rs

Rust JSON Web Keys πŸ¦€πŸ•ΈπŸ”‘
MIT License
33 stars 16 forks source link

Allow other values in `use` field #8

Open maxlambrecht opened 2 years ago

maxlambrecht commented 2 years ago

Currently the library validates that the use field when present contain only either sig or enc.

The RFC 7517 - JSON Web Key states that Other values MAY be used..

The SPIFFE standards define other Key use values (x509-svid and jwt-svid) and I'm looking into add support for those values into the rust-spiffe library, which uses the jsonwekkey crate to process the JWKs.