oauth2 1.4.0 → 1.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 +5 -5
- data/.gitignore +19 -0
- data/.jrubyrc +1 -0
- data/.rspec +2 -0
- data/.rubocop.yml +80 -0
- data/.rubocop_rspec.yml +26 -0
- data/.rubocop_todo.yml +15 -0
- data/.ruby-version +1 -0
- data/.travis.yml +70 -0
- data/CHANGELOG.md +144 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +40 -0
- data/LICENSE +22 -0
- data/README.md +107 -20
- data/Rakefile +45 -0
- data/gemfiles/jruby_1.7.gemfile +11 -0
- data/gemfiles/jruby_9.0.gemfile +7 -0
- data/gemfiles/jruby_9.1.gemfile +3 -0
- data/gemfiles/jruby_9.2.gemfile +3 -0
- data/gemfiles/jruby_head.gemfile +3 -0
- data/gemfiles/ruby_1.9.gemfile +11 -0
- data/gemfiles/ruby_2.0.gemfile +6 -0
- data/gemfiles/ruby_2.1.gemfile +6 -0
- data/gemfiles/ruby_2.2.gemfile +3 -0
- data/gemfiles/ruby_2.3.gemfile +3 -0
- data/gemfiles/ruby_2.4.gemfile +3 -0
- data/gemfiles/ruby_2.5.gemfile +3 -0
- data/gemfiles/ruby_2.6.gemfile +9 -0
- data/gemfiles/ruby_head.gemfile +9 -0
- data/gemfiles/truffleruby.gemfile +3 -0
- data/lib/oauth2/mac_token.rb +1 -1
- data/lib/oauth2/version.rb +1 -1
- data/oauth2.gemspec +27 -8
- metadata +208 -16
- data/LICENSE.md +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6de8ef7ab0a480b7a6ce04291414f466818e21f3ca59927cec920f5587ad99a8
|
4
|
+
data.tar.gz: 7d92dd6b75f2ce746dc73c406045e564ee0aa5aa6af6da7fd86e880b08a8fb2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b456941102259c8318c986dd2715c52ecd49aa9413e7dee3c73c4580b2129b3302ed94741f1caf6707d54626702d4adbe033f952be16d2501cc2e9e2e57726a2
|
7
|
+
data.tar.gz: f5a9b3c8802389bf18eb04ffeb368edd2a70ee11d2615d187296a99ed14ae1cf36bd88cc2f5bdd0512a0133a5ae174f29820492d678222eb6be71cc464bb501d
|
data/.gitignore
ADDED
data/.jrubyrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
debug.fullTrace=true
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
require: rubocop-rspec
|
2
|
+
inherit_from:
|
3
|
+
- .rubocop_todo.yml
|
4
|
+
- .rubocop_rspec.yml
|
5
|
+
AllCops:
|
6
|
+
DisplayCopNames: true # Display the name of the failing cops
|
7
|
+
TargetRubyVersion: 2.1
|
8
|
+
Exclude:
|
9
|
+
- 'gemfiles/vendor/**/*'
|
10
|
+
- 'vendor/**/*'
|
11
|
+
- '**/.irbrc'
|
12
|
+
|
13
|
+
Gemspec/RequiredRubyVersion:
|
14
|
+
Enabled: false
|
15
|
+
|
16
|
+
Metrics/BlockLength:
|
17
|
+
Enabled: false
|
18
|
+
|
19
|
+
Metrics/BlockNesting:
|
20
|
+
Max: 2
|
21
|
+
|
22
|
+
Metrics/LineLength:
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
Metrics/MethodLength:
|
26
|
+
Max: 15
|
27
|
+
|
28
|
+
Metrics/ParameterLists:
|
29
|
+
Max: 4
|
30
|
+
|
31
|
+
Layout/AccessModifierIndentation:
|
32
|
+
EnforcedStyle: outdent
|
33
|
+
|
34
|
+
Layout/DotPosition:
|
35
|
+
EnforcedStyle: trailing
|
36
|
+
|
37
|
+
Layout/SpaceInsideHashLiteralBraces:
|
38
|
+
EnforcedStyle: no_space
|
39
|
+
|
40
|
+
Lint/UnusedBlockArgument:
|
41
|
+
Exclude:
|
42
|
+
- 'spec/**/*.rb'
|
43
|
+
- 'gemfiles/vendor/**/*'
|
44
|
+
- 'vendor/**/*'
|
45
|
+
- '**/.irbrc'
|
46
|
+
|
47
|
+
RSpec/DescribeClass:
|
48
|
+
Exclude:
|
49
|
+
- 'spec/examples/*'
|
50
|
+
|
51
|
+
RSpec/NestedGroups:
|
52
|
+
Enabled: false
|
53
|
+
|
54
|
+
Style/ClassVars:
|
55
|
+
Enabled: false
|
56
|
+
|
57
|
+
Style/CollectionMethods:
|
58
|
+
PreferredMethods:
|
59
|
+
map: 'collect'
|
60
|
+
reduce: 'inject'
|
61
|
+
find: 'detect'
|
62
|
+
find_all: 'select'
|
63
|
+
|
64
|
+
Style/Documentation:
|
65
|
+
Enabled: false
|
66
|
+
|
67
|
+
Style/DoubleNegation:
|
68
|
+
Enabled: false
|
69
|
+
|
70
|
+
Style/EmptyMethod:
|
71
|
+
EnforcedStyle: expanded
|
72
|
+
|
73
|
+
Style/Encoding:
|
74
|
+
Enabled: false
|
75
|
+
|
76
|
+
Style/TrailingCommaInArrayLiteral:
|
77
|
+
EnforcedStyleForMultiline: comma
|
78
|
+
|
79
|
+
Style/TrailingCommaInHashLiteral:
|
80
|
+
EnforcedStyleForMultiline: comma
|
data/.rubocop_rspec.yml
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
RSpec/FilePath:
|
2
|
+
Enabled: false
|
3
|
+
|
4
|
+
RSpec/MultipleExpectations:
|
5
|
+
Enabled: false
|
6
|
+
|
7
|
+
RSpec/NamedSubject:
|
8
|
+
Enabled: false
|
9
|
+
|
10
|
+
RSpec/ExampleLength:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
RSpec/VerifiedDoubles:
|
14
|
+
Enabled: false
|
15
|
+
|
16
|
+
RSpec/MessageSpies:
|
17
|
+
Enabled: false
|
18
|
+
|
19
|
+
RSpec/InstanceVariable:
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
RSpec/NestedGroups:
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
RSpec/ExpectInHook:
|
26
|
+
Enabled: false
|
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
Style/HashSyntax:
|
2
|
+
EnforcedStyle: hash_rockets
|
3
|
+
|
4
|
+
Style/Lambda:
|
5
|
+
Enabled: false
|
6
|
+
|
7
|
+
Style/SymbolArray:
|
8
|
+
Enabled: false
|
9
|
+
|
10
|
+
Style/EachWithObject:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
# Once we drop Rubies that lack support for __dir__ we can turn this on.
|
14
|
+
Style/ExpandPathArguments:
|
15
|
+
Enabled: false
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.6.3
|
data/.travis.yml
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
before_install:
|
2
|
+
# rubygems 2.7.8 and greater include bundler
|
3
|
+
# - Ruby 2.2, and under, get RubyGems ~> 2.7.10, (includes bundler 1.17.3)
|
4
|
+
# - Anything else, including Ruby 2.3, and above, gets RubyGems ~> 3, and update bundler to latest
|
5
|
+
# - NOTE ON JRUBY: identifies as RUBY_VERSION ~> 1.9, 2.0, 2.3, or 2.5.
|
6
|
+
# - NOTE ON TRUFFLERUBY: identifies as RUBY_VERSION ~> 2.6
|
7
|
+
- |
|
8
|
+
rv="$(ruby -e 'STDOUT.write RUBY_VERSION')"
|
9
|
+
echo "Discovered Ruby Version of =====> $rv"
|
10
|
+
if [ "$rv" \< "2.3" ]; then
|
11
|
+
gem update --system 2.7.10
|
12
|
+
elif [ "$rv" \< "2.4" ]; then
|
13
|
+
gem update --system 2.7.10 --no-document
|
14
|
+
elif [ "$rv" = "2.5.3" ]; then
|
15
|
+
# JRUBY 9.2 Identifies as 2.5.3, and it fails to update rubygems
|
16
|
+
gem install --no-document bundler "bundler:>=2.0"
|
17
|
+
else
|
18
|
+
gem update --system --no-document --conservative
|
19
|
+
gem install --no-document bundler "bundler:>=2.0"
|
20
|
+
fi
|
21
|
+
|
22
|
+
bundler_args: --no-deployment --jobs 3 --retry 3
|
23
|
+
|
24
|
+
cache: bundler
|
25
|
+
|
26
|
+
language: ruby
|
27
|
+
|
28
|
+
matrix:
|
29
|
+
allow_failures:
|
30
|
+
- rvm: jruby-head
|
31
|
+
- rvm: ruby-head
|
32
|
+
- rvm: truffleruby
|
33
|
+
- rvm: jruby-9.0
|
34
|
+
fast_finish: true
|
35
|
+
include:
|
36
|
+
# - rvm: jruby-1.7 # targets MRI v1.9
|
37
|
+
# gemfile: gemfiles/jruby_1.7.gemfile
|
38
|
+
- rvm: 1.9
|
39
|
+
gemfile: gemfiles/ruby_1.9.gemfile
|
40
|
+
- rvm: 2.0
|
41
|
+
gemfile: gemfiles/ruby_2.0.gemfile
|
42
|
+
- rvm: jruby-9.0 # targets MRI v2.0
|
43
|
+
gemfile: gemfiles/jruby_9.0.gemfile
|
44
|
+
- rvm: 2.1
|
45
|
+
gemfile: gemfiles/ruby_2.1.gemfile
|
46
|
+
# DEPRECATION WARNING
|
47
|
+
# oauth2 1.x series releases are the last to support Ruby versions above
|
48
|
+
# oauth2 2.x series releases will support Ruby versions below, and not above
|
49
|
+
- rvm: jruby-9.1 # targets MRI v2.3
|
50
|
+
gemfile: gemfiles/jruby_9.1.gemfile
|
51
|
+
- rvm: 2.2
|
52
|
+
gemfile: gemfiles/ruby_2.2.gemfile
|
53
|
+
- rvm: 2.3
|
54
|
+
gemfile: gemfiles/ruby_2.3.gemfile
|
55
|
+
- rvm: 2.4
|
56
|
+
gemfile: gemfiles/ruby_2.4.gemfile
|
57
|
+
- rvm: jruby-9.2 # targets MRI v2.5
|
58
|
+
gemfile: gemfiles/jruby_9.2.gemfile
|
59
|
+
- rvm: 2.5
|
60
|
+
gemfile: gemfiles/ruby_2.5.gemfile
|
61
|
+
- rvm: 2.6
|
62
|
+
gemfile: gemfiles/ruby_2.6.gemfile
|
63
|
+
- rvm: jruby-head
|
64
|
+
gemfile: gemfiles/jruby_head.gemfile
|
65
|
+
- rvm: ruby-head
|
66
|
+
gemfile: gemfiles/ruby_head.gemfile
|
67
|
+
- rvm: truffleruby
|
68
|
+
gemfile: gemfiles/truffleruby.gemfile
|
69
|
+
|
70
|
+
sudo: false
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,144 @@
|
|
1
|
+
# Change Log
|
2
|
+
All notable changes to this project will be documented in this file.
|
3
|
+
|
4
|
+
## [unreleased]
|
5
|
+
|
6
|
+
- no changes yet
|
7
|
+
|
8
|
+
## [1.4.2] - 2019-10-01
|
9
|
+
|
10
|
+
- [#478](https://github.com/oauth-xx/oauth2/pull/478) - support latest version of faraday & fix build (@pboling)
|
11
|
+
- officially support Ruby 2.6 and truffleruby
|
12
|
+
|
13
|
+
## [1.4.1] - 2018-10-13
|
14
|
+
|
15
|
+
- [#417](https://github.com/oauth-xx/oauth2/pull/417) - update jwt dependency (@thewoolleyman)
|
16
|
+
- [#419](https://github.com/oauth-xx/oauth2/pull/419) - remove rubocop dependency (temporary, added back in [#423](https://github.com/oauth-xx/oauth2/pull/423)) (@pboling)
|
17
|
+
- [#418](https://github.com/oauth-xx/oauth2/pull/418) - update faraday dependency (@pboling)
|
18
|
+
- [#420](https://github.com/oauth-xx/oauth2/pull/420) - update [oauth2.gemspec](https://github.com/oauth-xx/oauth2/blob/1-4-stable/oauth2.gemspec) (@pboling)
|
19
|
+
- [#421](https://github.com/oauth-xx/oauth2/pull/421) - fix [CHANGELOG.md](https://github.com/oauth-xx/oauth2/blob/1-4-stable/CHANGELOG.md) for previous releases (@pboling)
|
20
|
+
- [#422](https://github.com/oauth-xx/oauth2/pull/422) - update [LICENSE](https://github.com/oauth-xx/oauth2/blob/1-4-stable/LICENSE) and [README.md](https://github.com/oauth-xx/oauth2/blob/1-4-stable/README.md) (@pboling)
|
21
|
+
- [#423](https://github.com/oauth-xx/oauth2/pull/423) - update [builds](https://travis-ci.org/oauth-xx/oauth2/builds), [Rakefile](https://github.com/oauth-xx/oauth2/blob/1-4-stable/Rakefile) (@pboling)
|
22
|
+
- officially document supported Rubies
|
23
|
+
* Ruby 1.9.3
|
24
|
+
* Ruby 2.0.0
|
25
|
+
* Ruby 2.1
|
26
|
+
* Ruby 2.2
|
27
|
+
* [JRuby 1.7][jruby-1.7] (targets MRI v1.9)
|
28
|
+
* [JRuby 9.0][jruby-9.0] (targets MRI v2.0)
|
29
|
+
* Ruby 2.3
|
30
|
+
* Ruby 2.4
|
31
|
+
* Ruby 2.5
|
32
|
+
* [JRuby 9.1][jruby-9.1] (targets MRI v2.3)
|
33
|
+
* [JRuby 9.2][jruby-9.2] (targets MRI v2.5)
|
34
|
+
|
35
|
+
[jruby-1.7]: https://www.jruby.org/2017/05/11/jruby-1-7-27.html
|
36
|
+
[jruby-9.0]: https://www.jruby.org/2016/01/26/jruby-9-0-5-0.html
|
37
|
+
[jruby-9.1]: https://www.jruby.org/2017/05/16/jruby-9-1-9-0.html
|
38
|
+
[jruby-9.2]: https://www.jruby.org/2018/05/24/jruby-9-2-0-0.html
|
39
|
+
|
40
|
+
## [1.4.0] - 2017-06-09
|
41
|
+
|
42
|
+
- Drop Ruby 1.8.7 support (@sferik)
|
43
|
+
- Fix some RuboCop offenses (@sferik)
|
44
|
+
- _Dependency_: Remove Yardstick (@sferik)
|
45
|
+
- _Dependency_: Upgrade Faraday to 0.12 (@sferik)
|
46
|
+
|
47
|
+
## [1.3.1] - 2017-03-03
|
48
|
+
|
49
|
+
- Add support for Ruby 2.4.0 (@pschambacher)
|
50
|
+
- _Dependency_: Upgrade Faraday to Faraday 0.11 (@mcfiredrill, @rhymes, @pschambacher)
|
51
|
+
|
52
|
+
## [1.3.0] - 2016-12-28
|
53
|
+
|
54
|
+
- Add support for header-based authentication to the `Client` so it can be used across the library (@bjeanes)
|
55
|
+
- Default to header-based authentication when getting a token from an authorisation code (@maletor)
|
56
|
+
- **Breaking**: Allow an `auth_scheme` (`:basic_auth` or `:request_body`) to be set on the client, defaulting to `:request_body` to maintain backwards compatibility (@maletor, @bjeanes)
|
57
|
+
- Handle `redirect_uri` according to the OAuth 2 spec, so it is passed on redirect and at the point of token exchange (@bjeanes)
|
58
|
+
- Refactor handling of encoding of error responses (@urkle)
|
59
|
+
- Avoid instantiating an `Error` if there is no error to raise (@urkle)
|
60
|
+
- Add support for Faraday 0.10 (@rhymes)
|
61
|
+
|
62
|
+
## [1.2.0] - 2016-07-01
|
63
|
+
|
64
|
+
- Properly handle encoding of error responses (so we don't blow up, for example, when Google's response includes a ∞) (@Motoshi-Nishihira)
|
65
|
+
- Make a copy of the options hash in `AccessToken#from_hash` to avoid accidental mutations (@Linuus)
|
66
|
+
- Use `raise` rather than `fail` to throw exceptions (@sferik)
|
67
|
+
|
68
|
+
## [1.1.0] - 2016-01-30
|
69
|
+
|
70
|
+
- Various refactors (eliminating `Hash#merge!` usage in `AccessToken#refresh!`, use `yield` instead of `#call`, freezing mutable objects in constants, replacing constants with class variables) (@sferik)
|
71
|
+
- Add support for Rack 2, and bump various other dependencies (@sferik)
|
72
|
+
|
73
|
+
## [1.0.0] - 2014-07-09
|
74
|
+
|
75
|
+
### Added
|
76
|
+
- Add an implementation of the MAC token spec.
|
77
|
+
|
78
|
+
### Fixed
|
79
|
+
- Fix Base64.strict_encode64 incompatibility with Ruby 1.8.7.
|
80
|
+
|
81
|
+
## [0.5.0] - 2011-07-29
|
82
|
+
|
83
|
+
### Changed
|
84
|
+
- [breaking] `oauth_token` renamed to `oauth_bearer`.
|
85
|
+
- [breaking] `authorize_path` Client option renamed to `authorize_url`.
|
86
|
+
- [breaking] `access_token_path` Client option renamed to `token_url`.
|
87
|
+
- [breaking] `access_token_method` Client option renamed to `token_method`.
|
88
|
+
- [breaking] `web_server` renamed to `auth_code`.
|
89
|
+
|
90
|
+
## [0.4.1] - 2011-04-20
|
91
|
+
|
92
|
+
## [0.4.0] - 2011-04-20
|
93
|
+
|
94
|
+
## [0.3.0] - 2011-04-08
|
95
|
+
|
96
|
+
## [0.2.0] - 2011-04-01
|
97
|
+
|
98
|
+
## [0.1.1] - 2011-01-12
|
99
|
+
|
100
|
+
## [0.1.0] - 2010-10-13
|
101
|
+
|
102
|
+
## [0.0.13] + [0.0.12] + [0.0.11] - 2010-08-17
|
103
|
+
|
104
|
+
## [0.0.10] - 2010-06-19
|
105
|
+
|
106
|
+
## [0.0.9] - 2010-06-18
|
107
|
+
|
108
|
+
## [0.0.8] + [0.0.7] - 2010-04-27
|
109
|
+
|
110
|
+
## [0.0.6] - 2010-04-25
|
111
|
+
|
112
|
+
## [0.0.5] - 2010-04-23
|
113
|
+
|
114
|
+
## [0.0.4] + [0.0.3] + [0.0.2] + [0.0.1] - 2010-04-22
|
115
|
+
|
116
|
+
|
117
|
+
[0.0.1]: https://github.com/oauth-xx/oauth2/compare/311d9f4...v0.0.1
|
118
|
+
[0.0.2]: https://github.com/oauth-xx/oauth2/compare/v0.0.1...v0.0.2
|
119
|
+
[0.0.3]: https://github.com/oauth-xx/oauth2/compare/v0.0.2...v0.0.3
|
120
|
+
[0.0.4]: https://github.com/oauth-xx/oauth2/compare/v0.0.3...v0.0.4
|
121
|
+
[0.0.5]: https://github.com/oauth-xx/oauth2/compare/v0.0.4...v0.0.5
|
122
|
+
[0.0.6]: https://github.com/oauth-xx/oauth2/compare/v0.0.5...v0.0.6
|
123
|
+
[0.0.7]: https://github.com/oauth-xx/oauth2/compare/v0.0.6...v0.0.7
|
124
|
+
[0.0.8]: https://github.com/oauth-xx/oauth2/compare/v0.0.7...v0.0.8
|
125
|
+
[0.0.9]: https://github.com/oauth-xx/oauth2/compare/v0.0.8...v0.0.9
|
126
|
+
[0.0.10]: https://github.com/oauth-xx/oauth2/compare/v0.0.9...v0.0.10
|
127
|
+
[0.0.11]: https://github.com/oauth-xx/oauth2/compare/v0.0.10...v0.0.11
|
128
|
+
[0.0.12]: https://github.com/oauth-xx/oauth2/compare/v0.0.11...v0.0.12
|
129
|
+
[0.0.13]: https://github.com/oauth-xx/oauth2/compare/v0.0.12...v0.0.13
|
130
|
+
[0.1.0]: https://github.com/oauth-xx/oauth2/compare/v0.0.13...v0.1.0
|
131
|
+
[0.1.1]: https://github.com/oauth-xx/oauth2/compare/v0.1.0...v0.1.1
|
132
|
+
[0.2.0]: https://github.com/oauth-xx/oauth2/compare/v0.1.1...v0.2.0
|
133
|
+
[0.3.0]: https://github.com/oauth-xx/oauth2/compare/v0.2.0...v0.3.0
|
134
|
+
[0.4.0]: https://github.com/oauth-xx/oauth2/compare/v0.3.0...v0.4.0
|
135
|
+
[0.4.1]: https://github.com/oauth-xx/oauth2/compare/v0.4.0...v0.4.1
|
136
|
+
[0.5.0]: https://github.com/oauth-xx/oauth2/compare/v0.4.1...v0.5.0
|
137
|
+
[1.0.0]: https://github.com/oauth-xx/oauth2/compare/v0.9.4...v1.0.0
|
138
|
+
[1.1.0]: https://github.com/oauth-xx/oauth2/compare/v1.0.0...v1.1.0
|
139
|
+
[1.2.0]: https://github.com/oauth-xx/oauth2/compare/v1.1.0...v1.2.0
|
140
|
+
[1.3.0]: https://github.com/oauth-xx/oauth2/compare/v1.2.0...v1.3.0
|
141
|
+
[1.3.1]: https://github.com/oauth-xx/oauth2/compare/v1.3.0...v1.3.1
|
142
|
+
[1.4.0]: https://github.com/oauth-xx/oauth2/compare/v1.3.1...v1.4.0
|
143
|
+
[1.4.1]: https://github.com/oauth-xx/oauth2/compare/v1.4.0...v1.4.1
|
144
|
+
[unreleased]: https://github.com/oauth-xx/oauth2/compare/v1.4.1...HEAD
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at peter.boling@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
4
|
+
|
5
|
+
gem 'faraday', ['>= 0.8', '< 2.0'], :platforms => [:jruby_18, :ruby_18]
|
6
|
+
gem 'jwt', '< 1.5.2', :platforms => [:jruby_18, :ruby_18]
|
7
|
+
gem 'rake', '< 11.0'
|
8
|
+
gem 'rdoc', '~> 4.2.2'
|
9
|
+
|
10
|
+
group :test do
|
11
|
+
ruby_version = Gem::Version.new(RUBY_VERSION)
|
12
|
+
if ruby_version >= Gem::Version.new('2.1')
|
13
|
+
# TODO: Upgrade to >= 0.59 when we drop Rubies below 2.2
|
14
|
+
# Error: Unsupported Ruby version 2.1 found in `TargetRubyVersion` parameter (in .rubocop.yml). 2.1-compatible analysis was dropped after version 0.58.
|
15
|
+
# Supported versions: 2.2, 2.3, 2.4, 2.5
|
16
|
+
gem 'rubocop', '~> 0.57.0'
|
17
|
+
gem 'rubocop-rspec', '~> 1.27.0' # last version that can use rubocop < 0.58
|
18
|
+
end
|
19
|
+
gem 'pry', '~> 0.11' if ruby_version >= Gem::Version.new('2.0')
|
20
|
+
|
21
|
+
gem 'addressable', '~> 2.3.8'
|
22
|
+
gem 'backports'
|
23
|
+
gem 'coveralls'
|
24
|
+
gem 'rack', '~> 1.2', :platforms => [:jruby_18, :jruby_19, :ruby_18, :ruby_19, :ruby_20, :ruby_21]
|
25
|
+
gem 'rspec', '>= 3'
|
26
|
+
gem 'simplecov', '>= 0.9'
|
27
|
+
|
28
|
+
platforms :jruby_18, :ruby_18 do
|
29
|
+
gem 'mime-types', '~> 1.25'
|
30
|
+
gem 'rest-client', '~> 1.6.0'
|
31
|
+
end
|
32
|
+
|
33
|
+
platforms :ruby_18, :ruby_19 do
|
34
|
+
gem 'json', '< 2.0'
|
35
|
+
gem 'term-ansicolor', '< 1.4.0'
|
36
|
+
gem 'tins', '< 1.7'
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
gemspec
|
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2011 - 2013 Michael Bleigh and Intridea, Inc.
|
4
|
+
Copyright (c) 2017 - 2018 oauth-xx organization, https://github.com/oauth-xx
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
8
|
+
in the Software without restriction, including without limitation the rights
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
11
|
+
furnished to do so, subject to the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
14
|
+
copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
22
|
+
SOFTWARE.
|
data/README.md
CHANGED
@@ -1,30 +1,55 @@
|
|
1
1
|
# OAuth2
|
2
2
|
|
3
3
|
[][gem]
|
4
|
-
[][gem]
|
5
|
+
[][gem]
|
6
|
+
[][travis]
|
7
7
|
[][coveralls]
|
8
|
+
[][codeclimate-maintainability]
|
9
|
+
[][depfu]
|
10
|
+
[][code-triage]
|
11
|
+
[](https://gitter.im/oauth-xx/oauth2)
|
12
|
+
[][source-license]
|
13
|
+
[][inch-ci]
|
8
14
|
|
9
15
|
[gem]: https://rubygems.org/gems/oauth2
|
10
|
-
[travis]: http://travis-ci.org/
|
11
|
-
[
|
12
|
-
[codeclimate]: https://codeclimate.com/github/
|
13
|
-
[
|
16
|
+
[travis]: http://travis-ci.org/oauth-xx/oauth2
|
17
|
+
[coveralls]: https://coveralls.io/r/oauth-xx/oauth2
|
18
|
+
[codeclimate-maintainability]: https://codeclimate.com/github/oauth-xx/oauth2/maintainability
|
19
|
+
[depfu]: https://depfu.com/github/oauth-xx/oauth2
|
20
|
+
[source-license]: https://opensource.org/licenses/MIT
|
21
|
+
[inch-ci]: http://inch-ci.org/github/oauth-xx/oauth2
|
22
|
+
[code-triage]: https://www.codetriage.com/oauth-xx/oauth2
|
14
23
|
|
15
|
-
A Ruby wrapper for the OAuth 2.0 specification.
|
24
|
+
A Ruby wrapper for the [OAuth 2.0 specification][oauth2-spec].
|
25
|
+
|
26
|
+
[oauth2-spec]: https://oauth.net/2/
|
16
27
|
|
17
28
|
## Installation
|
18
|
-
|
29
|
+
|
30
|
+
Add this line to your application's Gemfile:
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
gem 'oauth2'
|
34
|
+
```
|
35
|
+
|
36
|
+
And then execute:
|
37
|
+
|
38
|
+
$ bundle
|
39
|
+
|
40
|
+
Or install it yourself as:
|
41
|
+
|
42
|
+
$ gem install oauth2
|
19
43
|
|
20
44
|
## Resources
|
45
|
+
|
21
46
|
* [View Source on GitHub][code]
|
22
47
|
* [Report Issues on GitHub][issues]
|
23
48
|
* [Read More at the Wiki][wiki]
|
24
49
|
|
25
|
-
[code]: https://github.com/
|
26
|
-
[issues]: https://github.com/
|
27
|
-
[wiki]: https://
|
50
|
+
[code]: https://github.com/oauth-xx/oauth2
|
51
|
+
[issues]: https://github.com/oauth-xx/oauth2/issues
|
52
|
+
[wiki]: https://github.com/oauth-xx/oauth2/wiki
|
28
53
|
|
29
54
|
## Usage Examples
|
30
55
|
|
@@ -100,18 +125,37 @@ You can always use the #request method on the OAuth2::Client instance to make
|
|
100
125
|
requests for tokens for any Authentication grant type.
|
101
126
|
|
102
127
|
## Supported Ruby Versions
|
128
|
+
|
103
129
|
This library aims to support and is [tested against][travis] the following Ruby
|
104
130
|
implementations:
|
105
131
|
|
132
|
+
### Rubies with support ending at Oauth2 1.x
|
133
|
+
|
106
134
|
* Ruby 1.9.3
|
135
|
+
- [JRuby 1.7][jruby-1.7] (targets MRI v1.9)
|
136
|
+
|
107
137
|
* Ruby 2.0.0
|
138
|
+
- [JRuby 9.0][jruby-9.0] (targets MRI v2.0)
|
108
139
|
* Ruby 2.1
|
109
|
-
* Ruby 2.2
|
110
|
-
* Ruby 2.3
|
111
|
-
* Ruby 2.4
|
112
|
-
* [JRuby 9K][jruby]
|
113
140
|
|
114
|
-
|
141
|
+
---
|
142
|
+
|
143
|
+
### Rubies with continued support past Oauth2 2.x
|
144
|
+
|
145
|
+
* Ruby 2.2 - Support ends with version 2.x series
|
146
|
+
* Ruby 2.3 - Support ends with version 3.x series
|
147
|
+
- [JRuby 9.1][jruby-9.1] (targets MRI v2.3)
|
148
|
+
* Ruby 2.4 - Support ends with version 4.x series
|
149
|
+
* Ruby 2.5 - Support ends with version 5.x series
|
150
|
+
- [JRuby 9.2][jruby-9.2] (targets MRI v2.5)
|
151
|
+
- [truffleruby][truffleruby] (targets MRI 2.5)
|
152
|
+
* Ruby 2.6 - Support ends with version 6.x series
|
153
|
+
|
154
|
+
[jruby-1.7]: https://www.jruby.org/2017/05/11/jruby-1-7-27.html
|
155
|
+
[jruby-9.0]: https://www.jruby.org/2016/01/26/jruby-9-0-5-0.html
|
156
|
+
[jruby-9.1]: https://www.jruby.org/2017/05/16/jruby-9-1-9-0.html
|
157
|
+
[jruby-9.2]: https://www.jruby.org/2018/05/24/jruby-9-2-0-0.html
|
158
|
+
[truffleruby]: https://github.com/oracle/truffleruby
|
115
159
|
|
116
160
|
If something doesn't work on one of these interpreters, it's a bug.
|
117
161
|
|
@@ -126,8 +170,51 @@ implementation, you will be responsible for providing patches in a timely
|
|
126
170
|
fashion. If critical issues for a particular implementation exist at the time
|
127
171
|
of a major release, support for that Ruby version may be dropped.
|
128
172
|
|
173
|
+
## Versioning
|
174
|
+
|
175
|
+
This library aims to adhere to [Semantic Versioning 2.0.0][semver].
|
176
|
+
Violations of this scheme should be reported as bugs. Specifically,
|
177
|
+
if a minor or patch version is released that breaks backward
|
178
|
+
compatibility, a new version should be immediately released that
|
179
|
+
restores compatibility. Breaking changes to the public API will
|
180
|
+
only be introduced with new major versions.
|
181
|
+
|
182
|
+
As a result of this policy, you can (and should) specify a
|
183
|
+
dependency on this gem using the [Pessimistic Version Constraint][pvc] with two digits of precision.
|
184
|
+
|
185
|
+
For example:
|
186
|
+
|
187
|
+
```ruby
|
188
|
+
spec.add_dependency 'oauth2', '~> 1.4'
|
189
|
+
```
|
190
|
+
|
191
|
+
[semver]: http://semver.org/
|
192
|
+
[pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint
|
193
|
+
|
129
194
|
## License
|
130
|
-
Copyright (c) 2011-2013 Michael Bleigh and Intridea, Inc. See [LICENSE][] for
|
131
|
-
details.
|
132
195
|
|
133
|
-
[
|
196
|
+
[][source-license]
|
197
|
+
|
198
|
+
- Copyright (c) 2011-2013 Michael Bleigh and Intridea, Inc.
|
199
|
+
- Copyright (c) 2017-2018 [oauth-xx organization][oauth-xx]
|
200
|
+
- See [LICENSE][license] for details.
|
201
|
+
|
202
|
+
[][fossa2]
|
203
|
+
|
204
|
+
[license]: LICENSE
|
205
|
+
[oauth-xx]: https://github.com/oauth-xx
|
206
|
+
[fossa2]: https://app.fossa.io/projects/git%2Bgithub.com%2Foauth-xx%2Foauth2?ref=badge_large
|
207
|
+
|
208
|
+
## Development
|
209
|
+
|
210
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
211
|
+
|
212
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
213
|
+
|
214
|
+
## Contributing
|
215
|
+
|
216
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/oauth-xx/oauth2. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
217
|
+
|
218
|
+
## Code of Conduct
|
219
|
+
|
220
|
+
Everyone interacting in the OAuth2 project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/oauth-xx/oauth2/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
# !/usr/bin/env rake
|
4
|
+
|
5
|
+
require 'bundler/gem_tasks'
|
6
|
+
|
7
|
+
begin
|
8
|
+
require 'wwtd/tasks'
|
9
|
+
rescue LoadError
|
10
|
+
puts 'failed to load wwtd'
|
11
|
+
end
|
12
|
+
|
13
|
+
begin
|
14
|
+
require 'rspec/core/rake_task'
|
15
|
+
RSpec::Core::RakeTask.new(:spec)
|
16
|
+
rescue LoadError
|
17
|
+
task :spec do
|
18
|
+
warn 'rspec is disabled'
|
19
|
+
end
|
20
|
+
end
|
21
|
+
task :test => :spec
|
22
|
+
|
23
|
+
begin
|
24
|
+
require 'rubocop/rake_task'
|
25
|
+
RuboCop::RakeTask.new do |task|
|
26
|
+
task.options = ['-D'] # Display the name of the failing cops
|
27
|
+
end
|
28
|
+
rescue LoadError
|
29
|
+
task :rubocop do
|
30
|
+
warn 'RuboCop is disabled'
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
namespace :doc do
|
35
|
+
require 'rdoc/task'
|
36
|
+
require File.expand_path('../lib/oauth2/version', __FILE__)
|
37
|
+
RDoc::Task.new do |rdoc|
|
38
|
+
rdoc.rdoc_dir = 'rdoc'
|
39
|
+
rdoc.title = "oauth2 #{OAuth2::Version}"
|
40
|
+
rdoc.main = 'README.md'
|
41
|
+
rdoc.rdoc_files.include('README.md', 'LICENSE.md', 'lib/**/*.rb')
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
task :default => [:test, :rubocop]
|
data/lib/oauth2/mac_token.rb
CHANGED
data/lib/oauth2/version.rb
CHANGED
data/oauth2.gemspec
CHANGED
@@ -5,21 +5,40 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
require 'oauth2/version'
|
6
6
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
|
-
spec.add_dependency 'faraday', ['>= 0.8', '< 0
|
9
|
-
spec.add_dependency 'jwt', '
|
8
|
+
spec.add_dependency 'faraday', ['>= 0.8', '< 2.0']
|
9
|
+
spec.add_dependency 'jwt', ['>= 1.0', '< 3.0']
|
10
10
|
spec.add_dependency 'multi_json', '~> 1.3'
|
11
11
|
spec.add_dependency 'multi_xml', '~> 0.5'
|
12
12
|
spec.add_dependency 'rack', ['>= 1.2', '< 3']
|
13
|
-
|
14
|
-
spec.authors = ['Michael Bleigh', 'Erik Michaels-Ober']
|
13
|
+
|
14
|
+
spec.authors = ['Peter Boling', 'Michael Bleigh', 'Erik Michaels-Ober']
|
15
15
|
spec.description = 'A Ruby wrapper for the OAuth 2.0 protocol built with a similar style to the original OAuth spec.'
|
16
|
-
spec.email = ['
|
17
|
-
spec.
|
18
|
-
spec.homepage = 'http://github.com/intridea/oauth2'
|
16
|
+
spec.email = ['peter.boling@gmail.com']
|
17
|
+
spec.homepage = 'https://github.com/oauth-xx/oauth2'
|
19
18
|
spec.licenses = %w[MIT]
|
20
19
|
spec.name = 'oauth2'
|
21
|
-
spec.
|
20
|
+
spec.required_ruby_version = '>= 1.9.0'
|
22
21
|
spec.required_rubygems_version = '>= 1.3.5'
|
23
22
|
spec.summary = 'A Ruby wrapper for the OAuth 2.0 protocol.'
|
24
23
|
spec.version = OAuth2::Version
|
24
|
+
|
25
|
+
spec.require_paths = %w[lib]
|
26
|
+
spec.bindir = 'exe'
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
29
|
+
f.match(%r{^(bin|test|spec|features)/})
|
30
|
+
end
|
31
|
+
|
32
|
+
spec.add_development_dependency 'addressable', '~> 2.3'
|
33
|
+
spec.add_development_dependency 'backports', '~> 3.11'
|
34
|
+
spec.add_development_dependency 'bundler', '>= 1.16'
|
35
|
+
spec.add_development_dependency 'coveralls', '~> 0.8'
|
36
|
+
spec.add_development_dependency 'rake', '~> 12.3'
|
37
|
+
spec.add_development_dependency 'rdoc', ['>= 5.0', '< 7']
|
38
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
39
|
+
spec.add_development_dependency 'rspec-stubbed_env'
|
40
|
+
spec.add_development_dependency 'rspec-pending_for'
|
41
|
+
spec.add_development_dependency 'rspec-block_is_expected'
|
42
|
+
spec.add_development_dependency 'silent_stream'
|
43
|
+
spec.add_development_dependency 'wwtd'
|
25
44
|
end
|
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oauth2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
+
- Peter Boling
|
7
8
|
- Michael Bleigh
|
8
9
|
- Erik Michaels-Ober
|
9
10
|
autorequire:
|
10
|
-
bindir:
|
11
|
+
bindir: exe
|
11
12
|
cert_chain: []
|
12
|
-
date:
|
13
|
+
date: 2019-10-01 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: faraday
|
@@ -20,7 +21,7 @@ dependencies:
|
|
20
21
|
version: '0.8'
|
21
22
|
- - "<"
|
22
23
|
- !ruby/object:Gem::Version
|
23
|
-
version: '0
|
24
|
+
version: '2.0'
|
24
25
|
type: :runtime
|
25
26
|
prerelease: false
|
26
27
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -30,21 +31,27 @@ dependencies:
|
|
30
31
|
version: '0.8'
|
31
32
|
- - "<"
|
32
33
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0
|
34
|
+
version: '2.0'
|
34
35
|
- !ruby/object:Gem::Dependency
|
35
36
|
name: jwt
|
36
37
|
requirement: !ruby/object:Gem::Requirement
|
37
38
|
requirements:
|
38
|
-
- - "
|
39
|
+
- - ">="
|
39
40
|
- !ruby/object:Gem::Version
|
40
41
|
version: '1.0'
|
42
|
+
- - "<"
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: '3.0'
|
41
45
|
type: :runtime
|
42
46
|
prerelease: false
|
43
47
|
version_requirements: !ruby/object:Gem::Requirement
|
44
48
|
requirements:
|
45
|
-
- - "
|
49
|
+
- - ">="
|
46
50
|
- !ruby/object:Gem::Version
|
47
51
|
version: '1.0'
|
52
|
+
- - "<"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
48
55
|
- !ruby/object:Gem::Dependency
|
49
56
|
name: multi_json
|
50
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -93,33 +100,219 @@ dependencies:
|
|
93
100
|
- - "<"
|
94
101
|
- !ruby/object:Gem::Version
|
95
102
|
version: '3'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: addressable
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '2.3'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '2.3'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: backports
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '3.11'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '3.11'
|
96
131
|
- !ruby/object:Gem::Dependency
|
97
132
|
name: bundler
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '1.16'
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '1.16'
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: coveralls
|
98
147
|
requirement: !ruby/object:Gem::Requirement
|
99
148
|
requirements:
|
100
149
|
- - "~>"
|
101
150
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
151
|
+
version: '0.8'
|
103
152
|
type: :development
|
104
153
|
prerelease: false
|
105
154
|
version_requirements: !ruby/object:Gem::Requirement
|
106
155
|
requirements:
|
107
156
|
- - "~>"
|
108
157
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
158
|
+
version: '0.8'
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: rake
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - "~>"
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '12.3'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - "~>"
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '12.3'
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
name: rdoc
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - ">="
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '5.0'
|
180
|
+
- - "<"
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '7'
|
183
|
+
type: :development
|
184
|
+
prerelease: false
|
185
|
+
version_requirements: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - ">="
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '5.0'
|
190
|
+
- - "<"
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: '7'
|
193
|
+
- !ruby/object:Gem::Dependency
|
194
|
+
name: rspec
|
195
|
+
requirement: !ruby/object:Gem::Requirement
|
196
|
+
requirements:
|
197
|
+
- - "~>"
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: '3.0'
|
200
|
+
type: :development
|
201
|
+
prerelease: false
|
202
|
+
version_requirements: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - "~>"
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: '3.0'
|
207
|
+
- !ruby/object:Gem::Dependency
|
208
|
+
name: rspec-stubbed_env
|
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-block_is_expected
|
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'
|
263
|
+
- !ruby/object:Gem::Dependency
|
264
|
+
name: wwtd
|
265
|
+
requirement: !ruby/object:Gem::Requirement
|
266
|
+
requirements:
|
267
|
+
- - ">="
|
268
|
+
- !ruby/object:Gem::Version
|
269
|
+
version: '0'
|
270
|
+
type: :development
|
271
|
+
prerelease: false
|
272
|
+
version_requirements: !ruby/object:Gem::Requirement
|
273
|
+
requirements:
|
274
|
+
- - ">="
|
275
|
+
- !ruby/object:Gem::Version
|
276
|
+
version: '0'
|
110
277
|
description: A Ruby wrapper for the OAuth 2.0 protocol built with a similar style
|
111
278
|
to the original OAuth spec.
|
112
279
|
email:
|
113
|
-
-
|
114
|
-
- sferik@gmail.com
|
280
|
+
- peter.boling@gmail.com
|
115
281
|
executables: []
|
116
282
|
extensions: []
|
117
283
|
extra_rdoc_files: []
|
118
284
|
files:
|
119
285
|
- ".document"
|
286
|
+
- ".gitignore"
|
287
|
+
- ".jrubyrc"
|
288
|
+
- ".rspec"
|
289
|
+
- ".rubocop.yml"
|
290
|
+
- ".rubocop_rspec.yml"
|
291
|
+
- ".rubocop_todo.yml"
|
292
|
+
- ".ruby-version"
|
293
|
+
- ".travis.yml"
|
294
|
+
- CHANGELOG.md
|
295
|
+
- CODE_OF_CONDUCT.md
|
120
296
|
- CONTRIBUTING.md
|
121
|
-
-
|
297
|
+
- Gemfile
|
298
|
+
- LICENSE
|
122
299
|
- README.md
|
300
|
+
- Rakefile
|
301
|
+
- gemfiles/jruby_1.7.gemfile
|
302
|
+
- gemfiles/jruby_9.0.gemfile
|
303
|
+
- gemfiles/jruby_9.1.gemfile
|
304
|
+
- gemfiles/jruby_9.2.gemfile
|
305
|
+
- gemfiles/jruby_head.gemfile
|
306
|
+
- gemfiles/ruby_1.9.gemfile
|
307
|
+
- gemfiles/ruby_2.0.gemfile
|
308
|
+
- gemfiles/ruby_2.1.gemfile
|
309
|
+
- gemfiles/ruby_2.2.gemfile
|
310
|
+
- gemfiles/ruby_2.3.gemfile
|
311
|
+
- gemfiles/ruby_2.4.gemfile
|
312
|
+
- gemfiles/ruby_2.5.gemfile
|
313
|
+
- gemfiles/ruby_2.6.gemfile
|
314
|
+
- gemfiles/ruby_head.gemfile
|
315
|
+
- gemfiles/truffleruby.gemfile
|
123
316
|
- lib/oauth2.rb
|
124
317
|
- lib/oauth2/access_token.rb
|
125
318
|
- lib/oauth2/authenticator.rb
|
@@ -135,7 +328,7 @@ files:
|
|
135
328
|
- lib/oauth2/strategy/password.rb
|
136
329
|
- lib/oauth2/version.rb
|
137
330
|
- oauth2.gemspec
|
138
|
-
homepage:
|
331
|
+
homepage: https://github.com/oauth-xx/oauth2
|
139
332
|
licenses:
|
140
333
|
- MIT
|
141
334
|
metadata: {}
|
@@ -147,15 +340,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
147
340
|
requirements:
|
148
341
|
- - ">="
|
149
342
|
- !ruby/object:Gem::Version
|
150
|
-
version:
|
343
|
+
version: 1.9.0
|
151
344
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
345
|
requirements:
|
153
346
|
- - ">="
|
154
347
|
- !ruby/object:Gem::Version
|
155
348
|
version: 1.3.5
|
156
349
|
requirements: []
|
157
|
-
|
158
|
-
rubygems_version: 2.6.11
|
350
|
+
rubygems_version: 3.0.3
|
159
351
|
signing_key:
|
160
352
|
specification_version: 4
|
161
353
|
summary: A Ruby wrapper for the OAuth 2.0 protocol.
|
data/LICENSE.md
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright (c) 2011-2013 Michael Bleigh and Intridea, Inc.
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|