pub struct OidcMethod<U: User> { /* private fields */ }Implementations§
Source§impl<U: User> OidcMethod<U>
impl<U: User> OidcMethod<U>
pub fn new<S: OidcStorage<U> + 'static>(storage: S) -> Self
pub fn with_options(self, options: OidcOptions) -> Self
pub fn with_providers<I: IntoIterator<Item = OidcProvider>>( self, providers: I, ) -> Self
Trait Implementations§
Source§impl<U: User + 'static> ErasedMethod for OidcMethod<U>
impl<U: User + 'static> ErasedMethod for OidcMethod<U>
fn erased_id(&self) -> String
fn erased_actions(&self) -> Vec<Box<dyn ErasedAction>>
fn erased_action_by_id(&self, action_id: &str) -> Option<Box<dyn ErasedAction>>
fn erased_providers<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<(Option<String>, Box<dyn Any + Send + Sync>)>, ShieldError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn erased_provider_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
provider_id: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<Option<Box<dyn Any + Send + Sync>>, ShieldError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn erased_deserialize_session( &self, value: Option<&str>, ) -> Result<Box<dyn Any + Send + Sync>, SessionError>
Source§impl<U: User + 'static> Method for OidcMethod<U>
impl<U: User + 'static> Method for OidcMethod<U>
type Provider = OidcProvider
type Session = OidcSession
fn id(&self) -> String
fn actions(&self) -> Vec<Box<dyn Action<Self::Provider, Self::Session>>>
fn providers<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Provider>, ShieldError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn provider_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
provider_id: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<Option<Self::Provider>, ShieldError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn action_by_id( &self, action_id: &str, ) -> Option<Box<dyn Action<Self::Provider, Self::Session>>>
Auto Trait Implementations§
impl<U> Freeze for OidcMethod<U>
impl<U> !RefUnwindSafe for OidcMethod<U>
impl<U> Send for OidcMethod<U>
impl<U> Sync for OidcMethod<U>
impl<U> Unpin for OidcMethod<U>
impl<U> !UnwindSafe for OidcMethod<U>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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