Skip to main content

FlightAuthorizer

Trait FlightAuthorizer 

Source
pub trait FlightAuthorizer: Send + Sync {
    // Required method
    fn authorize<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        authorization: Option<&'life1 str>,
        resource: &'life2 str,
        operation: &'life3 str,
    ) -> Pin<Box<dyn Future<Output = Result<(), FlightAuthError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}
Expand description

Authentication and tenant-policy boundary for the Flight data plane.

The implementation lives in the embedding binary so this leaf crate does not depend on Hyprstream’s JWT or PolicyClient types.

Required Methods§

Source

fn authorize<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, authorization: Option<&'life1 str>, resource: &'life2 str, operation: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<(), FlightAuthError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Implementors§