Trait oxide_auth::code_grant::backend::CodeRequest [] [src]

pub trait CodeRequest {
    fn valid(&self) -> bool;
fn client_id(&self) -> Option<Cow<str>>;
fn scope(&self) -> Option<Cow<str>>;
fn redirect_uri(&self) -> Option<Cow<str>>;
fn state(&self) -> Option<Cow<str>>;
fn method(&self) -> Option<Cow<str>>;
fn extension(&self, _: &str) -> Option<Cow<str>>; }

Interface required from a request to determine the handling in the backend.

Required Methods

Received request might not be encoded correctly. This method gives implementors the chance to signal that a request was received but its encoding was generally malformed. If this is the case, then no other attribute will be queried. This method exists mainly to make frontends straightforward by not having them handle special cases for malformed requests.

Identity of the client trying to gain an oauth token.

Optionally specifies the requested scope

Valid request have (one of) the registered redirect urls for this client.

Optional parameter the client can use to identify the redirected user-agent.

The method requested, valid requests MUST return code

Retrieve an additional parameter used in an extension

Trait Implementations

impl<'l> CodeRequest for &'l CodeRequest
[src]

[src]

Received request might not be encoded correctly. This method gives implementors the chance to signal that a request was received but its encoding was generally malformed. If this is the case, then no other attribute will be queried. This method exists mainly to make frontends straightforward by not having them handle special cases for malformed requests. Read more

[src]

Identity of the client trying to gain an oauth token.

[src]

Optionally specifies the requested scope

[src]

Valid request have (one of) the registered redirect urls for this client.

[src]

Optional parameter the client can use to identify the redirected user-agent.

[src]

The method requested, valid requests MUST return code

[src]

Retrieve an additional parameter used in an extension

Implementors