pub struct ExternalTokens<V: TokenVerifier> { /* private fields */ }Expand description
Adapts a TokenVerifier into an IdentityProvider.
Implementations§
Source§impl<V: TokenVerifier> ExternalTokens<V>
impl<V: TokenVerifier> ExternalTokens<V>
Trait Implementations§
Source§impl<V: TokenVerifier> IdentityProvider for ExternalTokens<V>
impl<V: TokenVerifier> IdentityProvider for ExternalTokens<V>
Source§fn name(&self) -> &str
fn name(&self) -> &str
A short name recorded in
Principal::provider and logs.Source§fn authenticate(
&self,
credentials: &Credentials,
) -> Result<Option<Principal>, AuthError>
fn authenticate( &self, credentials: &Credentials, ) -> Result<Option<Principal>, AuthError>
Authenticates
credentials. Read moreAuto Trait Implementations§
impl<V> Freeze for ExternalTokens<V>where
V: Freeze,
impl<V> RefUnwindSafe for ExternalTokens<V>where
V: RefUnwindSafe,
impl<V> Send for ExternalTokens<V>
impl<V> Sync for ExternalTokens<V>
impl<V> Unpin for ExternalTokens<V>where
V: Unpin,
impl<V> UnsafeUnpin for ExternalTokens<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for ExternalTokens<V>where
V: UnwindSafe,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request