Struct aws_sdk_ssooidc::input::CreateTokenInput[][src]

#[non_exhaustive]
pub struct CreateTokenInput { pub client_id: Option<String>, pub client_secret: Option<String>, pub grant_type: Option<String>, pub device_code: Option<String>, pub code: Option<String>, pub refresh_token: Option<String>, pub scope: Option<Vec<String>>, pub redirect_uri: Option<String>, }

Fields (Non-exhaustive)

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
client_id: Option<String>

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

client_secret: Option<String>

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

grant_type: Option<String>

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

device_code: Option<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.

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.

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.

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.

Implementations

Consumes the builder and constructs an Operation<CreateToken>

Creates a new builder-style object to manufacture CreateTokenInput

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

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

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

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.

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

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.

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

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

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more