pub struct OAuth2ProviderDriver;Expand description
Generic OAuth2 provider driver with manually configured endpoints.
Implementations§
Trait Implementations§
Source§impl Default for OAuth2ProviderDriver
impl Default for OAuth2ProviderDriver
Source§fn default() -> OAuth2ProviderDriver
fn default() -> OAuth2ProviderDriver
Returns the “default value” for a type. Read more
Source§impl ExternalAuthProviderDriver for OAuth2ProviderDriver
impl ExternalAuthProviderDriver for OAuth2ProviderDriver
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 OAuth2ProviderDriver
impl RefUnwindSafe for OAuth2ProviderDriver
impl Send for OAuth2ProviderDriver
impl Sync for OAuth2ProviderDriver
impl Unpin for OAuth2ProviderDriver
impl UnsafeUnpin for OAuth2ProviderDriver
impl UnwindSafe for OAuth2ProviderDriver
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