mauth-client 6.2.1 → 6.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +12 -6
- data/CHANGELOG.md +8 -4
- data/examples/Gemfile.lock +30 -9
- data/lib/mauth/client/local_authenticator.rb +1 -1
- data/lib/mauth/client/signer.rb +1 -1
- data/lib/mauth/request_and_response.rb +2 -2
- data/lib/mauth/version.rb +1 -1
- data/mauth-client.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d26cf42f3bc98d5ce98981ee710c52d2b87a9360b6ae54391288182c95fa09a
|
4
|
+
data.tar.gz: 03c4a9d0e96187d57232d5a1923935ad5db9c190a891fda410595010bbf1d946
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58751eb9040426589a0274390307abfc518c1465372c6b26329debb25a12c06fb63e96fccd4093fd45e90bd24fefd6c64966160b6520513515cd5dc9ac96f804
|
7
|
+
data.tar.gz: 0febdd455262d240d5f456acc00785d8a0941627ca352ffa559526ddadbaab726213b87e24eaa8f576c430b0a856725224ed48909cdc64cf9ce6b3a77b8c4acf
|
data/.travis.yml
CHANGED
@@ -1,12 +1,17 @@
|
|
1
|
+
dist: focal
|
1
2
|
language: ruby
|
2
3
|
cache: bundler
|
3
4
|
|
4
5
|
rvm:
|
5
|
-
- 2.3
|
6
|
-
- 2.4
|
7
6
|
- 2.5
|
8
7
|
- 2.6
|
9
8
|
- 2.7
|
9
|
+
- 3.0
|
10
|
+
|
11
|
+
jobs:
|
12
|
+
exclude:
|
13
|
+
- rvm: 3.0
|
14
|
+
gemfile: gemfiles/faraday_0.x.gemfile # Faraday v0.x does not officially support Ruby 3.0 (see: https://github.com/lostisland/faraday/releases/tag/v1.3.0)
|
10
15
|
|
11
16
|
gemfile:
|
12
17
|
- gemfiles/faraday_0.x.gemfile
|
@@ -14,20 +19,21 @@ gemfile:
|
|
14
19
|
|
15
20
|
before_install:
|
16
21
|
- gem update --system --force -N > /dev/null && echo "Rubygems version $(gem --version)"
|
17
|
-
- gem install bundler --force -N
|
22
|
+
- gem install bundler --force -N && bundle --version
|
18
23
|
|
19
24
|
install:
|
20
25
|
- bundle install --jobs=3 --retry=3
|
21
26
|
- >-
|
22
27
|
curl -H 'Cache-Control: no-cache'
|
23
|
-
https://raw.githubusercontent.com/mdsol/fossa_ci_scripts/
|
28
|
+
https://raw.githubusercontent.com/mdsol/fossa_ci_scripts/main/travis_ci/fossa_install.sh |
|
24
29
|
bash -s -- -b $TRAVIS_BUILD_DIR
|
25
30
|
|
26
31
|
script:
|
27
32
|
- bundle exec rspec
|
33
|
+
- bundle exec rake benchmark
|
28
34
|
- >-
|
29
35
|
curl -H 'Cache-Control: no-cache'
|
30
|
-
https://raw.githubusercontent.com/mdsol/fossa_ci_scripts/
|
36
|
+
https://raw.githubusercontent.com/mdsol/fossa_ci_scripts/main/travis_ci/fossa_run.sh |
|
31
37
|
bash -s -- -b $TRAVIS_BUILD_DIR
|
32
38
|
|
33
39
|
deploy:
|
@@ -38,4 +44,4 @@ deploy:
|
|
38
44
|
on:
|
39
45
|
tags: true
|
40
46
|
repo: mdsol/mauth-client-ruby
|
41
|
-
condition: $TRAVIS_RUBY_VERSION ==
|
47
|
+
condition: $TRAVIS_RUBY_VERSION == 3.0 && $BUNDLE_GEMFILE == $TRAVIS_BUILD_DIR/gemfiles/faraday_1.x.gemfile
|
data/CHANGELOG.md
CHANGED
@@ -1,14 +1,18 @@
|
|
1
|
+
## v6.3.0
|
2
|
+
- Support Ruby 3.0.
|
3
|
+
- Drop support for Ruby < 2.5.0.
|
4
|
+
|
1
5
|
## v6.2.1
|
2
|
-
|
6
|
+
- Fix SecurityTokenCacher to not cache tokens forever.
|
3
7
|
|
4
8
|
## v6.2.0
|
5
|
-
|
9
|
+
- Drop legacy security token expiry in favor of honoring server cache headers via Faraday HTTP Cache Middleware.
|
6
10
|
|
7
11
|
## v6.1.1
|
8
|
-
|
12
|
+
- Replace `URI.escape` with `CGI.escape` in SecurityTokenCacher to suppress "URI.escape is obsolete" warning.
|
9
13
|
|
10
14
|
## v6.1.0
|
11
|
-
|
15
|
+
- Allow Faraday 1.x.
|
12
16
|
|
13
17
|
## v6.0.0
|
14
18
|
- Added parsing code to test with mauth-protocol-test-suite.
|
data/examples/Gemfile.lock
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
mauth-client (6.
|
4
|
+
mauth-client (6.3.0)
|
5
5
|
addressable (~> 2.0)
|
6
6
|
coderay (~> 1.0)
|
7
7
|
dice_bag (>= 0.9, < 2.0)
|
8
8
|
faraday (>= 0.9, < 2.0)
|
9
|
+
faraday-http-cache (>= 2.0, < 3.0)
|
9
10
|
faraday_middleware (>= 0.9, < 2.0)
|
10
11
|
rack
|
11
12
|
term-ansicolor (~> 1.0)
|
@@ -13,27 +14,47 @@ PATH
|
|
13
14
|
GEM
|
14
15
|
remote: https://rubygems.org/
|
15
16
|
specs:
|
16
|
-
addressable (2.
|
17
|
+
addressable (2.8.0)
|
17
18
|
public_suffix (>= 2.0.2, < 5.0)
|
18
19
|
coderay (1.1.3)
|
19
|
-
dice_bag (1.
|
20
|
+
dice_bag (1.6.0)
|
20
21
|
diff-lcs (~> 1.0)
|
21
22
|
rake
|
22
23
|
thor (< 2.0)
|
23
24
|
diff-lcs (1.4.4)
|
24
|
-
faraday (1.0
|
25
|
+
faraday (1.8.0)
|
26
|
+
faraday-em_http (~> 1.0)
|
27
|
+
faraday-em_synchrony (~> 1.0)
|
28
|
+
faraday-excon (~> 1.1)
|
29
|
+
faraday-httpclient (~> 1.0.1)
|
30
|
+
faraday-net_http (~> 1.0)
|
31
|
+
faraday-net_http_persistent (~> 1.1)
|
32
|
+
faraday-patron (~> 1.0)
|
33
|
+
faraday-rack (~> 1.0)
|
25
34
|
multipart-post (>= 1.2, < 3)
|
26
|
-
|
35
|
+
ruby2_keywords (>= 0.0.4)
|
36
|
+
faraday-em_http (1.0.0)
|
37
|
+
faraday-em_synchrony (1.0.0)
|
38
|
+
faraday-excon (1.1.0)
|
39
|
+
faraday-http-cache (2.2.0)
|
40
|
+
faraday (>= 0.8)
|
41
|
+
faraday-httpclient (1.0.1)
|
42
|
+
faraday-net_http (1.0.1)
|
43
|
+
faraday-net_http_persistent (1.2.0)
|
44
|
+
faraday-patron (1.0.0)
|
45
|
+
faraday-rack (1.0.0)
|
46
|
+
faraday_middleware (1.2.0)
|
27
47
|
faraday (~> 1.0)
|
28
48
|
multipart-post (2.1.1)
|
29
49
|
public_suffix (4.0.6)
|
30
50
|
rack (2.2.3)
|
31
|
-
rake (13.0.
|
51
|
+
rake (13.0.6)
|
52
|
+
ruby2_keywords (0.0.5)
|
32
53
|
sync (0.5.0)
|
33
54
|
term-ansicolor (1.7.1)
|
34
55
|
tins (~> 1.0)
|
35
|
-
thor (1.0
|
36
|
-
tins (1.
|
56
|
+
thor (1.1.0)
|
57
|
+
tins (1.29.1)
|
37
58
|
sync
|
38
59
|
|
39
60
|
PLATFORMS
|
@@ -44,4 +65,4 @@ DEPENDENCIES
|
|
44
65
|
mauth-client!
|
45
66
|
|
46
67
|
BUNDLED WITH
|
47
|
-
2.
|
68
|
+
2.2.29
|
data/lib/mauth/client/signer.rb
CHANGED
@@ -56,7 +56,7 @@ module MAuth
|
|
56
56
|
|
57
57
|
def signature_v1(string_to_sign)
|
58
58
|
assert_private_key(UNABLE_TO_SIGN_ERR)
|
59
|
-
hashed_string_to_sign = Digest::SHA512.hexdigest(string_to_sign)
|
59
|
+
hashed_string_to_sign = OpenSSL::Digest::SHA512.hexdigest(string_to_sign)
|
60
60
|
Base64.encode64(private_key.private_encrypt(hashed_string_to_sign)).delete("\n")
|
61
61
|
end
|
62
62
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'openssl'
|
2
2
|
require 'addressable'
|
3
3
|
|
4
4
|
module MAuth
|
@@ -61,7 +61,7 @@ module MAuth
|
|
61
61
|
# memoization of body_digest to avoid hashing three times when we call
|
62
62
|
# string_to_sign_v2 three times in client#signature_valid_v2!
|
63
63
|
# note that if :body is nil we hash an empty string ('')
|
64
|
-
attrs_with_overrides[:body_digest] ||= Digest::SHA512.hexdigest(attrs_with_overrides[:body] || '')
|
64
|
+
attrs_with_overrides[:body_digest] ||= OpenSSL::Digest::SHA512.hexdigest(attrs_with_overrides[:body] || '')
|
65
65
|
attrs_with_overrides[:encoded_query_params] = unescape_encode_query_string(attrs_with_overrides[:query_string] || '')
|
66
66
|
attrs_with_overrides[:request_url] = normalize_path(attrs_with_overrides[:request_url])
|
67
67
|
|
data/lib/mauth/version.rb
CHANGED
data/mauth-client.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.description = 'Client for signing and authentication of requests and responses with mAuth authentication. Includes middleware for Rack and Faraday for incoming and outgoing requests and responses.'
|
12
12
|
spec.homepage = 'https://github.com/mdsol/mauth-client-ruby'
|
13
13
|
spec.license = 'MIT'
|
14
|
-
spec.required_ruby_version = '>= 2.
|
14
|
+
spec.required_ruby_version = '>= 2.5.0'
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
17
|
spec.bindir = 'exe'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mauth-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Szenher
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: exe
|
13
13
|
cert_chain: []
|
14
|
-
date: 2021-
|
14
|
+
date: 2021-10-20 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: faraday
|
@@ -362,14 +362,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
362
362
|
requirements:
|
363
363
|
- - ">="
|
364
364
|
- !ruby/object:Gem::Version
|
365
|
-
version: 2.
|
365
|
+
version: 2.5.0
|
366
366
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
367
367
|
requirements:
|
368
368
|
- - ">="
|
369
369
|
- !ruby/object:Gem::Version
|
370
370
|
version: '0'
|
371
371
|
requirements: []
|
372
|
-
rubygems_version: 3.
|
372
|
+
rubygems_version: 3.1.2
|
373
373
|
signing_key:
|
374
374
|
specification_version: 4
|
375
375
|
summary: Sign and authenticate requests and responses with mAuth authentication.
|