Skip to main content

AttachAuthenticator

Trait AttachAuthenticator 

Source
pub trait AttachAuthenticator: Send + Sync {
    // Required method
    fn authenticate<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        uname: &'life1 str,
        aname: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<VerifiedAttach, MountError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Verifies the Tattach credential and returns the session cached per fid.

Implementations verify the S6-minted access token once (hybrid signature, expiry, DPoP binding, and policy generation), derive SecurityContext from verified identity/key material, and translate the token’s authorized subset to VerifiedTokenScope. Invalid input returns SessionContext::deny.

Required Methods§

Source

fn authenticate<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, uname: &'life1 str, aname: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<VerifiedAttach, MountError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§