Module: AWS::Core::Signature::Version2
- Defined in:
- lib/aws/core/signature/version_2.rb
Instance Method Summary collapse
Instance Method Details
#add_authorization!(credentials) ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/aws/core/signature/version_2.rb', line 19 def credentials add_param('AWSAccessKeyId', credentials.access_key_id) if token = credentials.session_token add_param("SecurityToken", token) end add_param('SignatureVersion', '2') add_param('SignatureMethod', 'HmacSHA256') add_param('Signature', signature(credentials)) self.body = url_encoded_params end |