[][src]Trait oxide_auth::endpoint::OwnerSolicitor

pub trait OwnerSolicitor<Request: WebRequest> {
    fn check_consent(
        &mut self,
        _: &mut Request,
        pre_grant: &PreGrant
    ) -> OwnerConsent<Request::Response>; }

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.

Loading content...

Implementations on Foreign Types

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

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

Loading content...

Implementors

impl<W, F> OwnerSolicitor<W> for FnSolicitor<F> where
    W: WebRequest,
    F: FnMut(&mut W, &PreGrant) -> OwnerConsent<W::Response>, 
[src]

impl<W: WebRequest> OwnerSolicitor<W> for ApprovedGrant[src]

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]

Loading content...