Skip to main content

verify_assertion_with_keys

Function verify_assertion_with_keys 

Source
pub fn verify_assertion_with_keys(
    keys: &[Value],
    client_id: &str,
    assertion: &str,
    expected_audiences: &[String],
) -> Result<VerifiedAssertion, ClientAuthError>
Expand description

Pure-sync core verification: given a set of candidate keys, verify the JWT’s signature and claims. Used both by the async public entry point and directly by unit tests.