mauth-client 6.4.1 → 6.4.2
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 +4 -4
- data/.rubocop.yml +1 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +3 -0
- data/lib/mauth/client.rb +1 -0
- data/lib/mauth/fake/rack.rb +1 -1
- data/lib/mauth/faraday.rb +1 -1
- data/lib/mauth/rack.rb +1 -1
- data/lib/mauth/server_helper.rb +13 -0
- data/lib/mauth/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c7571bca95de6f3bf3c4d83d071b87dde1d5ae431e232d47060850cee0c8245
|
4
|
+
data.tar.gz: 10e3f28b2eabf7faac7f76d3e3c19a5d406ac029f7d322cd7a335a84efb08600
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 126ddea6b0fc80822b36ad652ba292117ccc0439b845b90e2a3cdccfdcf89d934ec4d8188e17ab655124e7ee4337067b6a31daefa183017d1038027a4fc6a3fb
|
7
|
+
data.tar.gz: 45de4bcbcf9a58a400905826db273ae77b48a6dbaf15dbb2b875982fb72d767f00f55b9f85172b4754bc7e8056f7c582c86097aed01658c39e43a6049cf48c03
|
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.6
|
1
|
+
2.7.6
|
data/CHANGELOG.md
CHANGED
data/lib/mauth/client.rb
CHANGED
data/lib/mauth/fake/rack.rb
CHANGED
@@ -31,7 +31,7 @@ module MAuth
|
|
31
31
|
env['mauth.protocol_version'] = mauth_request.protocol_version
|
32
32
|
|
33
33
|
if self.class.is_authentic?
|
34
|
-
@app.call(env.merge!(
|
34
|
+
@app.call(env.merge!(MAuth::Client::RACK_ENV_APP_UUID_KEY => mauth_request.signature_app_uuid,
|
35
35
|
'mauth.authentic' => true))
|
36
36
|
else
|
37
37
|
response_for_inauthentic_request(env)
|
data/lib/mauth/faraday.rb
CHANGED
@@ -22,7 +22,7 @@ module MAuth
|
|
22
22
|
@app.call(request_env).on_complete do |response_env|
|
23
23
|
mauth_response = MAuth::Faraday::Response.new(response_env)
|
24
24
|
mauth_client.authenticate!(mauth_response) # raises MAuth::InauthenticError when inauthentic
|
25
|
-
response_env[
|
25
|
+
response_env[MAuth::Client::RACK_ENV_APP_UUID_KEY] = mauth_response.signature_app_uuid
|
26
26
|
response_env['mauth.authentic'] = true
|
27
27
|
response_env
|
28
28
|
end
|
data/lib/mauth/rack.rb
CHANGED
@@ -29,7 +29,7 @@ module MAuth
|
|
29
29
|
begin
|
30
30
|
if mauth_client.authentic?(mauth_request)
|
31
31
|
@app.call(env.merge!(
|
32
|
-
|
32
|
+
MAuth::Client::RACK_ENV_APP_UUID_KEY => mauth_request.signature_app_uuid,
|
33
33
|
'mauth.authentic' => true
|
34
34
|
))
|
35
35
|
else
|
data/lib/mauth/version.rb
CHANGED
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.
|
4
|
+
version: 6.4.2
|
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: 2022-
|
14
|
+
date: 2022-09-22 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: addressable
|
@@ -372,6 +372,7 @@ files:
|
|
372
372
|
- lib/mauth/proxy.rb
|
373
373
|
- lib/mauth/rack.rb
|
374
374
|
- lib/mauth/request_and_response.rb
|
375
|
+
- lib/mauth/server_helper.rb
|
375
376
|
- lib/mauth/version.rb
|
376
377
|
- lib/rack/mauth.rb
|
377
378
|
- mauth-client.gemspec
|
@@ -394,7 +395,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
394
395
|
- !ruby/object:Gem::Version
|
395
396
|
version: '0'
|
396
397
|
requirements: []
|
397
|
-
rubygems_version: 3.1.
|
398
|
+
rubygems_version: 3.1.6
|
398
399
|
signing_key:
|
399
400
|
specification_version: 4
|
400
401
|
summary: Sign and authenticate requests and responses with mAuth authentication.
|