Module Values.CreateTokenResponseSource

Creates and returns access and refresh tokens for clients that are authenticated using client secrets. The access token can be used to fetch short-lived credentials for the assigned AWS accounts or to access application APIs using bearer authentication.

Sourcetype nonrec t = {
  1. accessToken : AccessToken.t option;
    (*

    A bearer token to access Amazon Web Services accounts and applications assigned to a user.

    *)
  2. tokenType : TokenType.t option;
    (*

    Used to notify the client that the returned token is an access token. The supported token type is Bearer.

    *)
  3. expiresIn : ExpirationInSeconds.t option;
    (*

    Indicates the time in seconds when an access token will expire.

    *)
  4. refreshToken : RefreshToken.t option;
    (*

    A token that, if present, can be used to refresh a previously issued access token that might have expired. For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference.

    *)
  5. idToken : IdToken.t option;
    (*

    The idToken is not implemented or supported. For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference. A JSON Web Token (JWT) that identifies who is associated with the issued access token.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of AccessDeniedException.t
  2. | `AuthorizationPendingException of AuthorizationPendingException.t
  3. | `ExpiredTokenException of ExpiredTokenException.t
  4. | `InternalServerException of InternalServerException.t
  5. | `InvalidClientException of InvalidClientException.t
  6. | `InvalidGrantException of InvalidGrantException.t
  7. | `InvalidRequestException of InvalidRequestException.t
  8. | `InvalidScopeException of InvalidScopeException.t
  9. | `SlowDownException of SlowDownException.t
  10. | `UnauthorizedClientException of UnauthorizedClientException.t
  11. | `UnsupportedGrantTypeException of UnsupportedGrantTypeException.t
  12. | `Unknown_operation_error of string * string option
]
Sourceval make : ?accessToken:??? -> ?tokenType:??? -> ?expiresIn:??? -> ?refreshToken:??? -> ?idToken:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedException of AccessDeniedException.t | `AuthorizationPendingException of AuthorizationPendingException.t | `ExpiredTokenException of ExpiredTokenException.t | `InternalServerException of InternalServerException.t | `InvalidClientException of InvalidClientException.t | `InvalidGrantException of InvalidGrantException.t | `InvalidRequestException of InvalidRequestException.t | `InvalidScopeException of InvalidScopeException.t | `SlowDownException of SlowDownException.t | `UnauthorizedClientException of UnauthorizedClientException.t | `Unknown_operation_error of string * string option | `UnsupportedGrantTypeException of UnsupportedGrantTypeException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccessDeniedException of AccessDeniedException.t | `AuthorizationPendingException of AuthorizationPendingException.t | `ExpiredTokenException of ExpiredTokenException.t | `InternalServerException of InternalServerException.t | `InvalidClientException of InvalidClientException.t | `InvalidGrantException of InvalidGrantException.t | `InvalidRequestException of InvalidRequestException.t | `InvalidScopeException of InvalidScopeException.t | `SlowDownException of SlowDownException.t | `UnauthorizedClientException of UnauthorizedClientException.t | `Unknown_operation_error of string * string option | `UnsupportedGrantTypeException of UnsupportedGrantTypeException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Integer of ExpirationInSeconds.t | `String of AccessToken.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t