oauthenticator 1.3.4 → 1.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a591e40c3a295663f039044e44b38919723dafc1
4
- data.tar.gz: b29b60df60ca8bb3dc36975c9d28bdfc5180b78f
2
+ SHA256:
3
+ metadata.gz: 16ab24b09d173ed8caca336faa49d9cc263513b5a1b918f656985dff431caa61
4
+ data.tar.gz: d3439a11045ed50fb9c72ccb85d137c72ea04b04189d58729b24ca365744937f
5
5
  SHA512:
6
- metadata.gz: c9f8c4647b7a1eaa6fa6c5e0355e11f70e76e4dd7a0f0f23ef918bf4f2056b37b859e6f142ac1df0dab3d61330c8f7fbe98d16f59e5f598157ee417bb16194d8
7
- data.tar.gz: 1ba552bdcc18a70866f8dac44a373c42d774486f7571ab5f2e3bf3832b57b32f956f599bfda5c03a35eee757f1c38eb5432dddb92226c4e9982a90d6d1663007
6
+ metadata.gz: bd14158bfbc8c6ff4f998226ae110d5d3c9d251fb011968dd5ddc7d3fd1d131450e5dce683e1590728218527ea2a9f31e82b17f81b674eb4ea391a4d68d0bdb0
7
+ data.tar.gz: 82aef9ae6b004bcd95b5cf6a96c198089195022b3a131ec1346a62a2c18d3db1b6b2eae54af4ba41e665ef57677dc72bed6a9f886615fdeb53e7351e0a697918
@@ -1,3 +1,7 @@
1
+ # 1.3.5
2
+
3
+ - relax faraday and rack gem dependency constraints
4
+
1
5
  # 1.3.4
2
6
 
3
7
  - relax json gem dependency constraint
data/README.md CHANGED
@@ -48,7 +48,10 @@ connection.get '/path'
48
48
  ```
49
49
 
50
50
  Note that `:url_encoded` is only included to illustrate that other middleware should all go before
51
- `:oauthenticator_signer`; the use of `:url_encoded` is not related to OAuthenticator.
51
+ `:oauthenticator_signer`; the use of `:url_encoded` is not related to OAuthenticator.
52
+
53
+ Note that for the RSA-SHA1 signature method, the token secret is the contents of the RSA certificate
54
+ used for signing the requests.
52
55
 
53
56
  ### Any other HTTP library
54
57
 
@@ -30,7 +30,7 @@ module OAuthenticator
30
30
  class FaradaySigner
31
31
  # options are passed to {OAuthenticator::SignableRequest}.
32
32
  #
33
- # attributes of the request are added by the middleware, so you should not provide those as optiosn
33
+ # attributes of the request are added by the middleware, so you should not provide those as options
34
34
  # (it would not make sense to do so on the connection level).
35
35
  #
36
36
  # These are the options you should or may provide (see {OAuthenticator::SignableRequest} for details of
@@ -33,7 +33,7 @@ module OAuthenticator
33
33
  header = header.to_s
34
34
  scanner = StringScanner.new(header)
35
35
  auth_parse_error = proc { |message| raise ParseError.new(message, {'Authorization' => [message]}) }
36
- scanner.scan(/OAuth\s*/i) || auth_parse_error.call("Authorization scheme is not OAuth - recieved: #{header}")
36
+ scanner.scan(/OAuth\s*/i) || auth_parse_error.call("Authorization scheme is not OAuth - received: #{header}")
37
37
  attributes = {}
38
38
  while scanner.scan(/(\w+)="([^"]*)"\s*(,?)\s*/)
39
39
  key = scanner[1]
@@ -25,8 +25,8 @@ module OAuthenticator
25
25
  #
26
26
  # - `:realm` - 401 responses include a `WWW-Authenticate` with the realm set to the given value. default
27
27
  # is an empty string.
28
- def initialize(app, options={})
29
- @app=app
28
+ def initialize(app, options = {})
29
+ @app = app
30
30
  @options = options
31
31
  unless @options[:config_methods].is_a?(Module)
32
32
  raise ArgumentError, "options[:config_methods] must be a Module"
@@ -1,5 +1,5 @@
1
1
  # OAuthenticator
2
2
  module OAuthenticator
3
3
  # OAuthenticator::VERSION
4
- VERSION = "1.3.4"
4
+ VERSION = "1.3.5"
5
5
  end
@@ -87,7 +87,7 @@ describe OAuthenticator::SignableRequest do
87
87
  end
88
88
  it 'does not generate timestamp' do
89
89
  request = example_request(:signature_method => 'PLAINTEXT')
90
- assert(!request.protocol_params.key?('oauth_timestapm'))
90
+ assert(!request.protocol_params.key?('oauth_timestamp'))
91
91
  end
92
92
  end
93
93
  end
@@ -329,6 +329,7 @@ describe OAuthenticator::SignableRequest do
329
329
 
330
330
  it 'excludes query and fragment' do
331
331
  assert_equal('http://example.com/FooBar', example_request(:uri => 'http://example.com/FooBar?foo=bar#foobar').send(:base_string_uri))
332
+ assert_equal('http://example.com/FooBar', example_request(:uri => 'http://example.com/FooBar#foobar').send(:base_string_uri))
332
333
  end
333
334
  end
334
335
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oauthenticator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-23 00:00:00.000000000 Z
11
+ date: 2020-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '1.4'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '2.1'
22
+ version: '3.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '1.4'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '2.1'
32
+ version: '3.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: json
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -48,16 +48,22 @@ dependencies:
48
48
  name: faraday
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0.9'
54
+ - - "<"
55
+ - !ruby/object:Gem::Version
56
+ version: '2.0'
54
57
  type: :runtime
55
58
  prerelease: false
56
59
  version_requirements: !ruby/object:Gem::Requirement
57
60
  requirements:
58
- - - "~>"
61
+ - - ">="
59
62
  - !ruby/object:Gem::Version
60
63
  version: '0.9'
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: '2.0'
61
67
  - !ruby/object:Gem::Dependency
62
68
  name: addressable
63
69
  requirement: !ruby/object:Gem::Requirement
@@ -234,8 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
234
240
  - !ruby/object:Gem::Version
235
241
  version: '0'
236
242
  requirements: []
237
- rubyforge_project:
238
- rubygems_version: 2.6.11
243
+ rubygems_version: 3.0.6
239
244
  signing_key:
240
245
  specification_version: 4
241
246
  summary: OAuth 1.0 request signing and authentication