pub struct GetOpenIdToken<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to GetOpenIdToken
.
Gets an OpenID token, using a known Cognito ID. This known Cognito ID is returned by GetId
. You can optionally add additional logins for the identity. Supplying multiple logins creates an implicit link.
The OpenID token is valid for 10 minutes.
This is a public API. You do not need any credentials to call this API.
Implementations
impl<C, M, R> GetOpenIdToken<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> GetOpenIdToken<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<GetOpenIdTokenOutput, SdkError<GetOpenIdTokenError>> where
R::Policy: SmithyRetryPolicy<GetOpenIdTokenInputOperationOutputAlias, GetOpenIdTokenOutput, GetOpenIdTokenError, GetOpenIdTokenInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<GetOpenIdTokenOutput, SdkError<GetOpenIdTokenError>> where
R::Policy: SmithyRetryPolicy<GetOpenIdTokenInputOperationOutputAlias, GetOpenIdTokenOutput, GetOpenIdTokenError, GetOpenIdTokenInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
A unique identifier in the format REGION:GUID.
A unique identifier in the format REGION:GUID.
Adds a key-value pair to Logins
.
To override the contents of this collection use set_logins
.
A set of optional name-value pairs that map provider names to provider tokens. When using graph.facebook.com and www.amazon.com, supply the access_token returned from the provider's authflow. For accounts.google.com, an Amazon Cognito user pool provider, or any other OpenID Connect provider, always include the id_token
.
A set of optional name-value pairs that map provider names to provider tokens. When using graph.facebook.com and www.amazon.com, supply the access_token returned from the provider's authflow. For accounts.google.com, an Amazon Cognito user pool provider, or any other OpenID Connect provider, always include the id_token
.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for GetOpenIdToken<C, M, R>
impl<C, M, R> Send for GetOpenIdToken<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for GetOpenIdToken<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for GetOpenIdToken<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for GetOpenIdToken<C, M, R>
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