Trait Endpoint

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

Required functionality to respond to authorization code 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 + Sync)

‘Bind’ a client and redirect uri from a request to internally approved parameters.

Source

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

Generate an authorization code for a given grant.

Source

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

An extension implementation of this endpoint.

It is possible to use &mut ().

Implementors§