oauth2 1.4.0 → 1.4.8
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/CHANGELOG.md +187 -0
- data/CODE_OF_CONDUCT.md +133 -0
- data/LICENSE +22 -0
- data/README.md +336 -61
- data/lib/oauth2/access_token.rb +12 -4
- data/lib/oauth2/authenticator.rb +10 -0
- data/lib/oauth2/client.rb +67 -23
- data/lib/oauth2/error.rb +1 -1
- data/lib/oauth2/mac_token.rb +17 -11
- data/lib/oauth2/response.rb +5 -3
- data/lib/oauth2/strategy/assertion.rb +3 -3
- data/lib/oauth2/strategy/password.rb +2 -2
- data/lib/oauth2/version.rb +9 -3
- data/spec/helper.rb +30 -0
- data/spec/oauth2/access_token_spec.rb +216 -0
- data/spec/oauth2/authenticator_spec.rb +84 -0
- data/spec/oauth2/client_spec.rb +530 -0
- data/spec/oauth2/mac_token_spec.rb +120 -0
- data/spec/oauth2/response_spec.rb +90 -0
- data/spec/oauth2/strategy/assertion_spec.rb +59 -0
- data/spec/oauth2/strategy/auth_code_spec.rb +107 -0
- data/spec/oauth2/strategy/base_spec.rb +5 -0
- data/spec/oauth2/strategy/client_credentials_spec.rb +69 -0
- data/spec/oauth2/strategy/implicit_spec.rb +26 -0
- data/spec/oauth2/strategy/password_spec.rb +56 -0
- data/spec/oauth2/version_spec.rb +23 -0
- metadata +206 -24
- data/.document +0 -5
- data/CONTRIBUTING.md +0 -18
- data/LICENSE.md +0 -20
- data/oauth2.gemspec +0 -25
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.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
+
- Peter Boling
|
7
8
|
- Michael Bleigh
|
8
9
|
- Erik Michaels-Ober
|
9
|
-
autorequire:
|
10
|
-
bindir:
|
10
|
+
autorequire:
|
11
|
+
bindir: exe
|
11
12
|
cert_chain: []
|
12
|
-
date:
|
13
|
+
date: 2022-02-18 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: '3.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: '3.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,32 +100,177 @@ 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: rake
|
98
147
|
requirement: !ruby/object:Gem::Requirement
|
99
148
|
requirements:
|
100
149
|
- - "~>"
|
101
150
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
151
|
+
version: '12.3'
|
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: '12.3'
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: rdoc
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - ">="
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '5.0'
|
166
|
+
- - "<"
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: '7'
|
169
|
+
type: :development
|
170
|
+
prerelease: false
|
171
|
+
version_requirements: !ruby/object:Gem::Requirement
|
172
|
+
requirements:
|
173
|
+
- - ">="
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: '5.0'
|
176
|
+
- - "<"
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: '7'
|
179
|
+
- !ruby/object:Gem::Dependency
|
180
|
+
name: rspec
|
181
|
+
requirement: !ruby/object:Gem::Requirement
|
182
|
+
requirements:
|
183
|
+
- - "~>"
|
184
|
+
- !ruby/object:Gem::Version
|
185
|
+
version: '3.0'
|
186
|
+
type: :development
|
187
|
+
prerelease: false
|
188
|
+
version_requirements: !ruby/object:Gem::Requirement
|
189
|
+
requirements:
|
190
|
+
- - "~>"
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: '3.0'
|
193
|
+
- !ruby/object:Gem::Dependency
|
194
|
+
name: rspec-block_is_expected
|
195
|
+
requirement: !ruby/object:Gem::Requirement
|
196
|
+
requirements:
|
197
|
+
- - ">="
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: '0'
|
200
|
+
type: :development
|
201
|
+
prerelease: false
|
202
|
+
version_requirements: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - ">="
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: '0'
|
207
|
+
- !ruby/object:Gem::Dependency
|
208
|
+
name: rspec-pending_for
|
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-stubbed_env
|
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: silent_stream
|
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: wwtd
|
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'
|
110
263
|
description: A Ruby wrapper for the OAuth 2.0 protocol built with a similar style
|
111
264
|
to the original OAuth spec.
|
112
265
|
email:
|
113
|
-
-
|
114
|
-
- sferik@gmail.com
|
266
|
+
- peter.boling@gmail.com
|
115
267
|
executables: []
|
116
268
|
extensions: []
|
117
269
|
extra_rdoc_files: []
|
118
270
|
files:
|
119
|
-
-
|
120
|
-
-
|
121
|
-
- LICENSE
|
271
|
+
- CHANGELOG.md
|
272
|
+
- CODE_OF_CONDUCT.md
|
273
|
+
- LICENSE
|
122
274
|
- README.md
|
123
275
|
- lib/oauth2.rb
|
124
276
|
- lib/oauth2/access_token.rb
|
@@ -134,12 +286,30 @@ files:
|
|
134
286
|
- lib/oauth2/strategy/implicit.rb
|
135
287
|
- lib/oauth2/strategy/password.rb
|
136
288
|
- lib/oauth2/version.rb
|
137
|
-
-
|
138
|
-
|
289
|
+
- spec/helper.rb
|
290
|
+
- spec/oauth2/access_token_spec.rb
|
291
|
+
- spec/oauth2/authenticator_spec.rb
|
292
|
+
- spec/oauth2/client_spec.rb
|
293
|
+
- spec/oauth2/mac_token_spec.rb
|
294
|
+
- spec/oauth2/response_spec.rb
|
295
|
+
- spec/oauth2/strategy/assertion_spec.rb
|
296
|
+
- spec/oauth2/strategy/auth_code_spec.rb
|
297
|
+
- spec/oauth2/strategy/base_spec.rb
|
298
|
+
- spec/oauth2/strategy/client_credentials_spec.rb
|
299
|
+
- spec/oauth2/strategy/implicit_spec.rb
|
300
|
+
- spec/oauth2/strategy/password_spec.rb
|
301
|
+
- spec/oauth2/version_spec.rb
|
302
|
+
homepage: https://github.com/oauth-xx/oauth2
|
139
303
|
licenses:
|
140
304
|
- MIT
|
141
|
-
metadata:
|
142
|
-
|
305
|
+
metadata:
|
306
|
+
bug_tracker_uri: https://github.com/oauth-xx/oauth2/issues
|
307
|
+
changelog_uri: https://github.com/oauth-xx/oauth2/blob/v1.4.8/CHANGELOG.md
|
308
|
+
documentation_uri: https://www.rubydoc.info/gems/oauth2/1.4.8
|
309
|
+
source_code_uri: https://github.com/oauth-xx/oauth2/tree/v1.4.8
|
310
|
+
wiki_uri: https://github.com/oauth-xx/oauth2/wiki
|
311
|
+
rubygems_mfa_required: 'true'
|
312
|
+
post_install_message:
|
143
313
|
rdoc_options: []
|
144
314
|
require_paths:
|
145
315
|
- lib
|
@@ -147,16 +317,28 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
147
317
|
requirements:
|
148
318
|
- - ">="
|
149
319
|
- !ruby/object:Gem::Version
|
150
|
-
version:
|
320
|
+
version: 1.9.0
|
151
321
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
322
|
requirements:
|
153
323
|
- - ">="
|
154
324
|
- !ruby/object:Gem::Version
|
155
325
|
version: 1.3.5
|
156
326
|
requirements: []
|
157
|
-
|
158
|
-
|
159
|
-
signing_key:
|
327
|
+
rubygems_version: 3.3.7
|
328
|
+
signing_key:
|
160
329
|
specification_version: 4
|
161
330
|
summary: A Ruby wrapper for the OAuth 2.0 protocol.
|
162
|
-
test_files:
|
331
|
+
test_files:
|
332
|
+
- spec/helper.rb
|
333
|
+
- spec/oauth2/access_token_spec.rb
|
334
|
+
- spec/oauth2/authenticator_spec.rb
|
335
|
+
- spec/oauth2/client_spec.rb
|
336
|
+
- spec/oauth2/mac_token_spec.rb
|
337
|
+
- spec/oauth2/response_spec.rb
|
338
|
+
- spec/oauth2/strategy/assertion_spec.rb
|
339
|
+
- spec/oauth2/strategy/auth_code_spec.rb
|
340
|
+
- spec/oauth2/strategy/base_spec.rb
|
341
|
+
- spec/oauth2/strategy/client_credentials_spec.rb
|
342
|
+
- spec/oauth2/strategy/implicit_spec.rb
|
343
|
+
- spec/oauth2/strategy/password_spec.rb
|
344
|
+
- spec/oauth2/version_spec.rb
|
data/.document
DELETED
data/CONTRIBUTING.md
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
## Submitting a Pull Request
|
2
|
-
1. [Fork the repository.][fork]
|
3
|
-
2. [Create a topic branch.][branch]
|
4
|
-
3. Add specs for your unimplemented feature or bug fix.
|
5
|
-
4. Run `bundle exec rake spec`. If your specs pass, return to step 3.
|
6
|
-
5. Implement your feature or bug fix.
|
7
|
-
6. Run `bundle exec rake`. If your specs fail, return to step 5.
|
8
|
-
7. Run `open coverage/index.html`. If your changes are not completely covered
|
9
|
-
by your tests, return to step 3.
|
10
|
-
8. Add documentation for your feature or bug fix.
|
11
|
-
9. Run `bundle exec rake verify_measurements`. If your changes are not 100%
|
12
|
-
documented, go back to step 8.
|
13
|
-
10. Commit and push your changes.
|
14
|
-
11. [Submit a pull request.][pr]
|
15
|
-
|
16
|
-
[fork]: http://help.github.com/fork-a-repo/
|
17
|
-
[branch]: http://learn.github.com/p/branching.html
|
18
|
-
[pr]: http://help.github.com/send-pull-requests/
|
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.
|
data/oauth2.gemspec
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
lib = File.expand_path('../lib', __FILE__)
|
4
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
-
require 'oauth2/version'
|
6
|
-
|
7
|
-
Gem::Specification.new do |spec|
|
8
|
-
spec.add_dependency 'faraday', ['>= 0.8', '< 0.13']
|
9
|
-
spec.add_dependency 'jwt', '~> 1.0'
|
10
|
-
spec.add_dependency 'multi_json', '~> 1.3'
|
11
|
-
spec.add_dependency 'multi_xml', '~> 0.5'
|
12
|
-
spec.add_dependency 'rack', ['>= 1.2', '< 3']
|
13
|
-
spec.add_development_dependency 'bundler', '~> 1.0'
|
14
|
-
spec.authors = ['Michael Bleigh', 'Erik Michaels-Ober']
|
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 = ['michael@intridea.com', 'sferik@gmail.com']
|
17
|
-
spec.files = %w[.document CONTRIBUTING.md LICENSE.md README.md oauth2.gemspec] + Dir['lib/**/*.rb']
|
18
|
-
spec.homepage = 'http://github.com/intridea/oauth2'
|
19
|
-
spec.licenses = %w[MIT]
|
20
|
-
spec.name = 'oauth2'
|
21
|
-
spec.require_paths = %w[lib]
|
22
|
-
spec.required_rubygems_version = '>= 1.3.5'
|
23
|
-
spec.summary = 'A Ruby wrapper for the OAuth 2.0 protocol.'
|
24
|
-
spec.version = OAuth2::Version
|
25
|
-
end
|