Endpoint

Trait Endpoint 

Source
pub trait Endpoint {
    // Required methods
    fn registrar(&self) -> &dyn Registrar;
    fn authorizer(&mut self) -> &mut dyn Authorizer;
    fn issuer(&mut self) -> &mut dyn Issuer;
    fn extension(&mut self) -> &mut dyn Extension;
}
Expand description

Required functionality to respond to access token requests.

Each method will only be invoked exactly once when processing a correct and authorized request, and potentially less than once when the request is faulty. These methods should be implemented by internally using primitives, as it is implemented in the frontend module.

Required Methods§

Source

fn registrar(&self) -> &dyn Registrar

Get the client corresponding to some id.

Source

fn authorizer(&mut self) -> &mut dyn Authorizer

Get the authorizer from which we can recover the authorization.

Source

fn issuer(&mut self) -> &mut dyn Issuer

Return the issuer instance to create the access token.

Source

fn extension(&mut self) -> &mut dyn Extension

The system of used extension, extending responses.

It is possible to use &mut ().

Implementors§