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 +4 -4
- data/lib/idlc-sdk-core/restclient.rb +7 -4
- data/lib/idlc-sdk-core/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1575237d9d73f8f88b5dad20e65340cbfa91812156a8b9bb1c3f700465d47d20
|
4
|
+
data.tar.gz: 593bf3e2ae6d841d3b45e30c21454a2586a453b8a21c1f6ee8064b3bd8186262
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 '
|
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
|
|
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.
|
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-
|
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.
|
185
|
+
rubygems_version: 2.7.7
|
186
186
|
signing_key:
|
187
187
|
specification_version: 4
|
188
188
|
summary: IDLC SDK for AWS resources - Core
|