Module: AWS::Core::Signature::Version3HTTPS
- Defined in:
- lib/aws/core/signature/version_3_https.rb
Instance Method Summary collapse
Instance Method Details
#add_authorization!(credentials) ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/aws/core/signature/version_3_https.rb', line 25 def credentials self.access_key_id = credentials.access_key_id parts = [] parts << "AWS3-HTTPS AWSAccessKeyId=#{access_key_id}" parts << "Algorithm=HmacSHA256" parts << "Signature=#{signature(credentials)}" headers['x-amzn-authorization'] = parts.join(',') headers['x-amz-security-token'] = credentials.session_token if credentials.session_token end |