hyperlane-plugin-auth 22.10.0

A zero-external-crypto-dependency authentication and RBAC plugin for the Hyperlane framework providing pure-Rust HS256 JWT with kid rotation, API key and HTTP Basic authenticators, extensible async Authenticator traits, and constant-time verification.
Documentation
1
2
3
4
5
6
7
8
use super::*;

/// Boxed `Send` future returned by an async [`Authenticator`].
pub type AuthFuture<'a> =
    Pin<Box<dyn Future<Output = Result<AuthPrincipal, AuthError>> + Send + 'a>>;

/// Thread-safe shared reference to a pluggable [`Authenticator`].
pub type SharedAuthenticator = Arc<dyn Authenticator>;