Trait oxide_auth::endpoint::OwnerSolicitor
source · 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§
sourcefn check_consent(
&mut self,
_: &mut Request,
_: Solicitation<'_>
) -> OwnerConsent<Request::Response>
fn check_consent( &mut self, _: &mut Request, _: Solicitation<'_> ) -> OwnerConsent<Request::Response>
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.