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
fn valid(&self) -> bool
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.
fn client_id(&self) -> Option<Cow<str>>
Identity of the client trying to gain an oauth token.
fn scope(&self) -> Option<Cow<str>>
Optionally specifies the requested scope
fn redirect_uri(&self) -> Option<Cow<str>>
Valid request have (one of) the registered redirect urls for this client.
fn state(&self) -> Option<Cow<str>>
Optional parameter the client can use to identify the redirected user-agent.
fn method(&self) -> Option<Cow<str>>
The method requested, valid requests MUST return code
fn extension(&self, _: &str) -> Option<Cow<str>>
Retrieve an additional parameter used in an extension
Trait Implementations
impl<'l> CodeRequest for &'l CodeRequest
[src]
fn valid(&self) -> bool
[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
fn client_id(&self) -> Option<Cow<str>>
[src]
Identity of the client trying to gain an oauth token.
fn scope(&self) -> Option<Cow<str>>
[src]
Optionally specifies the requested scope
fn redirect_uri(&self) -> Option<Cow<str>>
[src]
Valid request have (one of) the registered redirect urls for this client.
fn state(&self) -> Option<Cow<str>>
[src]
Optional parameter the client can use to identify the redirected user-agent.
fn method(&self) -> Option<Cow<str>>
[src]
The method requested, valid requests MUST return code
fn extension(&self, key: &str) -> Option<Cow<str>>
[src]
Retrieve an additional parameter used in an extension
Implementors
impl<'l> CodeRequest for &'l CodeRequest