Trait oxide_auth::primitives::registrar::Registrar [] [src]

pub trait Registrar {
    fn bound_redirect<'a>(
        &'a self,
        bound: ClientUrl<'a>
    ) -> Result<BoundClient<'a>, RegistrarError>;
fn client(&self, client_id: &str) -> Option<&Client>; }

Registrars provie a way to interact with clients.

Most importantly, they determine defaulted parameters for a request as well as the validity of provided parameters. In general, implementations of this trait will probably offer an interface for registering new clients. This interface is not covered by this library.

Required Methods

Determine the allowed scope and redirection url for the client. The registrar may override the scope entirely or simply substitute a default scope in case none is given. Redirection urls should be matched verbatim, not partially.

Look up a client id.

Implementors