pub trait OwnerSolicitor<Request: WebRequest> {
    // Required method
    fn check_consent(
        &mut self,
        _: &mut Request,
        _: Solicitation<'_>
    ) -> OwnerConsent<Request::Response>;
}
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§

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.

Implementations on Foreign Types§

source§

impl<'a, W: WebRequest, S: OwnerSolicitor<W> + 'a + ?Sized> OwnerSolicitor<W> for Box<S>

source§

impl<'a, W: WebRequest, S: OwnerSolicitor<W> + 'a + ?Sized> OwnerSolicitor<W> for &'a mut S

Implementors§