[][src]Struct rusoto_sso_oidc::CreateTokenRequest

pub struct CreateTokenRequest {
    pub client_id: String,
    pub client_secret: String,
    pub code: Option<String>,
    pub device_code: String,
    pub grant_type: String,
    pub redirect_uri: Option<String>,
    pub refresh_token: Option<String>,
    pub scope: Option<Vec<String>>,
}

Fields

client_id: String

The unique identifier string for each client. This value should come from the persisted result of the RegisterClient API.

client_secret: String

A secret string generated for the client. This value should come from the persisted result of the RegisterClient API.

code: Option<String>

The authorization code received from the authorization service. This parameter is required to perform an authorization grant request to get access to a token.

device_code: String

Used only when calling this API for the device code grant type. This short-term code is used to identify this authentication attempt. This should come from an in-memory reference to the result of the StartDeviceAuthorization API.

grant_type: String

Supports grant types for authorization code, refresh token, and device code request.

redirect_uri: Option<String>

The location of the application that will receive the authorization code. Users authorize the service to send the request to this location.

refresh_token: Option<String>

The token used to obtain an access token in the event that the access token is invalid or expired. This token is not issued by the service.

scope: Option<Vec<String>>

The list of scopes that is defined by the client. Upon authorization, this list is used to restrict permissions when granting an access token.

Trait Implementations

impl Clone for CreateTokenRequest[src]

impl Debug for CreateTokenRequest[src]

impl Default for CreateTokenRequest[src]

impl PartialEq<CreateTokenRequest> for CreateTokenRequest[src]

impl Serialize for CreateTokenRequest[src]

impl StructuralPartialEq for CreateTokenRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.