Class: Aws::Plugins::RequestSigner

Inherits:
Seahorse::Client::Plugin show all
Defined in:
lib/aws-sdk-core/plugins/request_signer.rb

Defined Under Namespace

Classes: Handler

Instance Method Summary collapse

Methods inherited from Seahorse::Client::Plugin

#add_options, #after_initialize, after_initialize, after_initialize_hooks, before_initialize, #before_initialize, before_initialize_hooks, handlers, option, options

Methods included from Seahorse::Client::HandlerBuilder

#handle, #handle_request, #handle_response, #handler_for, #new_handler

Instance Method Details

#add_handlers(handlers, config) ⇒ Object



135
136
137
138
139
140
141
142
143
144
145
146
# File 'lib/aws-sdk-core/plugins/request_signer.rb', line 135

def add_handlers(handlers, config)
  # See the S3RequestSignerPlugin for Amazon S3 signature logic
  unless config.sigv4_name == 's3'
    operations = []
    config.api.operation_names.each do |operation_name|
      if config.api.operation(operation_name)['authtype'] != 'none'
        operations << operation_name
      end
    end
    handlers.add(Handler, step: :sign, operations: operations)
  end
end