pub fn parse_jwks(
document: &[u8],
) -> Result<HashMap<String, VerifyingKey>, JwksError>Expand description
Parses the ES256 signing keys of a JWKS document, keyed by kid.
Keys without a kid, keys other than EC P-256, and keys marked for another algorithm or use
are skipped: a JWKS may legitimately publish them, and no token may be verified with them.
ยงErrors
Returns a JwksError when the document is not a JWKS.