Class: Aws::STS::Types::GetWebIdentityTokenResponse
- Inherits:
-
Struct
- Object
- Struct
- Aws::STS::Types::GetWebIdentityTokenResponse
- Defined in:
- gems/aws-sdk-core/lib/aws-sdk-sts/types.rb
Overview
Constant Summary collapse
- SENSITIVE =
[:web_identity_token]
Instance Attribute Summary collapse
-
#expiration ⇒ Time
The date and time when the web identity token expires, in UTC.
-
#web_identity_token ⇒ String
A signed JSON Web Token (JWT) that represents the caller's Amazon Web Services identity or, if you set
SubjectModetoOriginIdentity, the human user or workload on whose behalf the calling session acts.
Instance Attribute Details
#expiration ⇒ Time
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.
2115 2116 2117 2118 2119 2120 |
# File 'gems/aws-sdk-core/lib/aws-sdk-sts/types.rb', line 2115 class GetWebIdentityTokenResponse < Struct.new( :web_identity_token, :expiration) SENSITIVE = [:web_identity_token] include Aws::Structure end |
#web_identity_token ⇒ String
A signed JSON Web Token (JWT) that represents the caller's Amazon
Web Services identity or, if you set SubjectMode to
OriginIdentity, the human user or workload on whose behalf the
calling session acts. The token contains standard JWT claims such as
subject, audience, expiration time, and additional identity
attributes added by STS as custom claims. These can include the
principal_id claim, which contains the ARN of the principal that
requested the token, whichever subject mode you use. 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.
If you set TokenType to JWT_SVID, the token is a SPIFFE JWT-SVID
instead. A JWT-SVID contains only the sub (the SPIFFE ID of the
workload), aud, iss, iat, exp, and jti claims. You can
verify it through OIDC discovery from its iss claim, or with the
trust bundle that GetTrustBundles returns.
2115 2116 2117 2118 2119 2120 |
# File 'gems/aws-sdk-core/lib/aws-sdk-sts/types.rb', line 2115 class GetWebIdentityTokenResponse < Struct.new( :web_identity_token, :expiration) SENSITIVE = [:web_identity_token] include Aws::Structure end |