pub struct RuntimeOAuthFlowHandle { /* private fields */ }Implementations§
Source§impl RuntimeOAuthFlowHandle
impl RuntimeOAuthFlowHandle
pub fn new(ttl: Duration) -> Self
pub fn new_with_auth_lease( ttl: Duration, lifecycle: Arc<RuntimeAuthLeaseHandle>, ) -> Self
pub fn new_with_capacity(ttl: Duration, max_outstanding: usize) -> Self
pub fn new_with_capacity_and_auth_lease( ttl: Duration, max_outstanding: usize, lifecycle: Arc<RuntimeAuthLeaseHandle>, ) -> Self
pub fn new_with_persistent_store_and_auth_lease( ttl: Duration, lifecycle: Arc<RuntimeAuthLeaseHandle>, store: &Arc<dyn RuntimeStore>, ) -> Self
Trait Implementations§
Source§impl Debug for RuntimeOAuthFlowHandle
impl Debug for RuntimeOAuthFlowHandle
Source§impl Default for RuntimeOAuthFlowHandle
impl Default for RuntimeOAuthFlowHandle
Source§impl OAuthFlowAuthority for RuntimeOAuthFlowHandle
impl OAuthFlowAuthority for RuntimeOAuthFlowHandle
fn terminal_flow_state_is_authmachine_owned(&self) -> bool
fn start( &self, target: AuthBindingRef, provider: OAuthProviderIdentity, redirect_uri: String, pkce_verifier: String, ) -> Result<String, OAuthFlowError>
fn verify( &self, state: &str, target: &AuthBindingRef, provider: OAuthProviderIdentity, redirect_uri: &str, ) -> Result<OAuthFlowRecord, OAuthFlowError>
fn consume( &self, state: &str, target: &AuthBindingRef, provider: OAuthProviderIdentity, redirect_uri: &str, ) -> Result<OAuthFlowRecord, OAuthFlowError>
fn admit_device_code( &self, target: AuthBindingRef, provider: OAuthProviderIdentity, device_code: String, expires_in: Duration, ) -> Result<(), OAuthFlowError>
fn verify_device_code( &self, device_code: &str, target: &AuthBindingRef, provider: OAuthProviderIdentity, ) -> Result<OAuthDeviceFlowRecord, OAuthFlowError>
fn begin_device_code_poll( &self, device_code: &str, target: &AuthBindingRef, provider: OAuthProviderIdentity, ) -> Result<OAuthDevicePollLease, OAuthFlowError>
Auto Trait Implementations§
impl Freeze for RuntimeOAuthFlowHandle
impl !RefUnwindSafe for RuntimeOAuthFlowHandle
impl Send for RuntimeOAuthFlowHandle
impl Sync for RuntimeOAuthFlowHandle
impl Unpin for RuntimeOAuthFlowHandle
impl UnsafeUnpin for RuntimeOAuthFlowHandle
impl !UnwindSafe for RuntimeOAuthFlowHandle
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