#[non_exhaustive]pub struct Config {
pub client_id: String,
pub redirect_uri: Url,
pub issuer: Url,
pub state_ttl: Duration,
}Expand description
PAS OAuth client + RP configuration.
Construction input to [super::RelyingParty::new]. Mirrors the
“public OAuth client” pattern (RCW / CTW precedent — no
client_secret; PKCE S256 mandatory). TTL knobs for state-store
entries are bundled here so a consumer that picks non-default
lifetimes does so once at boot, not at every start.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.client_id: String§redirect_uri: Url§issuer: Url§state_ttl: DurationState entry TTL in the substrate. Default 10 minutes (RFC 9700 §4.1.2 guidance).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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