mauth-client 4.0.3 → 4.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +10 -5
- data/CHANGELOG.md +3 -0
- data/CONTRIBUTING.md +2 -2
- data/README.md +1 -1
- data/doc/implementations.md +3 -1
- data/lib/mauth/proxy.rb +2 -2
- data/lib/mauth/version.rb +1 -1
- data/mauth-client.gemspec +1 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfde2c6e67fe8e386a2841a096e9e0d6e2e8259b
|
4
|
+
data.tar.gz: 975e40ebf4fadd4fc35c60f12afbd6ad97a25cbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50642c879eb014f6fa2696dbf5a5825216e983066b8c7336311b74e8c8625078880dcc8eb7459b6fe6a89714673536e36aef931a7ea89a801cf4c09da7b99e14
|
7
|
+
data.tar.gz: 3bd2c7e5f1552f64e4194c98844ab35d04efe7699c1734978500a6da005e17b193f7621560b6fb1cd9df9928fc605b70b9b813499a0abe3130554f4ab297ebc0
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -3,15 +3,20 @@ cache: bundler
|
|
3
3
|
sudo: false
|
4
4
|
|
5
5
|
rvm:
|
6
|
-
- 2.2.
|
7
|
-
- 2.3.
|
8
|
-
|
9
|
-
|
10
|
-
- MAUTH_CONFIG_YML=`pwd`/spec/config_root/config/mauth.yml
|
6
|
+
- 2.2.10
|
7
|
+
- 2.3.7
|
8
|
+
- 2.4.4
|
9
|
+
- 2.5.1
|
11
10
|
|
12
11
|
matrix:
|
13
12
|
include:
|
14
13
|
- rvm: 2.1.10
|
15
14
|
gemfile: gemfiles/ruby_2.1.gemfile
|
16
15
|
|
16
|
+
# https://github.com/travis-ci/travis-ci/issues/8978
|
17
|
+
before_install:
|
18
|
+
- gem update --system
|
19
|
+
- gem install bundler # https://github.com/travis-ci/travis-ci/issues/9383
|
20
|
+
- bundle --version
|
21
|
+
|
17
22
|
script: "bundle exec rspec"
|
data/CHANGELOG.md
CHANGED
data/CONTRIBUTING.md
CHANGED
@@ -13,8 +13,8 @@
|
|
13
13
|
|
14
14
|
To run tests, first run `bundle install`.
|
15
15
|
|
16
|
-
Next, run the tests
|
16
|
+
Next, run the tests:
|
17
17
|
|
18
18
|
```
|
19
|
-
|
19
|
+
bundle exec rspec
|
20
20
|
```
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# MAuth Client
|
2
|
-
[![Build Status](https://travis-ci.org/mdsol/mauth-client-ruby.svg)](https://travis-ci.org/mdsol/mauth-client-ruby)
|
2
|
+
[![Build Status](https://travis-ci.org/mdsol/mauth-client-ruby.svg?branch=master)](https://travis-ci.org/mdsol/mauth-client-ruby)
|
3
3
|
|
4
4
|
This gem consists of MAuth::Client, a class to manage the information needed to both sign and authenticate requests
|
5
5
|
and responses, and middlewares for Rack and Faraday which leverage the client's capabilities.
|
data/doc/implementations.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# MAuth-Client implementations
|
2
2
|
|
3
3
|
- .Net: [mauth-client-dotnet](https://github.com/mdsol/mauth-client-dotnet)
|
4
|
-
- Go
|
4
|
+
- Go: [go-mauth-client](https://github.com/mdsol/go-mauth-client)
|
5
|
+
- Java: [mauth-java-client](https://github.com/mdsol/mauth-java-client)
|
6
|
+
- Python: [flask-mauth](https://github.com/mdsol/flask-mauth)
|
5
7
|
- R: [RMauthClient](https://github.com/mdsol/RMauthClient)
|
6
8
|
- Ruby: [mauth-client-ruby](https://github.com/mdsol/mauth-client-ruby)
|
data/lib/mauth/proxy.rb
CHANGED
@@ -55,8 +55,8 @@ module MAuth
|
|
55
55
|
request_env['rack.input'].rewind
|
56
56
|
request_headers = {}
|
57
57
|
request_env.each do |k, v|
|
58
|
-
if k.start_with?('HTTP_') &&
|
59
|
-
name =
|
58
|
+
if k.start_with?('HTTP_') && k != 'HTTP_HOST'
|
59
|
+
name = k.sub(/\AHTTP_/, '')
|
60
60
|
request_headers[name] = v
|
61
61
|
end
|
62
62
|
end
|
data/lib/mauth/version.rb
CHANGED
data/mauth-client.gemspec
CHANGED
@@ -26,6 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_dependency 'dice_bag', '>= 0.9', '< 2.0'
|
27
27
|
|
28
28
|
spec.add_development_dependency 'bundler', '~> 1.10'
|
29
|
+
spec.add_development_dependency 'byebug'
|
29
30
|
spec.add_development_dependency 'kender', '~> 0.4'
|
30
31
|
spec.add_development_dependency 'rack-test', '~> 0.6.3'
|
31
32
|
spec.add_development_dependency 'rake', '~> 10.0'
|
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: 4.0.
|
4
|
+
version: 4.0.4
|
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:
|
14
|
+
date: 2018-09-11 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: faraday
|
@@ -117,6 +117,20 @@ dependencies:
|
|
117
117
|
- - "~>"
|
118
118
|
- !ruby/object:Gem::Version
|
119
119
|
version: '1.10'
|
120
|
+
- !ruby/object:Gem::Dependency
|
121
|
+
name: byebug
|
122
|
+
requirement: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
127
|
+
type: :development
|
128
|
+
prerelease: false
|
129
|
+
version_requirements: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - ">="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
120
134
|
- !ruby/object:Gem::Dependency
|
121
135
|
name: kender
|
122
136
|
requirement: !ruby/object:Gem::Requirement
|
@@ -285,7 +299,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
285
299
|
version: '0'
|
286
300
|
requirements: []
|
287
301
|
rubyforge_project:
|
288
|
-
rubygems_version: 2.6.
|
302
|
+
rubygems_version: 2.6.14
|
289
303
|
signing_key:
|
290
304
|
specification_version: 4
|
291
305
|
summary: Sign and authenticate requests and responses with mAuth authentication.
|