Function truelayer_signing::verify_with_jwks
source · pub fn verify_with_jwks(
jwks: &[u8]
) -> VerifierBuilder<'_, PublicKey<'_>, Unset, Unset, Unset>
Expand description
Start building a Tl-Signature
header verifier using public key JWKs JSON response data.
See https://datatracker.ietf.org/doc/html/rfc7517.
§Example
// jwks json of form: {"keys":[...]}
truelayer_signing::verify_with_jwks(jwks)
.method(truelayer_signing::Method::Post)
.path("/webhook")
.headers(headers)
.body(body)
.build_verifier()
.verify(tl_signature)?;