mixlib-authentication 3.0.7 → 3.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac1a3385da424178633636f21d00020703e56ef7720521b964eb64480ee8242b
|
4
|
+
data.tar.gz: bae34c40662e2ac3c8cc80891d5c7ab8e765cb3da91bd8bfe09c4f3af883e029
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51b94f8b9c0598a33a51fe0ac747e6af49910448c4236be28d563800998e0b63b7334d453682b881bc54951bd7d1ee44beb8923e6658eb0aebe88993c6ee4e84
|
7
|
+
data.tar.gz: 26996121e0c805b7fc65d1466825157299bad9387d8cf76516b1152ef6c09578348492c6f5731a40dade560cc41daf437eadf576ac628c2270268baaa8bae4c9
|
@@ -17,7 +17,7 @@
|
|
17
17
|
# limitations under the License.
|
18
18
|
#
|
19
19
|
|
20
|
-
require "time" unless defined?(Time)
|
20
|
+
require "time" unless defined?(Time.zone_offset)
|
21
21
|
require "base64" unless defined?(Base64)
|
22
22
|
require "openssl/digest"
|
23
23
|
require_relative "../authentication"
|
@@ -127,7 +127,7 @@ module Mixlib
|
|
127
127
|
}
|
128
128
|
|
129
129
|
signature = Base64.encode64(do_sign(rsa_key, digest, sign_algorithm, sign_version, use_ssh_agent)).chomp
|
130
|
-
signature_lines = signature.split(
|
130
|
+
signature_lines = signature.split("\n")
|
131
131
|
signature_lines.each_index do |idx|
|
132
132
|
key = "X-Ops-Authorization-#{idx + 1}"
|
133
133
|
header_hash[key] = signature_lines[idx]
|
@@ -196,7 +196,7 @@ module Mixlib
|
|
196
196
|
# TODO: tim 2009-12-28: It'd be nice to just remove this special case,
|
197
197
|
# always sign the entire request body, using the expanded multipart
|
198
198
|
# body in the case of a file being include.
|
199
|
-
@hashed_body ||= if file
|
199
|
+
@hashed_body ||= if file&.respond_to?(:read)
|
200
200
|
digester.hash_file(file, digest)
|
201
201
|
else
|
202
202
|
digester.hash_string(body, digest)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mixlib-authentication
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chef Software, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Mixes in simple per-request authentication
|
14
14
|
email: info@chef.io
|
@@ -43,7 +43,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
43
43
|
- !ruby/object:Gem::Version
|
44
44
|
version: '0'
|
45
45
|
requirements: []
|
46
|
-
rubygems_version: 3.
|
46
|
+
rubygems_version: 3.1.4
|
47
47
|
signing_key:
|
48
48
|
specification_version: 4
|
49
49
|
summary: Mixes in simple per-request authentication
|