Trait rocket_simple_authorization::SimpleAuthorization [−][src]
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>[src]
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.