Class: Aws::SSOOIDC::Plugins::Endpoints::Handler Private

Inherits:
Seahorse::Client::Handler show all
Defined in:
lib/aws-sdk-ssooidc/plugins/endpoints.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary

Attributes inherited from Seahorse::Client::Handler

#handler

Instance Method Summary collapse

Methods inherited from Seahorse::Client::Handler

#initialize, #inspect

Constructor Details

This class inherits a constructor from Seahorse::Client::Handler

Instance Method Details

#call(context) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

[View source]

27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/aws-sdk-ssooidc/plugins/endpoints.rb', line 27

def call(context)
  # If endpoint was discovered, do not resolve or apply the endpoint.
  unless context[:discovered_endpoint]
    params = parameters_for_operation(context)
    endpoint = context.config.endpoint_provider.resolve_endpoint(params)

    context.http_request.endpoint = endpoint.url
    apply_endpoint_headers(context, endpoint.headers)
  end

  context[:endpoint_params] = params
  context[:auth_scheme] =
    Aws::Endpoints.resolve_auth_scheme(context, endpoint)

  @handler.call(context)
end