Trait oxide_auth::primitives::authorizer::Authorizer
source · pub trait Authorizer {
// Required methods
fn authorize(&mut self, _: Grant) -> Result<String, ()>;
fn extract(&mut self, token: &str) -> Result<Option<Grant>, ()>;
}
Expand description
Authorizers create and manage authorization codes.
The authorization code can be traded for a bearer token at the token endpoint.
Required Methods§
Create a code which allows retrieval of a bearer token at a later time.