pub struct QqProviderDriver;Expand description
QQ Connect OAuth2 provider driver.
Implementations§
Trait Implementations§
Source§impl Default for QqProviderDriver
impl Default for QqProviderDriver
Source§fn default() -> QqProviderDriver
fn default() -> QqProviderDriver
Returns the “default value” for a type. Read more
Source§impl ExternalAuthProviderDriver for QqProviderDriver
impl ExternalAuthProviderDriver for QqProviderDriver
Source§fn kind(&self) -> ExternalAuthProviderKind
fn kind(&self) -> ExternalAuthProviderKind
Returns the provider kind handled by this driver.
Source§fn descriptor(&self) -> ExternalAuthProviderDescriptor
fn descriptor(&self) -> ExternalAuthProviderDescriptor
Returns static provider metadata and capability flags.
Builds an authorization URL and state values for a browser redirect.
Source§fn exchange_callback<'life0, 'life1, 'async_trait>(
&'life0 self,
provider: &'life1 ExternalAuthProviderConfig,
callback: ExternalAuthCallback,
) -> Pin<Box<dyn Future<Output = Result<ExternalAuthProfile>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn exchange_callback<'life0, 'life1, 'async_trait>(
&'life0 self,
provider: &'life1 ExternalAuthProviderConfig,
callback: ExternalAuthCallback,
) -> Pin<Box<dyn Future<Output = Result<ExternalAuthProfile>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Exchanges a callback authorization code and returns a normalized profile.
Source§fn test_provider<'life0, 'life1, 'async_trait>(
&'life0 self,
provider: &'life1 ExternalAuthProviderConfig,
) -> Pin<Box<dyn Future<Output = Result<ExternalAuthProviderTestResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn test_provider<'life0, 'life1, 'async_trait>(
&'life0 self,
provider: &'life1 ExternalAuthProviderConfig,
) -> Pin<Box<dyn Future<Output = Result<ExternalAuthProviderTestResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Performs configuration/discovery checks suitable for admin validation.
Auto Trait Implementations§
impl Freeze for QqProviderDriver
impl RefUnwindSafe for QqProviderDriver
impl Send for QqProviderDriver
impl Sync for QqProviderDriver
impl Unpin for QqProviderDriver
impl UnsafeUnpin for QqProviderDriver
impl UnwindSafe for QqProviderDriver
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more