pub struct IntrospectionAuthenticator { /* private fields */ }Implementations§
Source§impl IntrospectionAuthenticator
impl IntrospectionAuthenticator
pub fn new( introspector: Arc<dyn TokenIntrospector>, claims_mapper: Arc<dyn ClaimsMapper>, ) -> Self
Trait Implementations§
Source§impl Debug for IntrospectionAuthenticator
impl Debug for IntrospectionAuthenticator
Source§impl TokenAuthenticator for IntrospectionAuthenticator
impl TokenAuthenticator for IntrospectionAuthenticator
Source§fn authenticate_bearer<'life0, 'life1, 'async_trait>(
&'life0 self,
token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Principal, CamelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn authenticate_bearer<'life0, 'life1, 'async_trait>(
&'life0 self,
token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Principal, CamelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Authenticate a Bearer token and return the associated
Principal.Auto Trait Implementations§
impl Freeze for IntrospectionAuthenticator
impl !RefUnwindSafe for IntrospectionAuthenticator
impl Send for IntrospectionAuthenticator
impl Sync for IntrospectionAuthenticator
impl Unpin for IntrospectionAuthenticator
impl UnsafeUnpin for IntrospectionAuthenticator
impl !UnwindSafe for IntrospectionAuthenticator
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