oauth2 1.3.1 → 1.4.7
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 +170 -0
- data/CODE_OF_CONDUCT.md +133 -0
- data/LICENSE +22 -0
- data/README.md +137 -23
- data/lib/oauth2/access_token.rb +12 -4
- data/lib/oauth2/authenticator.rb +10 -0
- data/lib/oauth2/client.rb +63 -16
- data/lib/oauth2/mac_token.rb +11 -3
- 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 +10 -4
- data/spec/helper.rb +37 -0
- data/spec/oauth2/access_token_spec.rb +216 -0
- data/spec/oauth2/authenticator_spec.rb +84 -0
- data/spec/oauth2/client_spec.rb +506 -0
- data/spec/oauth2/mac_token_spec.rb +117 -0
- data/spec/oauth2/response_spec.rb +90 -0
- data/spec/oauth2/strategy/assertion_spec.rb +58 -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 +55 -0
- data/spec/oauth2/version_spec.rb +23 -0
- metadata +219 -24
- data/.document +0 -5
- data/CONTRIBUTING.md +0 -18
- data/LICENSE.md +0 -20
- data/oauth2.gemspec +0 -24
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
|
+
version: 1.4.7
|
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: 2021-03-19 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,32 +100,191 @@ 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-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'
|
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
|
-
-
|
120
|
-
-
|
121
|
-
- LICENSE
|
285
|
+
- CHANGELOG.md
|
286
|
+
- CODE_OF_CONDUCT.md
|
287
|
+
- LICENSE
|
122
288
|
- README.md
|
123
289
|
- lib/oauth2.rb
|
124
290
|
- lib/oauth2/access_token.rb
|
@@ -134,12 +300,29 @@ files:
|
|
134
300
|
- lib/oauth2/strategy/implicit.rb
|
135
301
|
- lib/oauth2/strategy/password.rb
|
136
302
|
- lib/oauth2/version.rb
|
137
|
-
-
|
138
|
-
|
303
|
+
- spec/helper.rb
|
304
|
+
- spec/oauth2/access_token_spec.rb
|
305
|
+
- spec/oauth2/authenticator_spec.rb
|
306
|
+
- spec/oauth2/client_spec.rb
|
307
|
+
- spec/oauth2/mac_token_spec.rb
|
308
|
+
- spec/oauth2/response_spec.rb
|
309
|
+
- spec/oauth2/strategy/assertion_spec.rb
|
310
|
+
- spec/oauth2/strategy/auth_code_spec.rb
|
311
|
+
- spec/oauth2/strategy/base_spec.rb
|
312
|
+
- spec/oauth2/strategy/client_credentials_spec.rb
|
313
|
+
- spec/oauth2/strategy/implicit_spec.rb
|
314
|
+
- spec/oauth2/strategy/password_spec.rb
|
315
|
+
- spec/oauth2/version_spec.rb
|
316
|
+
homepage: https://github.com/oauth-xx/oauth2
|
139
317
|
licenses:
|
140
318
|
- MIT
|
141
|
-
metadata:
|
142
|
-
|
319
|
+
metadata:
|
320
|
+
bug_tracker_uri: https://github.com/oauth-xx/oauth2/issues
|
321
|
+
changelog_uri: https://github.com/oauth-xx/oauth2/blob/v1.4.7/CHANGELOG.md
|
322
|
+
documentation_uri: https://www.rubydoc.info/gems/oauth2/1.4.7
|
323
|
+
source_code_uri: https://github.com/oauth-xx/oauth2/tree/v1.4.7
|
324
|
+
wiki_uri: https://github.com/oauth-xx/oauth2/wiki
|
325
|
+
post_install_message:
|
143
326
|
rdoc_options: []
|
144
327
|
require_paths:
|
145
328
|
- lib
|
@@ -147,16 +330,28 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
147
330
|
requirements:
|
148
331
|
- - ">="
|
149
332
|
- !ruby/object:Gem::Version
|
150
|
-
version:
|
333
|
+
version: 1.9.0
|
151
334
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
335
|
requirements:
|
153
336
|
- - ">="
|
154
337
|
- !ruby/object:Gem::Version
|
155
338
|
version: 1.3.5
|
156
339
|
requirements: []
|
157
|
-
|
158
|
-
|
159
|
-
signing_key:
|
340
|
+
rubygems_version: 3.2.9
|
341
|
+
signing_key:
|
160
342
|
specification_version: 4
|
161
343
|
summary: A Ruby wrapper for the OAuth 2.0 protocol.
|
162
|
-
test_files:
|
344
|
+
test_files:
|
345
|
+
- spec/helper.rb
|
346
|
+
- spec/oauth2/client_spec.rb
|
347
|
+
- spec/oauth2/version_spec.rb
|
348
|
+
- spec/oauth2/authenticator_spec.rb
|
349
|
+
- spec/oauth2/mac_token_spec.rb
|
350
|
+
- spec/oauth2/access_token_spec.rb
|
351
|
+
- spec/oauth2/response_spec.rb
|
352
|
+
- spec/oauth2/strategy/password_spec.rb
|
353
|
+
- spec/oauth2/strategy/client_credentials_spec.rb
|
354
|
+
- spec/oauth2/strategy/assertion_spec.rb
|
355
|
+
- spec/oauth2/strategy/implicit_spec.rb
|
356
|
+
- spec/oauth2/strategy/auth_code_spec.rb
|
357
|
+
- spec/oauth2/strategy/base_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,24 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'oauth2/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.add_dependency 'faraday', ['>= 0.8', '< 0.12']
|
8
|
-
spec.add_dependency 'jwt', '~> 1.0'
|
9
|
-
spec.add_dependency 'multi_json', '~> 1.3'
|
10
|
-
spec.add_dependency 'multi_xml', '~> 0.5'
|
11
|
-
spec.add_dependency 'rack', ['>= 1.2', '< 3']
|
12
|
-
spec.add_development_dependency 'bundler', '~> 1.0'
|
13
|
-
spec.authors = ['Michael Bleigh', 'Erik Michaels-Ober']
|
14
|
-
spec.description = 'A Ruby wrapper for the OAuth 2.0 protocol built with a similar style to the original OAuth spec.'
|
15
|
-
spec.email = ['michael@intridea.com', 'sferik@gmail.com']
|
16
|
-
spec.files = %w(.document CONTRIBUTING.md LICENSE.md README.md oauth2.gemspec) + Dir['lib/**/*.rb']
|
17
|
-
spec.homepage = 'http://github.com/intridea/oauth2'
|
18
|
-
spec.licenses = %w(MIT)
|
19
|
-
spec.name = 'oauth2'
|
20
|
-
spec.require_paths = %w(lib)
|
21
|
-
spec.required_rubygems_version = '>= 1.3.5'
|
22
|
-
spec.summary = 'A Ruby wrapper for the OAuth 2.0 protocol.'
|
23
|
-
spec.version = OAuth2::Version
|
24
|
-
end
|