Class: Aws::BedrockAgentCore::Types::GetResourceOauth2TokenRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb

Overview

Constant Summary collapse

SENSITIVE =
[:workload_identity_token, :custom_parameters, :custom_state]

Instance Attribute Summary collapse

Instance Attribute Details

#custom_parametersHash<String,String>

A map of custom parameters to include in the authorization request to the resource credential provider. These parameters are in addition to the standard OAuth 2.0 flow parameters, and will not override them.

Returns:

  • (Hash<String,String>)


2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 2050

class GetResourceOauth2TokenRequest < Struct.new(
  :workload_identity_token,
  :resource_credential_provider_name,
  :scopes,
  :oauth2_flow,
  :session_uri,
  :resource_oauth_2_return_url,
  :force_authentication,
  :custom_parameters,
  :custom_state)
  SENSITIVE = [:workload_identity_token, :custom_parameters, :custom_state]
  include Aws::Structure
end

#custom_stateString

An opaque string that will be sent back to the callback URL provided in resourceOauth2ReturnUrl. This state should be used to protect the callback URL of your application against CSRF attacks by ensuring the response corresponds to the original request.

Returns:

  • (String)


2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 2050

class GetResourceOauth2TokenRequest < Struct.new(
  :workload_identity_token,
  :resource_credential_provider_name,
  :scopes,
  :oauth2_flow,
  :session_uri,
  :resource_oauth_2_return_url,
  :force_authentication,
  :custom_parameters,
  :custom_state)
  SENSITIVE = [:workload_identity_token, :custom_parameters, :custom_state]
  include Aws::Structure
end

#force_authenticationBoolean

Indicates whether to always initiate a new three-legged OAuth (3LO) flow, regardless of any existing session.

Returns:

  • (Boolean)


2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 2050

class GetResourceOauth2TokenRequest < Struct.new(
  :workload_identity_token,
  :resource_credential_provider_name,
  :scopes,
  :oauth2_flow,
  :session_uri,
  :resource_oauth_2_return_url,
  :force_authentication,
  :custom_parameters,
  :custom_state)
  SENSITIVE = [:workload_identity_token, :custom_parameters, :custom_state]
  include Aws::Structure
end

#oauth2_flowString

The type of flow to be performed.

Returns:

  • (String)


2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 2050

class GetResourceOauth2TokenRequest < Struct.new(
  :workload_identity_token,
  :resource_credential_provider_name,
  :scopes,
  :oauth2_flow,
  :session_uri,
  :resource_oauth_2_return_url,
  :force_authentication,
  :custom_parameters,
  :custom_state)
  SENSITIVE = [:workload_identity_token, :custom_parameters, :custom_state]
  include Aws::Structure
end

#resource_credential_provider_nameString

The name of the resource's credential provider.

Returns:

  • (String)


2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 2050

class GetResourceOauth2TokenRequest < Struct.new(
  :workload_identity_token,
  :resource_credential_provider_name,
  :scopes,
  :oauth2_flow,
  :session_uri,
  :resource_oauth_2_return_url,
  :force_authentication,
  :custom_parameters,
  :custom_state)
  SENSITIVE = [:workload_identity_token, :custom_parameters, :custom_state]
  include Aws::Structure
end

#resource_oauth_2_return_urlString

The callback URL to redirect to after the OAuth 2.0 token retrieval is complete. This URL must be one of the provided URLs configured for the workload identity.

Returns:

  • (String)


2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 2050

class GetResourceOauth2TokenRequest < Struct.new(
  :workload_identity_token,
  :resource_credential_provider_name,
  :scopes,
  :oauth2_flow,
  :session_uri,
  :resource_oauth_2_return_url,
  :force_authentication,
  :custom_parameters,
  :custom_state)
  SENSITIVE = [:workload_identity_token, :custom_parameters, :custom_state]
  include Aws::Structure
end

#scopesArray<String>

The OAuth scopes being requested.

Returns:

  • (Array<String>)


2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 2050

class GetResourceOauth2TokenRequest < Struct.new(
  :workload_identity_token,
  :resource_credential_provider_name,
  :scopes,
  :oauth2_flow,
  :session_uri,
  :resource_oauth_2_return_url,
  :force_authentication,
  :custom_parameters,
  :custom_state)
  SENSITIVE = [:workload_identity_token, :custom_parameters, :custom_state]
  include Aws::Structure
end

#session_uriString

Unique identifier for the user's authentication session for retrieving OAuth2 tokens. This ID tracks the authorization flow state across multiple requests and responses during the OAuth2 authentication process.

Returns:

  • (String)


2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 2050

class GetResourceOauth2TokenRequest < Struct.new(
  :workload_identity_token,
  :resource_credential_provider_name,
  :scopes,
  :oauth2_flow,
  :session_uri,
  :resource_oauth_2_return_url,
  :force_authentication,
  :custom_parameters,
  :custom_state)
  SENSITIVE = [:workload_identity_token, :custom_parameters, :custom_state]
  include Aws::Structure
end

#workload_identity_tokenString

The identity token of the workload from which you want to retrieve the OAuth2 token.

Returns:

  • (String)


2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 2050

class GetResourceOauth2TokenRequest < Struct.new(
  :workload_identity_token,
  :resource_credential_provider_name,
  :scopes,
  :oauth2_flow,
  :session_uri,
  :resource_oauth_2_return_url,
  :force_authentication,
  :custom_parameters,
  :custom_state)
  SENSITIVE = [:workload_identity_token, :custom_parameters, :custom_state]
  include Aws::Structure
end