[][src]Trait oxide_auth::frontends::simple::extensions::AuthorizationAddon

pub trait AuthorizationAddon: GrantExtension {
    fn execute(&self, request: &dyn AuthorizationRequest) -> AddonResult;
}

An extension reacting to an initial authorization code request.

Required methods

fn execute(&self, request: &dyn AuthorizationRequest) -> AddonResult

Provides data for this request or signals faulty data.

There may be two main types of extensions:

  • Extensions storing additional information about the client
  • Validators asserting additional requirements

Derived information which needs to be bound to the returned grant can be stored in an encoded form by returning Ok(extension_data) while errors can be signaled via Err(()). Extensions can also store their pure existance by initializing the extension struct without data. Specifically, the data can be used in a corresponding AccessTokenExtension.

Loading content...

Implementations on Foreign Types

impl<'a, T: AuthorizationAddon + ?Sized> AuthorizationAddon for &'a T[src]

impl<T: AuthorizationAddon + ?Sized> AuthorizationAddon for Box<T>[src]

impl<T: AuthorizationAddon + ?Sized> AuthorizationAddon for Arc<T>[src]

impl<T: AuthorizationAddon + ?Sized> AuthorizationAddon for Rc<T>[src]

Loading content...

Implementors

impl AuthorizationAddon for Pkce[src]

impl<'a, T: AuthorizationAddon + ?Sized> AuthorizationAddon for Cow<'a, T> where
    T: Clone + ToOwned
[src]

Loading content...