pub trait IntrospectionProvider: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn introspect<'life0, 'life1, 'async_trait>(
&'life0 self,
token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Value, ClaimsError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Plugin that can introspect opaque tokens (RFC 7662)
Required Methods§
Sourcefn introspect<'life0, 'life1, 'async_trait>(
&'life0 self,
token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Value, ClaimsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn introspect<'life0, 'life1, 'async_trait>(
&'life0 self,
token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Value, ClaimsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Introspect an opaque token and return the claims
This should call the OAuth 2.0 Token Introspection endpoint and return the introspection response as JSON.