Trait Endpoint

Source
pub trait Endpoint {
    // Required methods
    fn scopes(&mut self) -> &[Scope];
    fn issuer(&mut self) -> &dyn Issuer;
}
Expand description

Required functionality to respond to resource 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 scopes(&mut self) -> &[Scope]

The list of possible scopes required by the resource endpoint.

Source

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

Issuer which provides the tokens used for authorization by the client.

Implementors§