idlc-sdk-core 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 500bdd1c4b7d4ed0bd6b41f9135a08e8a919af7555bd2a22009583f4f075f1ab
4
- data.tar.gz: b05d0a45a019971ec72365a7f56f84b4bbc0ff871cd566d11b7251fb64d6de16
3
+ metadata.gz: 1575237d9d73f8f88b5dad20e65340cbfa91812156a8b9bb1c3f700465d47d20
4
+ data.tar.gz: 593bf3e2ae6d841d3b45e30c21454a2586a453b8a21c1f6ee8064b3bd8186262
5
5
  SHA512:
6
- metadata.gz: 6e40815ac1d0b371ab824c952f76693ba91a47cde19e2e4d22373162488a2115574adfc6e2f5b08a2e4cd80792872a5cdac70a6b60c62799329e2c96ce189b9e
7
- data.tar.gz: 9d4e3d8f09fe3b42248d684caaaef8c82bd800e770a8b4920ddb3f58cba3ab39d3f2eb191a3877cb1e93449faf14c28bb43e5942d3ae2cb86dc4c275edf92a1f
6
+ metadata.gz: 01e5b1352ec0b44f3ead91f4f68d22c57a9733f663eea2686aa84d20e26db7bcebfd163f60c5dd1604286c11e91a2a32b36930b6574053e3fa3202f6da79c8de
7
+ data.tar.gz: 9ecda479cd049f9723aa1aa94e6e5b08c5c4f11af7c2cb9a235944375d75a33e94d5507537f36a641257592ee023f9b97ee2af5969ac7fd48bb74be8661cef63
@@ -50,7 +50,8 @@ module Idlc
50
50
  class AWSRestClient
51
51
  def initialize(credentials= {
52
52
  access_key_id: ENV['AWS_ACCESS_KEY_ID'],
53
- secret_access_key: ENV['AWS_SECRET_ACCESS_KEY']
53
+ secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'],
54
+ session_token: ENV['AWS_SESSION_TOKEN']
54
55
  },
55
56
  region=ENV['AWS_REGION']
56
57
  )
@@ -102,10 +103,11 @@ module Idlc
102
103
  end
103
104
 
104
105
  def set_headers(request, signature)
105
- request.add_field 'host', signature.headers['host']
106
106
  request.add_field 'content-type', 'application/json'
107
- request.add_field 'x-amz-content-sha256', signature.headers['x-amz-content-sha256']
107
+ request.add_field 'host', signature.headers['host']
108
108
  request.add_field 'x-amz-date', signature.headers['x-amz-date']
109
+ request.add_field 'x-amz-security-token', signature.headers['x-amz-security-token']
110
+ request.add_field 'x-amz-content-sha256', signature.headers['x-amz-content-sha256']
109
111
  request.add_field 'authorization', signature.headers['authorization']
110
112
  end
111
113
 
@@ -134,7 +136,8 @@ module Idlc
134
136
  service: @service_name,
135
137
  region: @region,
136
138
  access_key_id: @credentials[:access_key_id],
137
- secret_access_key: @credentials[:secret_access_key]
139
+ secret_access_key: @credentials[:secret_access_key],
140
+ session_token: @credentials[:session_token]
138
141
  )
139
142
  end
140
143
 
@@ -1,3 +1,3 @@
1
1
  module Idlc
2
- VERSION = '1.1.2'.freeze
2
+ VERSION = '1.1.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: idlc-sdk-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Cazell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-05 00:00:00.000000000 Z
11
+ date: 2018-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  version: '0'
183
183
  requirements: []
184
184
  rubyforge_project:
185
- rubygems_version: 2.7.6
185
+ rubygems_version: 2.7.7
186
186
  signing_key:
187
187
  specification_version: 4
188
188
  summary: IDLC SDK for AWS resources - Core