oauth2 1.4.1 → 1.4.6

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.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +8 -0
  3. data/.github/workflows/style.yml +37 -0
  4. data/.github/workflows/test.yml +58 -0
  5. data/.gitignore +7 -0
  6. data/.rspec +2 -0
  7. data/.rubocop.yml +41 -9
  8. data/.rubocop_todo.yml +108 -10
  9. data/.ruby-version +1 -0
  10. data/.travis.yml +47 -21
  11. data/CHANGELOG.md +37 -10
  12. data/CODE_OF_CONDUCT.md +105 -46
  13. data/Gemfile +36 -16
  14. data/README.md +45 -14
  15. data/Rakefile +1 -1
  16. data/gemfiles/jruby_1.7.gemfile +6 -6
  17. data/gemfiles/jruby_9.0.gemfile +2 -8
  18. data/gemfiles/jruby_9.1.gemfile +0 -14
  19. data/gemfiles/jruby_9.2.gemfile +0 -14
  20. data/gemfiles/jruby_head.gemfile +0 -14
  21. data/gemfiles/ruby_1.9.gemfile +2 -7
  22. data/gemfiles/ruby_2.0.gemfile +1 -12
  23. data/gemfiles/ruby_head.gemfile +2 -10
  24. data/gemfiles/truffleruby.gemfile +3 -0
  25. data/lib/oauth2/access_token.rb +14 -4
  26. data/lib/oauth2/authenticator.rb +10 -0
  27. data/lib/oauth2/client.rb +63 -16
  28. data/lib/oauth2/mac_token.rb +10 -2
  29. data/lib/oauth2/response.rb +5 -3
  30. data/lib/oauth2/strategy/assertion.rb +3 -3
  31. data/lib/oauth2/strategy/password.rb +2 -2
  32. data/lib/oauth2/version.rb +8 -6
  33. data/maintenance-branch +1 -0
  34. data/oauth2.gemspec +15 -3
  35. metadata +78 -28
  36. data/gemfiles/jruby_1.7.gemfile.lock +0 -81
  37. data/gemfiles/jruby_9.1.gemfile.lock +0 -112
  38. data/gemfiles/jruby_9.2.gemfile.lock +0 -112
  39. data/gemfiles/ruby_1.9.gemfile.lock +0 -85
  40. data/gemfiles/ruby_2.0.gemfile.lock +0 -90
  41. data/gemfiles/ruby_2.1.gemfile +0 -19
  42. data/gemfiles/ruby_2.1.gemfile.lock +0 -109
  43. data/gemfiles/ruby_2.2.gemfile +0 -17
  44. data/gemfiles/ruby_2.2.gemfile.lock +0 -108
  45. data/gemfiles/ruby_2.3.gemfile +0 -17
  46. data/gemfiles/ruby_2.3.gemfile.lock +0 -108
  47. data/gemfiles/ruby_2.4.gemfile +0 -17
  48. data/gemfiles/ruby_2.4.gemfile.lock +0 -108
  49. data/gemfiles/ruby_2.5.gemfile +0 -17
  50. data/gemfiles/ruby_2.5.gemfile.lock +0 -108
  51. data/gemfiles/ruby_head.gemfile.lock +0 -108
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling
8
8
  - Michael Bleigh
9
9
  - Erik Michaels-Ober
10
- autorequire:
10
+ autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2018-10-13 00:00:00.000000000 Z
13
+ date: 2021-03-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0.8'
22
22
  - - "<"
23
23
  - !ruby/object:Gem::Version
24
- version: 0.16.0
24
+ version: '2.0'
25
25
  type: :runtime
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
@@ -31,7 +31,7 @@ dependencies:
31
31
  version: '0.8'
32
32
  - - "<"
33
33
  - !ruby/object:Gem::Version
34
- version: 0.16.0
34
+ version: '2.0'
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: jwt
37
37
  requirement: !ruby/object:Gem::Requirement
@@ -132,14 +132,14 @@ dependencies:
132
132
  name: bundler
133
133
  requirement: !ruby/object:Gem::Requirement
134
134
  requirements:
135
- - - "~>"
135
+ - - ">="
136
136
  - !ruby/object:Gem::Version
137
137
  version: '1.16'
138
138
  type: :development
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
- - - "~>"
142
+ - - ">="
143
143
  - !ruby/object:Gem::Version
144
144
  version: '1.16'
145
145
  - !ruby/object:Gem::Dependency
