Skip to main content

Authenticator

Trait Authenticator 

Source
pub trait Authenticator:
    Send
    + Sync
    + 'static {
    // Required method
    fn authenticate<'a>(&'a self, ctx: &'a Context) -> AuthFuture<'a>;
}
Expand description

Pluggable asynchronous authenticator resolving a Hyperlane Context into an AuthPrincipal.

Required Methods§

Source

fn authenticate<'a>(&'a self, ctx: &'a Context) -> AuthFuture<'a>

Authenticates the incoming request represented by ctx.

§Arguments
  • &'a self - Shared reference to self.
  • &'a Context - Incoming request context.
§Returns

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§