[−][src]Trait oxide_auth::endpoint::OwnerSolicitor
Checks consent with the owner of a resource, identified in a request.
See frontends::simple
for an implementation that permits arbitrary functions.
Required methods
fn check_consent(
&mut self,
_: &mut Request,
pre_grant: &PreGrant
) -> OwnerConsent<Request::Response>
&mut self,
_: &mut Request,
pre_grant: &PreGrant
) -> 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.
Implementations on Foreign Types
impl<'a, W: WebRequest, S: OwnerSolicitor<W> + 'a + ?Sized> OwnerSolicitor<W> for &'a mut S
[src]
fn check_consent(
&mut self,
request: &mut W,
pre: &PreGrant
) -> OwnerConsent<W::Response>
[src]
&mut self,
request: &mut W,
pre: &PreGrant
) -> OwnerConsent<W::Response>
impl<'a, W: WebRequest, S: OwnerSolicitor<W> + 'a + ?Sized> OwnerSolicitor<W> for Box<S>
[src]
fn check_consent(
&mut self,
request: &mut W,
pre: &PreGrant
) -> OwnerConsent<W::Response>
[src]
&mut self,
request: &mut W,
pre: &PreGrant
) -> OwnerConsent<W::Response>
Implementors
impl<W, F> OwnerSolicitor<W> for FnSolicitor<F> where
W: WebRequest,
F: FnMut(&mut W, &PreGrant) -> OwnerConsent<W::Response>,
[src]
W: WebRequest,
F: FnMut(&mut W, &PreGrant) -> OwnerConsent<W::Response>,
fn check_consent(
&mut self,
request: &mut W,
grant: &PreGrant
) -> OwnerConsent<W::Response>
[src]
&mut self,
request: &mut W,
grant: &PreGrant
) -> OwnerConsent<W::Response>
impl<W: WebRequest> OwnerSolicitor<W> for ApprovedGrant
[src]
fn check_consent(
&mut self,
_: &mut W,
grant: &PreGrant
) -> OwnerConsent<W::Response>
[src]
&mut self,
_: &mut W,
grant: &PreGrant
) -> OwnerConsent<W::Response>
Approve if the grant matches exactly.
That is, client_id
, redirect_uri
, and scope
of the pre-grant are all equivalent. In
particular, the requested scope must match exactly not only be a subset of the approved
scope.
impl<W: WebRequest> OwnerSolicitor<W> for Vacant
[src]
fn check_consent(
&mut self,
_: &mut W,
_: &PreGrant
) -> OwnerConsent<W::Response>
[src]
&mut self,
_: &mut W,
_: &PreGrant
) -> OwnerConsent<W::Response>