@@ -204,6 +204,62 @@ dependencies:
204
204
  - - "~>"
205
205
  - !ruby/object:Gem::Version
206
206
  version: '3.0'
207
+ - !ruby/object:Gem::Dependency
208
+ name: rspec-block_is_expected
209
+ requirement: !ruby/object:Gem::Requirement
210
+ requirements:
211
+ - - ">="
212
+ - !ruby/object:Gem::Version
213
+ version: '0'
214
+ type: :development
215
+ prerelease: false
216
+ version_requirements: !ruby/object:Gem::Requirement
217
+ requirements:
218
+ - - ">="
219
+ - !ruby/object:Gem::Version
220
+ version: '0'
221
+ - !ruby/object:Gem::Dependency
222
+ name: rspec-pending_for
223
+ requirement: !ruby/object:Gem::Requirement
224
+ requirements:
225
+ - - ">="
226
+ - !ruby/object:Gem::Version
227
+ version: '0'
228
+ type: :development
229
+ prerelease: false
230
+ version_requirements: !ruby/object:Gem::Requirement
231
+ requirements:
232
+ - - ">="
233
+ - !ruby/object:Gem::Version
234
+ version: '0'
235
+ - !ruby/object:Gem::Dependency
236
+ name: rspec-stubbed_env
237
+ requirement: !ruby/object:Gem::Requirement
238
+ requirements:
239
+ - - ">="
240
+ - !ruby/object:Gem::Version
241
+ version: '0'
242
+ type: :development
243
+ prerelease: false
244
+ version_requirements: !ruby/object:Gem::Requirement
245
+ requirements:
246
+ - - ">="
247
+ - !ruby/object:Gem::Version
248
+ version: '0'
249
+ - !ruby/object:Gem::Dependency
250
+ name: silent_stream
251
+ requirement: !ruby/object:Gem::Requirement
252
+ requirements:
253
+ - - ">="
254
+ - !ruby/object:Gem::Version
255
+ version: '0'
256
+ type: :development
257
+ prerelease: false
258
+ version_requirements: !ruby/object:Gem::Requirement
259
+ requirements:
260
+ - - ">="
261
+ - !ruby/object:Gem::Version
262
+ version: '0'
207
263
  - !ruby/object:Gem::Dependency
208
264
  name: wwtd
209
265
  requirement: !ruby/object:Gem::Requirement
@@ -227,12 +283,16 @@ extensions: []
227
283
  extra_rdoc_files: []
228
284
  files:
229
285
  - ".document"
286
+ - ".github/dependabot.yml"
287
+ - ".github/workflows/style.yml"
288
+ - ".github/workflows/test.yml"
230
289
  - ".gitignore"
231
290
  - ".jrubyrc"
232
291
  - ".rspec"
233
292
  - ".rubocop.yml"
234
293
  - ".rubocop_rspec.yml"
235
294
  - ".rubocop_todo.yml"
295
+ - ".ruby-version"
236
296
  - ".travis.yml"
237
297
  - CHANGELOG.md
238
298
  - CODE_OF_CONDUCT.md
@@ -242,29 +302,14 @@ files:
242
302
  - README.md
243
303
  - Rakefile
244
304
  - gemfiles/jruby_1.7.gemfile
245
- - gemfiles/jruby_1.7.gemfile.lock
246
305
  - gemfiles/jruby_9.0.gemfile
247
306
  - gemfiles/jruby_9.1.gemfile
248
- - gemfiles/jruby_9.1.gemfile.lock
249
307
  - gemfiles/jruby_9.2.gemfile
250
- - gemfiles/jruby_9.2.gemfile.lock
251
308
  - gemfiles/jruby_head.gemfile
252
309
  - gemfiles/ruby_1.9.gemfile
253
- - gemfiles/ruby_1.9.gemfile.lock
254
310
  - gemfiles/ruby_2.0.gemfile
255
- - gemfiles/ruby_2.0.gemfile.lock
256
- - gemfiles/ruby_2.1.gemfile
257
- - gemfiles/ruby_2.1.gemfile.lock
258
- - gemfiles/ruby_2.2.gemfile
259
- - gemfiles/ruby_2.2.gemfile.lock
260
- - gemfiles/ruby_2.3.gemfile
261
- - gemfiles/ruby_2.3.gemfile.lock
262
- - gemfiles/ruby_2.4.gemfile
263
- - gemfiles/ruby_2.4.gemfile.lock
264
- - gemfiles/ruby_2.5.gemfile
265
- - gemfiles/ruby_2.5.gemfile.lock
266
311
  - gemfiles/ruby_head.gemfile
