Skip to main content

AuthZResolverPluginClient

Trait AuthZResolverPluginClient 

Source
pub trait AuthZResolverPluginClient: Send + Sync {
    // Required method
    fn evaluate<'life0, 'async_trait>(
        &'life0 self,
        request: EvaluationRequest,
    ) -> Pin<Box<dyn Future<Output = Result<EvaluationResponse, AuthZResolverError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Plugin API trait for AuthZ resolver implementations.

Each plugin registers this trait with a scoped ClientHub entry using its GTS instance ID as the scope.

Required Methods§

Source

fn evaluate<'life0, 'async_trait>( &'life0 self, request: EvaluationRequest, ) -> Pin<Box<dyn Future<Output = Result<EvaluationResponse, AuthZResolverError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Evaluate an authorization request.

§Errors
  • Internal for unexpected errors

Implementors§