pub trait RequestAuthorizationHandler: Send + Sync + Debug + 'static {
    // Required method
    fn authorize(
        &self,
        token: Option<RequestToken>,
        request: &Request
    ) -> BoxFuture<'static, Result<()>>;
}
Expand description

hook into the request handling to process authorization by examining the request and any given token. Any error returned will abort the request, and the error will be sent to the requester.

Required Methods§

source

fn authorize( &self, token: Option<RequestToken>, request: &Request ) -> BoxFuture<'static, Result<()>>

Handle the authorization request, given an opaque data blob from the requester.

Implementors§