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
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
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateToken, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateToken, AwsErrorRetryPolicy>, BuildError>
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CreateTokenInput
impl Send for CreateTokenInput
impl Sync for CreateTokenInput
impl Unpin for CreateTokenInput
impl UnwindSafe for CreateTokenInput
Blanket Implementations
Mutably borrows from an owned value. Read more
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