Struct oauth2::authz_request_data::AuthzRequestData [] [src]

pub struct AuthzRequestData {
    pub id: Option<String>,
    pub client_id: String,
    pub redirect_uri: Option<String>,
    pub scope: Option<String>,
    pub state: Option<String>,
    pub authorization_code: Option<String>,
    pub error: Option<AuthzError>,
}

This is the data that the client sends to the authz_server when requesting an authorization grant, as defined in RFC 6749 section 4.1.1

Fields

id

Some token to distinguish this request

client_id

client_id as supplied in the request

redirect_uri

redirect_uri as supplied in the request, or None if not supplied

scope

scope as supplied in the request

state

state as supplied in the request. We recommend implementations should error if a state was not supplied in the request.

authorization_code

The authorization code, IF the request has been approved.

error

An error, if an error has occurred

Trait Implementations

Derived Implementations

impl Debug for AuthzRequestData
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for AuthzRequestData
[src]

fn clone(&self) -> AuthzRequestData

fn clone_from(&mut self, source: &Self)
1.0.0