AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
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.
For .NET Core this operation is only available in asynchronous form. Please refer to GetWebIdentityTokenAsync.
Namespace: Amazon.SecurityToken
Assembly: AWSSDK.SecurityToken.dll
Version: 3.x.y.z
public abstract GetWebIdentityTokenResponse GetWebIdentityToken( GetWebIdentityTokenRequest request )
Container for the necessary parameters to execute the GetWebIdentityToken service method.
| Exception | Condition |
|---|---|
| JWTPayloadSizeExceededException | The requested token payload size exceeds the maximum allowed size. Reduce the number of request tags included in the GetWebIdentityToken API call to reduce the token payload size. |
| OutboundWebIdentityFederationDisabledException | The outbound web identity federation feature is not enabled for this account. To use this feature, you must first enable it through the Amazon Web Services Management Console or API. |
| SessionDurationEscalationException | The requested token duration would extend the session beyond its original expiration time. You cannot use this operation to extend the lifetime of a session beyond what was granted when the session was originally created. |
.NET Framework:
Supported in: 4.7.2 and newer