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
@@ -1,108 +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
- json (2.1.0)
30
- jwt (2.1.0)
31
- method_source (0.9.0)
32
- multi_json (1.13.1)
33
- multi_xml (0.6.0)
34
- multipart-post (2.0.0)
35
- parallel (1.12.1)
36
- parser (2.5.1.2)
37
- ast (~> 2.4.0)
38
- powerpack (0.1.2)
39
- pry (0.11.3)
40
- coderay (~> 1.1.0)
41
- method_source (~> 0.9.0)
42
- public_suffix (3.0.3)
43
- rack (2.0.5)
44
- rainbow (3.0.0)
45
- rake (12.3.1)
46
- rdoc (6.0.4)
47
- rspec (3.8.0)
48
- rspec-core (~> 3.8.0)
49
- rspec-expectations (~> 3.8.0)
50
- rspec-mocks (~> 3.8.0)
51
- rspec-core (3.8.0)
52
- rspec-support (~> 3.8.0)
53
- rspec-expectations (3.8.2)
54
- diff-lcs (>= 1.2.0, < 2.0)
55
- rspec-support (~> 3.8.0)
56
- rspec-mocks (3.8.0)
57
- diff-lcs (>= 1.2.0, < 2.0)
58
- rspec-support (~> 3.8.0)
59
- rspec-pending_for (0.1.13)
60
- rspec-core
61
- ruby_engine (~> 1.0)
62
- ruby_version (~> 1.0)
63
- rspec-support (3.8.0)
64
- rubocop (0.53.0)
65
- parallel (~> 1.10)
66
- parser (>= 2.5)
67
- powerpack (~> 0.1)
68
- rainbow (>= 2.2.2, < 4.0)
69
- ruby-progressbar (~> 1.7)
70
- unicode-display_width (~> 1.0, >= 1.0.1)
71
- rubocop-rspec (1.24.0)
72
- rubocop (>= 0.53.0)
73
- ruby-progressbar (1.10.0)
74
- ruby_engine (1.0.1)
75
- ruby_version (1.0.1)
76
- simplecov (0.16.1)
77
- docile (~> 1.1)
78
- json (>= 1.8, < 3)
79
- simplecov-html (~> 0.10.0)
80
- simplecov-html (0.10.2)
81
- term-ansicolor (1.6.0)
82
- tins (~> 1.0)
83
- thor (0.19.4)
84
- tins (1.16.3)
85
- unicode-display_width (1.4.0)
86
- wwtd (1.3.0)
87
-
88
- PLATFORMS
89
- ruby
90
-
91
- DEPENDENCIES
92
- addressable (~> 2.3)
93
- backports (~> 3.11)
94
- bundler (~> 1.16)
95
- coveralls (~> 0.8)
96
- faraday (= 0.9.2)
97
- oauth2!
98
- pry
99
- rake
100
- rdoc (>= 5.0, < 7)
101
- rspec
102
- rspec-pending_for
103
- rubocop (~> 0.53.0)
104
- rubocop-rspec (~> 1.24.0)
105
- wwtd
106
-
107
- BUNDLED WITH
108
- 1.16.2
@@ -1,17 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'faraday', '0.9.2'
4
-
5
- group :development do
6
- gem 'pry'
7
- end
8
-
9
- group :test do
10
- gem 'rake'
11
- gem 'rspec'
12
- gem 'rspec-pending_for'
13
- gem 'rubocop', '~> 0.53.0'
14
- gem 'rubocop-rspec', '~> 1.24.0'
15
- end
16
-
17
- gemspec :path => '../'
@@ -1,108 +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
- json (2.1.0)
30
- jwt (2.1.0)
31
- method_source (0.9.0)
32
- multi_json (1.13.1)
33
- multi_xml (0.6.0)
34
- multipart-post (2.0.0)
35
- parallel (1.12.1)
36
- parser (2.5.1.2)
37
- ast (~> 2.4.0)
38
- powerpack (0.1.2)
39
- pry (0.11.3)
40
- coderay (~> 1.1.0)
41
- method_source (~> 0.9.0)
42
- public_suffix (3.0.3)
43
- rack (2.0.5)
44
- rainbow (3.0.0)
45
- rake (12.3.1)
46
- rdoc (6.0.4)
47
- rspec (3.8.0)
48
- rspec-core (~> 3.8.0)
49
- rspec-expectations (~> 3.8.0)
50
- rspec-mocks (~> 3.8.0)
51
- rspec-core (3.8.0)
52
- rspec-support (~> 3.8.0)
53
- rspec-expectations (3.8.2)
54
- diff-lcs (>= 1.2.0, < 2.0)
55
- rspec-support (~> 3.8.0)
56
- rspec-mocks (3.8.0)
57
- diff-lcs (>= 1.2.0, < 2.0)
58
- rspec-support (~> 3.8.0)
59
- rspec-pending_for (0.1.13)
60
- rspec-core
61
- ruby_engine (~> 1.0)
62
- ruby_version (~> 1.0)
63
- rspec-support (3.8.0)
64
- rubocop (0.53.0)
65
- parallel (~> 1.10)
66
- parser (>= 2.5)
67
- powerpack (~> 0.1)
68
- rainbow (>= 2.2.2, < 4.0)
69
- ruby-progressbar (~> 1.7)
70
- unicode-display_width (~> 1.0, >= 1.0.1)
71
- rubocop-rspec (1.24.0)
72
- rubocop (>= 0.53.0)
73
- ruby-progressbar (1.10.0)
74
- ruby_engine (1.0.1)
75
- ruby_version (1.0.1)
76
- simplecov (0.16.1)
77
- docile (~> 1.1)
78
- json (>= 1.8, < 3)
79
- simplecov-html (~> 0.10.0)
80
- simplecov-html (0.10.2)
81
- term-ansicolor (1.6.0)
82
- tins (~> 1.0)
83
- thor (0.19.4)
84
- tins (1.16.3)
85
- unicode-display_width (1.4.0)
86
- wwtd (1.3.0)
87
-
88
- PLATFORMS
89
- ruby
90
-
91
- DEPENDENCIES
92
- addressable (~> 2.3)
93
- backports (~> 3.11)
94
- bundler (~> 1.16)
95
- coveralls (~> 0.8)
96
- faraday (= 0.9.2)
97
- oauth2!
98
- pry
99
- rake
100
- rdoc (>= 5.0, < 7)
101
- rspec
102
- rspec-pending_for
103
- rubocop (~> 0.53.0)
104
- rubocop-rspec (~> 1.24.0)
105
- wwtd
106
-
107
- BUNDLED WITH
108
- 1.16.2
@@ -1,17 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'faraday', '0.9.2'
4
-
5
- group :development do
6
- gem 'pry'
7
- end
8
-
9
- group :test do
10
- gem 'rake'
11
- gem 'rspec'
12
- gem 'rspec-pending_for'
13
- gem 'rubocop', '~> 0.53.0'
14
- gem 'rubocop-rspec', '~> 1.24.0'
15
- end
16
-
17
- gemspec :path => '../'
@@ -1,108 +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
- json (2.1.0)
30
- jwt (2.1.0)
31
- method_source (0.9.0)
32
- multi_json (1.13.1)
33
- multi_xml (0.6.0)
34
- multipart-post (2.0.0)
35
- parallel (1.12.1)
36
- parser (2.5.1.2)
37
- ast (~> 2.4.0)
38
- powerpack (0.1.2)
39
- pry (0.11.3)
40
- coderay (~> 1.1.0)
41
- method_source (~> 0.9.0)
42
- public_suffix (3.0.3)
43
- rack (2.0.5)
44
- rainbow (3.0.0)
45
- rake (12.3.1)
46
- rdoc (6.0.4)
47
- rspec (3.8.0)
48
- rspec-core (~> 3.8.0)
49
- rspec-expectations (~> 3.8.0)
50
- rspec-mocks (~> 3.8.0)
51
- rspec-core (3.8.0)
52
- rspec-support (~> 3.8.0)
53
- rspec-expectations (3.8.2)
54
- diff-lcs (>= 1.2.0, < 2.0)
55
- rspec-support (~> 3.8.0)
56
- rspec-mocks (3.8.0)
57
- diff-lcs (>= 1.2.0, < 2.0)
58
- rspec-support (~> 3.8.0)
59
- rspec-pending_for (0.1.13)
60
- rspec-core
61
- ruby_engine (~> 1.0)
62
- ruby_version (~> 1.0)
63
- rspec-support (3.8.0)
64
- rubocop (0.53.0)
65
- parallel (~> 1.10)
66
- parser (>= 2.5)
67
- powerpack (~> 0.1)
68
- rainbow (>= 2.2.2, < 4.0)
69
- ruby-progressbar (~> 1.7)
70
- unicode-display_width (~> 1.0, >= 1.0.1)
71
- rubocop-rspec (1.24.0)
72
- rubocop (>= 0.53.0)
73
- ruby-progressbar (1.10.0)
74
- ruby_engine (1.0.1)
75
- ruby_version (1.0.1)
76
- simplecov (0.16.1)
77
- docile (~> 1.1)
78
- json (>= 1.8, < 3)
79
- simplecov-html (~> 0.10.0)
80
- simplecov-html (0.10.2)
81
- term-ansicolor (1.6.0)
82
- tins (~> 1.0)
83
- thor (0.19.4)
84
- tins (1.16.3)
85
- unicode-display_width (1.4.0)
86
- wwtd (1.3.0)
87
-
88
- PLATFORMS
89
- ruby
90
-
91
- DEPENDENCIES
92
- addressable (~> 2.3)
93
- backports (~> 3.11)
94
- bundler (~> 1.16)
95
- coveralls (~> 0.8)
96
- faraday (= 0.9.2)
97
- oauth2!
98
- pry
99
- rake
100
- rdoc (>= 5.0, < 7)
101
- rspec
102
- rspec-pending_for
103
- rubocop (~> 0.53.0)
104
- rubocop-rspec (~> 1.24.0)
105
- wwtd
106
-
107
- BUNDLED WITH
108
- 1.16.5
@@ -1,108 +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
- json (2.1.0)
30
- jwt (2.1.0)
31
- method_source (0.9.0)
32
- multi_json (1.13.1)
33
- multi_xml (0.6.0)
34
- multipart-post (2.0.0)
35
- parallel (1.12.1)
36
- parser (2.5.1.2)
37
- ast (~> 2.4.0)
38
- powerpack (0.1.2)
39
- pry (0.11.3)
40
- coderay (~> 1.1.0)
41
- method_source (~> 0.9.0)
42
- public_suffix (3.0.3)
43
- rack (2.0.5)
44
- rainbow (3.0.0)
45
- rake (12.3.1)
46
- rdoc (6.0.4)
47
- rspec (3.8.0)
48
- rspec-core (~> 3.8.0)
49
- rspec-expectations (~> 3.8.0)
50
- rspec-mocks (~> 3.8.0)
51
- rspec-core (3.8.0)
52
- rspec-support (~> 3.8.0)
53
- rspec-expectations (3.8.2)
54
- diff-lcs (>= 1.2.0, < 2.0)
55
- rspec-support (~> 3.8.0)
56
- rspec-mocks (3.8.0)
57
- diff-lcs (>= 1.2.0, < 2.0)
58
- rspec-support (~> 3.8.0)
59
- rspec-pending_for (0.1.13)
60
- rspec-core
61
- ruby_engine (~> 1.0)
62
- ruby_version (~> 1.0)
63
- rspec-support (3.8.0)
64
- rubocop (0.53.0)
65
- parallel (~> 1.10)
66
- parser (>= 2.5)
67
- powerpack (~> 0.1)
68
- rainbow (>= 2.2.2, < 4.0)
69
- ruby-progressbar (~> 1.7)
70
- unicode-display_width (~> 1.0, >= 1.0.1)
71
- rubocop-rspec (1.24.0)
72
- rubocop (>= 0.53.0)
73
- ruby-progressbar (1.10.0)
74
- ruby_engine (1.0.1)
75
- ruby_version (1.0.1)
76
- simplecov (0.16.1)
77
- docile (~> 1.1)
78
- json (>= 1.8, < 3)
79
- simplecov-html (~> 0.10.0)
80
- simplecov-html (0.10.2)
81
- term-ansicolor (1.6.0)
82
- tins (~> 1.0)
83
- thor (0.19.4)
84
- tins (1.16.3)
85
- unicode-display_width (1.4.0)
86
- wwtd (1.3.0)
87
-
88
- PLATFORMS
89
- ruby
90
-
91
- DEPENDENCIES
92
- addressable (~> 2.3)
93
- backports (~> 3.11)
94
- bundler (~> 1.16)
95
- coveralls (~> 0.8)
96
- faraday (= 0.9.2)
97
- oauth2!
98
- pry
99
- rake
100
- rdoc (>= 5.0, < 7)
101
- rspec
102
- rspec-pending_for
103
- rubocop (~> 0.53.0)
104
- rubocop-rspec (~> 1.24.0)
105
- wwtd
106
-
107
- BUNDLED WITH
108
- 1.16.4