pub struct VerifyConfig {
pub issuer: String,
pub audience: String,
}Expand description
Per-deployment expectations folded into the verifier at construction.
issuer is the PAS instance URL (accounts.ppoppo.com in
production); audience is the consumer’s OAuth client_id. Both
are static per-deployment — multi-tenant consumers instantiate
multiple verifiers, never rotate VerifyConfig on the per-call hot
path.
Held inside [super::JwtVerifier] (and optionally inside
[super::MemoryBearerVerifier]) so the
super::BearerVerifier::verify signature stays one-parameter —
the port is as small as it can be while still doing meaningful work.
Fields§
§issuer: String§audience: StringImplementations§
Source§impl VerifyConfig
impl VerifyConfig
Trait Implementations§
Source§impl Clone for VerifyConfig
impl Clone for VerifyConfig
Source§fn clone(&self) -> VerifyConfig
fn clone(&self) -> VerifyConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VerifyConfig
impl RefUnwindSafe for VerifyConfig
impl Send for VerifyConfig
impl Sync for VerifyConfig
impl Unpin for VerifyConfig
impl UnsafeUnpin for VerifyConfig
impl UnwindSafe for VerifyConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more