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