Skip to main content

verify_dpop_proof

Function verify_dpop_proof 

Source
pub fn verify_dpop_proof(
    dpop_header: &str,
    expected_htm: &str,
    expected_htu: &str,
    access_token: Option<&str>,
) -> Result<DpopProof, DpopError>
Expand description

Verify a DPoP proof JWT string.

  • expected_htm: uppercase HTTP method (e.g. “POST”)
  • expected_htu: scheme + host + path (no query string)
  • access_token: when Some, the ath claim is required and verified