Smaws_Client_STS.GetWebIdentityTokenReturns 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.
val error_to_string :
[ Smaws_Lib.Protocols.AwsQuery.error
| `JWTPayloadSizeExceededException of
Types.jwt_payload_size_exceeded_exception
| `OutboundWebIdentityFederationDisabledException of
Types.outbound_web_identity_federation_disabled_exception
| `SessionDurationEscalationException of
Types.session_duration_escalation_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.get_web_identity_token_request ->
(Types.get_web_identity_token_response,
[> Smaws_Lib.Protocols.AwsQuery.error
| `JWTPayloadSizeExceededException of
Types.jwt_payload_size_exceeded_exception
| `OutboundWebIdentityFederationDisabledException of
Types.outbound_web_identity_federation_disabled_exception
| `SessionDurationEscalationException of
Types.session_duration_escalation_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.get_web_identity_token_request ->
(Types.get_web_identity_token_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error
| `JWTPayloadSizeExceededException of
Types.jwt_payload_size_exceeded_exception
| `OutboundWebIdentityFederationDisabledException of
Types.outbound_web_identity_federation_disabled_exception
| `SessionDurationEscalationException of
Types.session_duration_escalation_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result