pub struct MicrosoftProviderDriver;Expand description
Dedicated Microsoft sign-in provider backed by the generic OIDC driver.
Implementations§
Trait Implementations§
Source§impl Default for MicrosoftProviderDriver
impl Default for MicrosoftProviderDriver
Source§fn default() -> MicrosoftProviderDriver
fn default() -> MicrosoftProviderDriver
Returns the “default value” for a type. Read more
Source§impl ExternalAuthProviderDriver for MicrosoftProviderDriver
impl ExternalAuthProviderDriver for MicrosoftProviderDriver
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 MicrosoftProviderDriver
impl RefUnwindSafe for MicrosoftProviderDriver
impl Send for MicrosoftProviderDriver
impl Sync for MicrosoftProviderDriver
impl Unpin for MicrosoftProviderDriver
impl UnsafeUnpin for MicrosoftProviderDriver
impl UnwindSafe for MicrosoftProviderDriver
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