Class: Aws::Signin::Types::IntrospectOAuth2TokenWithIAMResponse
- Inherits:
-
Struct
- Object
- Struct
- Aws::Signin::Types::IntrospectOAuth2TokenWithIAMResponse
- Defined in:
- gems/aws-sdk-core/lib/aws-sdk-signin/types.rb
Overview
Output structure for IntrospectOAuth2TokenWithIAM operation
RFC 7662 ยง2.2 introspection response. Only active is required; all
other claims are omitted when the token is inactive.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#account_id ⇒ String
12-digit AWS account ID of the token's subject principal.
-
#active ⇒ Boolean
Indicates whether the token is currently active.
-
#aud ⇒ String
Audience of the token: the OAuth resource the token is scoped to (for example, "aws-mcp.amazonaws.com").
-
#client_id ⇒ String
Client identifier for the OAuth 2.0 client that requested the token.
-
#exp ⇒ Integer
Token expiration time as a NumericDate (Unix epoch seconds).
-
#iat ⇒ Integer
Token issuance time as a NumericDate (Unix epoch seconds).
-
#iss ⇒ String
Issuer of the token.
-
#jti ⇒ String
Unique identifier for the token.
-
#nbf ⇒ Integer
Token "not before" time as a NumericDate (Unix epoch seconds).
-
#resource ⇒ String
The OAuth resource the token is scoped to during Human OAuth flow.
-
#signin_session ⇒ String
AWS Sign-In session ARN bound to the token, of the form arn:aws:signin:region:account:session/uuid.
-
#sub ⇒ String
Subject of the token: the IAM principal ARN.
-
#token_type ⇒ String
Indicates which kind of token was introspected.
-
#user_id ⇒ String
User identifier matching sts:GetCallerIdentity's
UserIdfield for the token's subject principal (e.g. "AIDAEXAMPLE" for an IAM user, or "AROAEXAMPLE:session-name" for an assumed role).
Instance Attribute Details
#account_id ⇒ String
12-digit AWS account ID of the token's subject principal.
534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/types.rb', line 534 class IntrospectOAuth2TokenWithIAMResponse < Struct.new( :active, :client_id, :user_id, :token_type, :exp, :iat, :nbf, :sub, :aud, :iss, :jti, :account_id, :signin_session, :resource) SENSITIVE = [] include Aws::Structure end |
#active ⇒ Boolean
Indicates whether the token is currently active. true only when
the token is valid, has not expired, has not been revoked, and
belongs to the caller's account.
534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/types.rb', line 534 class IntrospectOAuth2TokenWithIAMResponse < Struct.new( :active, :client_id, :user_id, :token_type, :exp, :iat, :nbf, :sub, :aud, :iss, :jti, :account_id, :signin_session, :resource) SENSITIVE = [] include Aws::Structure end |
#aud ⇒ String
Audience of the token: the OAuth resource the token is scoped to (for example, "aws-mcp.amazonaws.com"). Omitted for refresh tokens.
534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/types.rb', line 534 class IntrospectOAuth2TokenWithIAMResponse < Struct.new( :active, :client_id, :user_id, :token_type, :exp, :iat, :nbf, :sub, :aud, :iss, :jti, :account_id, :signin_session, :resource) SENSITIVE = [] include Aws::Structure end |
#client_id ⇒ String
Client identifier for the OAuth 2.0 client that requested the token.
534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/types.rb', line 534 class IntrospectOAuth2TokenWithIAMResponse < Struct.new( :active, :client_id, :user_id, :token_type, :exp, :iat, :nbf, :sub, :aud, :iss, :jti, :account_id, :signin_session, :resource) SENSITIVE = [] include Aws::Structure end |
#exp ⇒ Integer
Token expiration time as a NumericDate (Unix epoch seconds).
534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/types.rb', line 534 class IntrospectOAuth2TokenWithIAMResponse < Struct.new( :active, :client_id, :user_id, :token_type, :exp, :iat, :nbf, :sub, :aud, :iss, :jti, :account_id, :signin_session, :resource) SENSITIVE = [] include Aws::Structure end |
#iat ⇒ Integer
Token issuance time as a NumericDate (Unix epoch seconds).
534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/types.rb', line 534 class IntrospectOAuth2TokenWithIAMResponse < Struct.new( :active, :client_id, :user_id, :token_type, :exp, :iat, :nbf, :sub, :aud, :iss, :jti, :account_id, :signin_session, :resource) SENSITIVE = [] include Aws::Structure end |
#iss ⇒ String
Issuer of the token. Always "signin.amazonaws.com" for AWS Sign-In.
534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/types.rb', line 534 class IntrospectOAuth2TokenWithIAMResponse < Struct.new( :active, :client_id, :user_id, :token_type, :exp, :iat, :nbf, :sub, :aud, :iss, :jti, :account_id, :signin_session, :resource) SENSITIVE = [] include Aws::Structure end |
#jti ⇒ String
Unique identifier for the token.
534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/types.rb', line 534 class IntrospectOAuth2TokenWithIAMResponse < Struct.new( :active, :client_id, :user_id, :token_type, :exp, :iat, :nbf, :sub, :aud, :iss, :jti, :account_id, :signin_session, :resource) SENSITIVE = [] include Aws::Structure end |
#nbf ⇒ Integer
Token "not before" time as a NumericDate (Unix epoch seconds).
534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/types.rb', line 534 class IntrospectOAuth2TokenWithIAMResponse < Struct.new( :active, :client_id, :user_id, :token_type, :exp, :iat, :nbf, :sub, :aud, :iss, :jti, :account_id, :signin_session, :resource) SENSITIVE = [] include Aws::Structure end |
#resource ⇒ String
The OAuth resource the token is scoped to during Human OAuth flow. Only present for refresh token introspection.
534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/types.rb', line 534 class IntrospectOAuth2TokenWithIAMResponse < Struct.new( :active, :client_id, :user_id, :token_type, :exp, :iat, :nbf, :sub, :aud, :iss, :jti, :account_id, :signin_session, :resource) SENSITIVE = [] include Aws::Structure end |
#signin_session ⇒ String
AWS Sign-In session ARN bound to the token, of the form arn:aws:signin:region:account:session/uuid.
534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/types.rb', line 534 class IntrospectOAuth2TokenWithIAMResponse < Struct.new( :active, :client_id, :user_id, :token_type, :exp, :iat, :nbf, :sub, :aud, :iss, :jti, :account_id, :signin_session, :resource) SENSITIVE = [] include Aws::Structure end |
#sub ⇒ String
Subject of the token: the IAM principal ARN. For assumed-role
sessions, this is the session ARN (matches sts:GetCallerIdentity's
Arn field), e.g.
arn:aws:sts::123456789012:assumed-role/MyRole/session-name.
534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/types.rb', line 534 class IntrospectOAuth2TokenWithIAMResponse < Struct.new( :active, :client_id, :user_id, :token_type, :exp, :iat, :nbf, :sub, :aud, :iss, :jti, :account_id, :signin_session, :resource) SENSITIVE = [] include Aws::Structure end |
#token_type ⇒ String
Indicates which kind of token was introspected. One of "access_token" or "refresh_token".
534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/types.rb', line 534 class IntrospectOAuth2TokenWithIAMResponse < Struct.new( :active, :client_id, :user_id, :token_type, :exp, :iat, :nbf, :sub, :aud, :iss, :jti, :account_id, :signin_session, :resource) SENSITIVE = [] include Aws::Structure end |
#user_id ⇒ String
User identifier matching sts:GetCallerIdentity's UserId field for
the token's subject principal (e.g. "AIDAEXAMPLE" for an IAM user,
or "AROAEXAMPLE:session-name" for an assumed role).
534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/types.rb', line 534 class IntrospectOAuth2TokenWithIAMResponse < Struct.new( :active, :client_id, :user_id, :token_type, :exp, :iat, :nbf, :sub, :aud, :iss, :jti, :account_id, :signin_session, :resource) SENSITIVE = [] include Aws::Structure end |