267
- - gemfiles/ruby_head.gemfile.lock
312
+ - gemfiles/truffleruby.gemfile
268
313
  - lib/oauth2.rb
269
314
  - lib/oauth2/access_token.rb
270
315
  - lib/oauth2/authenticator.rb
@@ -279,12 +324,18 @@ files:
279
324
  - lib/oauth2/strategy/implicit.rb
280
325
  - lib/oauth2/strategy/password.rb
281
326
  - lib/oauth2/version.rb
327
+ - maintenance-branch
282
328
  - oauth2.gemspec
283
329
  homepage: https://github.com/oauth-xx/oauth2
284
330
  licenses:
285
331
  - MIT
286
- metadata: {}
287
- post_install_message:
332
+ metadata:
333
+ bug_tracker_uri: https://github.com/oauth-xx/oauth2/issues
334
+ changelog_uri: https://github.com/oauth-xx/oauth2/blob/v1.4.6/CHANGELOG.md
335
+ documentation_uri: https://www.rubydoc.info/gems/oauth2/1.4.6
336
+ source_code_uri: https://github.com/oauth-xx/oauth2/tree/v1.4.6
337
+ wiki_uri: https://github.com/oauth-xx/oauth2/wiki
338
+ post_install_message:
288
339
  rdoc_options: []
289
340
  require_paths:
290
341
  - lib
@@ -299,9 +350,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
299
350
  - !ruby/object:Gem::Version
300
351
  version: 1.3.5
301
352
  requirements: []
302
- rubyforge_project:
303
- rubygems_version: 2.7.7
304
- signing_key:
353
+ rubygems_version: 3.2.9
354
+ signing_key:
305
355
  specification_version: 4
306
356
  summary: A Ruby wrapper for the OAuth 2.0 protocol.
307
357
  test_files: []
