pub struct VerifyConfig { /* private fields */ }Implementations§
Source§impl VerifyConfig
impl VerifyConfig
Sourcepub fn id_token(
issuer: impl Into<String>,
audience: impl Into<String>,
expected_nonce: Nonce,
) -> Self
pub fn id_token( issuer: impl Into<String>, audience: impl Into<String>, expected_nonce: Nonce, ) -> Self
Canonical id_token config: JWT typ (distinct from access
token’s at+jwt), EdDSA-only algorithm whitelist, 8 KB token
size cap, RP-stored expected_nonce required.
Sourcepub fn with_algorithms(self, algorithms: Vec<Algorithm>) -> Self
pub fn with_algorithms(self, algorithms: Vec<Algorithm>) -> Self
Override the algorithm whitelist. Test-only escape hatch —
production callers MUST go through id_token so EdDSA is the
default, not an override.
Sourcepub fn with_access_token_binding(self, access_token: impl Into<String>) -> Self
pub fn with_access_token_binding(self, access_token: impl Into<String>) -> Self
M67 — bind verification to the access_token the RP just received.
On verify, the engine asserts
payload.at_hash == base64url(SHA-256(access_token)[..16]).
Required when the response carries both id_token and access_token
(hybrid flow code id_token token, implicit id_token token).
Pure code flow consumers do not call this.
M68 — bind verification to the authorization code the RP just
received at the redirect_uri. On verify, the engine asserts
payload.c_hash == base64url(SHA-256(code)[..16]). Required when
the hybrid response carries both id_token and code
(code id_token, code id_token token). Pure implicit-flow
consumers do not call this.
Sourcepub fn with_max_age(self, max_age: i64) -> Self
pub fn with_max_age(self, max_age: i64) -> Self
Phase 10.6 (M70) wire site. Inert in 10.1.C.
Sourcepub fn with_acr_values(self, acr_values: Vec<String>) -> Self
pub fn with_acr_values(self, acr_values: Vec<String>) -> Self
Phase 10.7 (M71) wire site. Inert in 10.1.C.
Trait Implementations§
Source§impl Clone for VerifyConfig
impl Clone for VerifyConfig
Source§fn clone(&self) -> VerifyConfig
fn clone(&self) -> VerifyConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more