pub struct LoopbackFlowClient { /* private fields */ }Expand description
Authorization-code-with-PKCE client using a loopback redirect.
Implementations§
Source§impl LoopbackFlowClient
impl LoopbackFlowClient
Sourcepub fn new(issuer: Url, client_id: impl Into<String>) -> Self
pub fn new(issuer: Url, client_id: impl Into<String>) -> Self
Build a client for the given issuer and public client id, with sensible loopback
defaults (127.0.0.1, ports 8899/8898/8900, /callback, 5-minute timeout).
Sourcepub fn with_ports(self, ports: Vec<u16>) -> Self
pub fn with_ports(self, ports: Vec<u16>) -> Self
Override the candidate loopback ports (e.g. [0] for an ephemeral port in tests).
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Override how long to wait for the browser redirect.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoopbackFlowClient
impl RefUnwindSafe for LoopbackFlowClient
impl Send for LoopbackFlowClient
impl Sync for LoopbackFlowClient
impl Unpin for LoopbackFlowClient
impl UnsafeUnpin for LoopbackFlowClient
impl UnwindSafe for LoopbackFlowClient
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