[][src]Trait rocket_simple_authorization::SimpleAuthorization

pub trait SimpleAuthorization<'a, 'r> where
    Self: Sized
{ fn authorizing(
        request: &'a Request<'r>,
        authorization: Option<&'a str>
    ) -> Option<Self>; }

The trait for an authorizer.

Required methods

fn authorizing(
    request: &'a Request<'r>,
    authorization: Option<&'a str>
) -> Option<Self>

Check whether the value in the Authorization header is valid or not. If it is valid, create a new instance of Self.

Loading content...

Implementors

Loading content...