@@ -1,81 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- oauth2 (1.4.0)
5
- faraday (>= 0.8, < 0.16.0)
6
- jwt (>= 1.0, < 3.0)
7
- multi_json (~> 1.3)
8
- multi_xml (~> 0.5)
9
- rack (>= 1.2, < 3)
10
-
11
- GEM
12
- remote: https://rubygems.org/
13
- specs:
14
- addressable (2.4.0)
15
- backports (3.11.4)
16
- coveralls (0.8.22)
17
- json (>= 1.8, < 3)
18
- simplecov (~> 0.16.1)
19
- term-ansicolor (~> 1.3)
20
- thor (~> 0.19.4)
21
- tins (~> 1.6)
22
- diff-lcs (1.3)
23
- docile (1.3.1)
24
- faraday (0.9.2)
25
- multipart-post (>= 1.2, < 3)
26
- json (2.1.0-java)
27
- jwt (1.5.6)
28
- multi_json (1.13.1)
29
- multi_xml (0.6.0)
30
- multipart-post (2.0.0)
31
- rack (1.6.10)
32
- rake (12.2.1)
33
- rdoc (5.1.0)
34
- rspec (3.8.0)
35
- rspec-core (~> 3.8.0)
36
- rspec-expectations (~> 3.8.0)
37
- rspec-mocks (~> 3.8.0)
38
- rspec-core (3.8.0)
39
- rspec-support (~> 3.8.0)
40
- rspec-expectations (3.8.2)
41
- diff-lcs (>= 1.2.0, < 2.0)
42
- rspec-support (~> 3.8.0)
43
- rspec-mocks (3.8.0)
44
- diff-lcs (>= 1.2.0, < 2.0)
45
- rspec-support (~> 3.8.0)
46
- rspec-pending_for (0.1.13)
47
- rspec-core
48
- ruby_engine (~> 1.0)
49
- ruby_version (~> 1.0)
50
- rspec-support (3.8.0)
51
- ruby_engine (1.0.1)
52
- ruby_version (1.0.1)
53
- simplecov (0.16.1)
54
- docile (~> 1.1)
55
- json (>= 1.8, < 3)
56
- simplecov-html (~> 0.10.0)
57
- simplecov-html (0.10.2)
58
- term-ansicolor (1.3.2)
59
- tins (~> 1.0)
60
- thor (0.19.4)
61
- tins (1.6.0)
62
- wwtd (1.3.0)
63
-
64
- PLATFORMS
65
- java
66
-
67
- DEPENDENCIES
68
- addressable (~> 2.3)
69
- backports (~> 3.11)
70
- bundler (~> 1.16)
71
- coveralls (~> 0.8)
72
- faraday (= 0.9.2)
73
- oauth2!
74
- rake
75
- rdoc (>= 5.0, < 7)
76
- rspec
77
- rspec-pending_for
78
- wwtd
79
-
80
- BUNDLED WITH
81
- 1.16.6
@@ -1,112 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- oauth2 (1.4.0)
5
- faraday (>= 0.8, < 0.16.0)
6
- jwt (>= 1.0, < 3.0)
7
- multi_json (~> 1.3)
8
- multi_xml (~> 0.5)
9
- rack (>= 1.2, < 3)
10
-
11
- GEM
12
- remote: https://rubygems.org/
13
- specs:
14
- addressable (2.5.2)
15
- public_suffix (>= 2.0.2, < 4.0)
16
- ast (2.4.0)
17
- backports (3.11.4)
18
- coderay (1.1.2)
19
- coveralls (0.8.22)
20
- json (>= 1.8, < 3)
21
- simplecov (~> 0.16.1)
22
- term-ansicolor (~> 1.3)
23
- thor (~> 0.19.4)
24
- tins (~> 1.6)
25
- diff-lcs (1.3)
26
- docile (1.3.1)
27
- faraday (0.9.2)
28
- multipart-post (>= 1.2, < 3)
29
- ffi (1.9.25-java)
30
- json (2.1.0-java)
31
- jwt (2.1.0)
32
- method_source (0.9.0)
33
- multi_json (1.13.1)
34
- multi_xml (0.6.0)
35
- multipart-post (2.0.0)
36
- parallel (1.12.1)
37
- parser (2.5.1.2)
38
- ast (~> 2.4.0)
39
- powerpack (0.1.2)
40
- pry (0.11.3-java)
41
- coderay (~> 1.1.0)
42
- method_source (~> 0.9.0)
43
- spoon (~> 0.0)
44
- public_suffix (3.0.3)
45
- rack (2.0.5)
46
- rainbow (3.0.0)
47
- rake (12.3.1)
48
- rdoc (6.0.4)
49
- rspec (3.8.0)
50
- rspec-core (~> 3.8.0)
51
- rspec-expectations (~> 3.8.0)
52
- rspec-mocks (~> 3.8.0)
53
- rspec-core (3.8.0)
54
- rspec-support (~> 3.8.0)
55
- rspec-expectations (3.8.2)
56
- diff-lcs (>= 1.2.0, < 2.0)
57
- rspec-support (~> 3.8.0)
58
- rspec-mocks (3.8.0)
59
- diff-lcs (>= 1.2.0, < 2.0)
60
- rspec-support (~> 3.8.0)
61
- rspec-pending_for (0.1.13)
62
- rspec-core
63
- ruby_engine (~> 1.0)
64
- ruby_version (~> 1.0)
65
- rspec-support (3.8.0)
66
- rubocop (0.53.0)
67
- parallel (~> 1.10)
68
- parser (>= 2.5)
69
- powerpack (~> 0.1)
70
- rainbow (>= 2.2.2, < 4.0)
71
- ruby-progressbar (~> 1.7)
72
- unicode-display_width (~> 1.0, >= 1.0.1)
73
- rubocop-rspec (1.24.0)
74
- rubocop (>= 0.53.0)
75
- ruby-progressbar (1.10.0)
76
- ruby_engine (1.0.1)
77
- ruby_version (1.0.1)
78
- simplecov (0.16.1)
79
- docile (~> 1.1)
80
- json (>= 1.8, < 3)
81
- simplecov-html (~> 0.10.0)
82
- simplecov-html (0.10.2)
83
- spoon (0.0.6)
84
- ffi
85
- term-ansicolor (1.6.0)
86
- tins (~> 1.0)
87
- thor (0.19.4)
88
- tins (1.16.3)
89
- unicode-display_width (1.4.0)
90
- wwtd (1.3.0)
91
-
92
- PLATFORMS
93
- java
94
-
95
- DEPENDENCIES
96
- addressable (~> 2.3)
97
- backports (~> 3.11)
98
- bundler (~> 1.16)
99
- coveralls (~> 0.8)
100
- faraday (= 0.9.2)
101
- oauth2!
102
- pry
103
- rake
104
- rdoc (>= 5.0, < 7)
105
- rspec
106
- rspec-pending_for
107
- rubocop (~> 0.53.0)
108
- rubocop-rspec (~> 1.24.0)
109
- wwtd
110
-
111
- BUNDLED WITH
112
- 1.16.4
@@ -1,112 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- oauth2 (1.4.0)
5
- faraday (>= 0.8, < 0.16.0)
6
- jwt (>= 1.0, < 3.0)
7
- multi_json (~> 1.3)
8
- multi_xml (~> 0.5)
9
- rack (>= 1.2, < 3)
10
-
11
- GEM
12
- remote: https://rubygems.org/
13
- specs:
14
- addressable (2.5.2)
15
- public_suffix (>= 2.0.2, < 4.0)
16
- ast (2.4.0)
17
- backports (3.11.4)
18
- coderay (1.1.2)
19
- coveralls (0.8.22)
20
- json (>= 1.8, < 3)
21
- simplecov (~> 0.16.1)
22
- term-ansicolor (~> 1.3)
23
- thor (~> 0.19.4)
24
- tins (~> 1.6)
25
- diff-lcs (1.3)
26
- docile (1.3.1)
27
- faraday (0.9.2)
28
- multipart-post (>= 1.2, < 3)
29
- ffi (1.9.25-java)
30
- json (2.1.0-java)
31
- jwt (2.1.0)
32
- method_source (0.9.0)
33
- multi_json (1.13.1)
34
- multi_xml (0.6.0)
35
- multipart-post (2.0.0)
36
- parallel (1.12.1)
37
- parser (2.5.1.2)
38
- ast (~> 2.4.0)
39
- powerpack (0.1.2)
40
- pry (0.11.3-java)
41
- coderay (~> 1.1.0)
42
- method_source (~> 0.9.0)
43
- spoon (~> 0.0)
44
- public_suffix (3.0.3)
45
- rack (2.0.5)
46
- rainbow (3.0.0)
47
- rake (12.3.1)
48
- rdoc (6.0.4)
49
- rspec (3.8.0)
50
- rspec-core (~> 3.8.0)
51
- rspec-expectations (~> 3.8.0)
52
- rspec-mocks (~> 3.8.0)
53
- rspec-core (3.8.0)
54
- rspec-support (~> 3.8.0)
55
- rspec-expectations (3.8.2)
56
- diff-lcs (>= 1.2.0, < 2.0)
57
- rspec-support (~> 3.8.0)
58
- rspec-mocks (3.8.0)
59
- diff-lcs (>= 1.2.0, < 2.0)
60
- rspec-support (~> 3.8.0)
61
- rspec-pending_for (0.1.13)
62
- rspec-core
63
- ruby_engine (~> 1.0)
64
- ruby_version (~> 1.0)
65
- rspec-support (3.8.0)
66
- rubocop (0.53.0)
67
- parallel (~> 1.10)
68
- parser (>= 2.5)
69
- powerpack (~> 0.1)
70
- rainbow (>= 2.2.2, < 4.0)
71
- ruby-progressbar (~> 1.7)
72
- unicode-display_width (~> 1.0, >= 1.0.1)
73
- rubocop-rspec (1.24.0)
74
- rubocop (>= 0.53.0)
75
- ruby-progressbar (1.10.0)
76
- ruby_engine (1.0.1)
77
- ruby_version (1.0.1)
78
- simplecov (0.16.1)
79
- docile (~> 1.1)
80
- json (>= 1.8, < 3)
81
- simplecov-html (~> 0.10.0)
82
- simplecov-html (0.10.2)
83
- spoon (0.0.6)
84
- ffi
85
- term-ansicolor (1.6.0)
86
- tins (~> 1.0)
87
- thor (0.19.4)
88
- tins (1.16.3)
89
- unicode-display_width (1.4.0)
90
- wwtd (1.3.0)
91
-
92
- PLATFORMS
93
- java
94
-
95
- DEPENDENCIES
96
- addressable (~> 2.3)
97
- backports (~> 3.11)
98
- bundler (~> 1.16)
99
- coveralls (~> 0.8)
100
- faraday (= 0.9.2)
101
- oauth2!
102
- pry
103
- rake
104
- rdoc (>= 5.0, < 7)
105
- rspec
106
- rspec-pending_for
107
- rubocop (~> 0.53.0)
108
- rubocop-rspec (~> 1.24.0)
109
- wwtd
110
-
111
- BUNDLED WITH
112
- 1.16.4