pub trait OwnerSolicitor<Request: WebRequest> {
// Required method
fn check_consent<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
req: &'life1 mut Request,
solicitation: Solicitation<'life2>,
) -> Pin<Box<dyn Future<Output = OwnerConsent<Request::Response>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Checks consent with the owner of a resource, identified in a request.
See frontends::simple for an implementation that permits arbitrary functions.
Required Methods§
Sourcefn check_consent<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
req: &'life1 mut Request,
solicitation: Solicitation<'life2>,
) -> Pin<Box<dyn Future<Output = OwnerConsent<Request::Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn check_consent<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
req: &'life1 mut Request,
solicitation: Solicitation<'life2>,
) -> Pin<Box<dyn Future<Output = OwnerConsent<Request::Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Ensure that a user (resource owner) is currently authenticated (for example via a session cookie) and determine if he has agreed to the presented grants.