Module Values.GetWebIdentityTokenResponseSource

Returns a signed JSON Web Token (JWT) that represents the calling Amazon Web Services identity. The returned JWT can be used to authenticate with external services that support OIDC discovery. The token is signed by Amazon Web Services STS and can be publicly verified using the verification keys published at the issuer's JWKS endpoint.

Sourcetype getWebIdentityTokenResult = {
  1. webIdentityToken : WebIdentityTokenType.t option;
    (*

    A signed JSON Web Token (JWT) that represents the caller's Amazon Web Services identity. The token contains standard JWT claims such as subject, audience, expiration time, and additional identity attributes added by STS as custom claims. You can also add your own custom claims to the token by passing tags as request parameters to the GetWebIdentityToken API. The token is signed using the specified signing algorithm and can be verified using the verification keys available at the issuer's JWKS endpoint.

    *)
  2. expiration : DateType.t option;
    (*

    The date and time when the web identity token expires, in UTC. The expiration is determined by adding the DurationSeconds value to the time the token was issued. After this time, the token should no longer be considered valid.

    *)
}
Sourceand responseMetaData = unit
Sourceand t = {
  1. getWebIdentityTokenResult : getWebIdentityTokenResult;
  2. responseMetaData : responseMetaData;
}
Sourcetype error = [
  1. | `JWTPayloadSizeExceededException of JWTPayloadSizeExceededException.t
  2. | `OutboundWebIdentityFederationDisabledException of OutboundWebIdentityFederationDisabledException.t
  3. | `SessionDurationEscalationException of SessionDurationEscalationException.t
  4. | `Unknown_operation_error of string * string option
]
Sourceval context_ : string
Sourceval make : ?webIdentityToken:??? -> ?expiration:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `JWTPayloadSizeExceededException of JWTPayloadSizeExceededException.t | `OutboundWebIdentityFederationDisabledException of OutboundWebIdentityFederationDisabledException.t | `SessionDurationEscalationException of SessionDurationEscalationException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `JWTPayloadSizeExceededException of JWTPayloadSizeExceededException.t | `OutboundWebIdentityFederationDisabledException of OutboundWebIdentityFederationDisabledException.t | `SessionDurationEscalationException of SessionDurationEscalationException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `String of WebIdentityTokenType.t | `Timestamp of DateType.t ]) list ]) 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