Trait Authenticator

Source
pub trait Authenticator: Extension {
    // Required method
    fn authenticate(&mut self, headers: Headers) -> Result<Token, ErrorResponse>;
}
Expand description

A trait that extends Extension and provides authentication functionality.

Required Methods§

Source

fn authenticate(&mut self, headers: Headers) -> Result<Token, ErrorResponse>

Implementors§