Class: Aws::Signin::Types::IntrospectOAuth2TokenWithIAMResponse

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#account_id ⇒ String

12-digit AWS account ID of the token's subject principal.

Returns:

  • (String)


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.

Returns:

  • (Boolean)


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.

Returns:

  • (String)


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.

Returns:

  • (String)


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).

Returns:

  • (Integer)


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).

Returns:

  • (Integer)


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.

Returns:

  • (String)


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.

Returns:

  • (String)


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).

Returns:

  • (Integer)


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.

Returns:

  • (String)


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.

Returns:

  • (String)


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.

Returns:

  • (String)


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".

Returns:

  • (String)


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).

Returns:

  • (String)


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