oauth 0.5.14 → 1.1.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 (69) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +1 -0
  3. data/CHANGELOG.md +663 -239
  4. data/CITATION.cff +20 -0
  5. data/CODE_OF_CONDUCT.md +79 -29
  6. data/CONTRIBUTING.md +264 -15
  7. data/FUNDING.md +74 -0
  8. data/LICENSE.md +71 -0
  9. data/README.md +642 -297
  10. data/RUBOCOP.md +71 -0
  11. data/SECURITY.md +11 -12
  12. data/certs/pboling.pem +27 -0
  13. data/lib/oauth/auth_sanitizer.rb +36 -0
  14. data/lib/oauth/client/action_controller_request.rb +24 -12
  15. data/lib/oauth/client/em_http.rb +107 -100
  16. data/lib/oauth/client/helper.rb +80 -72
  17. data/lib/oauth/client/net_http.rb +139 -106
  18. data/lib/oauth/client.rb +2 -0
  19. data/lib/oauth/consumer.rb +250 -118
  20. data/lib/oauth/errors/error.rb +2 -0
  21. data/lib/oauth/errors/problem.rb +4 -1
  22. data/lib/oauth/errors/unauthorized.rb +4 -0
  23. data/lib/oauth/errors.rb +2 -0
  24. data/lib/oauth/helper.rb +34 -8
  25. data/lib/oauth/oauth.rb +32 -8
  26. data/lib/oauth/oauth_test_helper.rb +2 -0
  27. data/lib/oauth/optional.rb +20 -0
  28. data/lib/oauth/request_proxy/action_controller_request.rb +14 -31
  29. data/lib/oauth/request_proxy/action_dispatch_request.rb +34 -0
  30. data/lib/oauth/request_proxy/base.rb +42 -31
  31. data/lib/oauth/request_proxy/em_http_request.rb +53 -52
  32. data/lib/oauth/request_proxy/jabber_request.rb +9 -2
  33. data/lib/oauth/request_proxy/mock_request.rb +1 -1
  34. data/lib/oauth/request_proxy/net_http.rb +6 -8
  35. data/lib/oauth/request_proxy/rack_request.rb +0 -4
  36. data/lib/oauth/request_proxy/rest_client_request.rb +6 -4
  37. data/lib/oauth/request_proxy.rb +20 -13
  38. data/lib/oauth/server.rb +14 -6
  39. data/lib/oauth/signature/base.rb +82 -66
  40. data/lib/oauth/signature/hmac/sha1.rb +15 -9
  41. data/lib/oauth/signature/hmac/sha256.rb +15 -9
  42. data/lib/oauth/signature/plaintext.rb +18 -20
  43. data/lib/oauth/signature/rsa/sha1.rb +53 -38
  44. data/lib/oauth/signature.rb +40 -33
  45. data/lib/oauth/token.rb +2 -0
  46. data/lib/oauth/tokens/access_token.rb +3 -1
  47. data/lib/oauth/tokens/consumer_token.rb +10 -6
  48. data/lib/oauth/tokens/request_token.rb +12 -4
  49. data/lib/oauth/tokens/server_token.rb +2 -0
  50. data/lib/oauth/tokens/token.rb +15 -1
  51. data/lib/oauth/version.rb +6 -1
  52. data/lib/oauth.rb +11 -2
  53. data/sig/oauth/consumer.rbs +9 -0
  54. data/sig/oauth/signature/base.rbs +12 -0
  55. data/sig/oauth/tokens/token.rbs +8 -0
  56. data/sig/oauth/version.rbs +6 -0
  57. data.tar.gz.sig +0 -0
  58. metadata +349 -90
  59. metadata.gz.sig +0 -0
  60. data/LICENSE +0 -21
  61. data/TODO +0 -32
  62. data/bin/oauth +0 -11
  63. data/lib/oauth/cli/authorize_command.rb +0 -69
  64. data/lib/oauth/cli/base_command.rb +0 -210
  65. data/lib/oauth/cli/help_command.rb +0 -22
  66. data/lib/oauth/cli/query_command.rb +0 -25
  67. data/lib/oauth/cli/sign_command.rb +0 -78
  68. data/lib/oauth/cli/version_command.rb +0 -7
  69. data/lib/oauth/cli.rb +0 -56
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.14
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pelle Braendgaard
@@ -13,19 +13,80 @@ authors:
13
13
  - Matt Sanford
14
14
  - Aaron Quint
15
15
  - Peter Boling
16
- autorequire:
17
- bindir: bin
18
- cert_chain: []
19
- date: 2022-08-29 00:00:00.000000000 Z
16
+ bindir: exe
17
+ cert_chain:
18
+ - |
19
+ -----BEGIN CERTIFICATE-----
20
+ MIIEgDCCAuigAwIBAgIBATANBgkqhkiG9w0BAQsFADBDMRUwEwYDVQQDDAxwZXRl
21
+ ci5ib2xpbmcxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkW
22
+ A2NvbTAeFw0yNTA1MDQxNTMzMDlaFw00NTA0MjkxNTMzMDlaMEMxFTATBgNVBAMM
23
+ DHBldGVyLmJvbGluZzEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPy
24
+ LGQBGRYDY29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAruUoo0WA
25
+ uoNuq6puKWYeRYiZekz/nsDeK5x/0IEirzcCEvaHr3Bmz7rjo1I6On3gGKmiZs61
26
+ LRmQ3oxy77ydmkGTXBjruJB+pQEn7UfLSgQ0xa1/X3kdBZt6RmabFlBxnHkoaGY5
27
+ mZuZ5+Z7walmv6sFD9ajhzj+oIgwWfnEHkXYTR8I6VLN7MRRKGMPoZ/yvOmxb2DN
28
+ coEEHWKO9CvgYpW7asIihl/9GMpKiRkcYPm9dGQzZc6uTwom1COfW0+ZOFrDVBuV
29
+ FMQRPswZcY4Wlq0uEBLPU7hxnCL9nKK6Y9IhdDcz1mY6HZ91WImNslOSI0S8hRpj
30
+ yGOWxQIhBT3fqCBlRIqFQBudrnD9jSNpSGsFvbEijd5ns7Z9ZMehXkXDycpGAUj1
31
+ to/5cuTWWw1JqUWrKJYoifnVhtE1o1DZ+LkPtWxHtz5kjDG/zR3MG0Ula0UOavlD
32
+ qbnbcXPBnwXtTFeZ3C+yrWpE4pGnl3yGkZj9SMTlo9qnTMiPmuWKQDatAgMBAAGj
33
+ fzB9MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBQE8uWvNbPVNRXZ
34
+ HlgPbc2PCzC4bjAhBgNVHREEGjAYgRZwZXRlci5ib2xpbmdAZ21haWwuY29tMCEG
35
+ A1UdEgQaMBiBFnBldGVyLmJvbGluZ0BnbWFpbC5jb20wDQYJKoZIhvcNAQELBQAD
36
+ ggGBAJbnUwfJQFPkBgH9cL7hoBfRtmWiCvdqdjeTmi04u8zVNCUox0A4gT982DE9
37
+ wmuN12LpdajxZONqbXuzZvc+nb0StFwmFYZG6iDwaf4BPywm2e/Vmq0YG45vZXGR
38
+ L8yMDSK1cQXjmA+ZBKOHKWavxP6Vp7lWvjAhz8RFwqF9GuNIdhv9NpnCAWcMZtpm
39
+ GUPyIWw/Cw/2wZp74QzZj6Npx+LdXoLTF1HMSJXZ7/pkxLCsB8m4EFVdb/IrW/0k
40
+ kNSfjtAfBHO8nLGuqQZVH9IBD1i9K6aSs7pT6TW8itXUIlkIUI2tg5YzW6OFfPzq
41
+ QekSkX3lZfY+HTSp/o+YvKkqWLUV7PQ7xh1ZYDtocpaHwgxe/j3bBqHE+CUPH2vA
42
+ 0V/FwdTRWcwsjVoOJTrYcff8pBZ8r2MvtAc54xfnnhGFzeRHfcltobgFxkAXdE6p
43
+ DVjBtqT23eugOqQ73umLcYDZkc36vnqGxUBSsXrzY9pzV5gGr2I8YUxMqf6ATrZt
44
+ L9nRqA==
45
+ -----END CERTIFICATE-----
46
+ date: 1980-01-02 00:00:00.000000000 Z
20
47
  dependencies:
21
48
  - !ruby/object:Gem::Dependency
22
- name: curb
49
+ name: auth-sanitizer
50
+ requirement: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.2'
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: 0.2.1
58
+ type: :runtime
59
+ prerelease: false
60
+ version_requirements: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - "~>"
63
+ - !ruby/object:Gem::Version
64
+ version: '0.2'
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: 0.2.1
68
+ - !ruby/object:Gem::Dependency
69
+ name: base64
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '0.1'
75
+ type: :runtime
76
+ prerelease: false
77
+ version_requirements: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '0.1'
82
+ - !ruby/object:Gem::Dependency
83
+ name: cgi
23
84
  requirement: !ruby/object:Gem::Requirement
24
85
  requirements:
25
86
  - - ">="
26
87
  - !ruby/object:Gem::Version
27
88
  version: '0'
28
- type: :development
89
+ type: :runtime
29
90
  prerelease: false
30
91
  version_requirements: !ruby/object:Gem::Requirement
31
92
  requirements:
@@ -33,47 +94,247 @@ dependencies:
33
94
  - !ruby/object:Gem::Version
34
95
  version: '0'
35
96
  - !ruby/object:Gem::Dependency
36
- name: em-http-request
97
+ name: oauth-tty
37
98
  requirement: !ruby/object:Gem::Requirement
38
99
  requirements:
39
100
  - - "~>"
40
101
  - !ruby/object:Gem::Version
41
- version: 1.1.7
102
+ version: '1.0'
103
+ - - ">="
104
+ - !ruby/object:Gem::Version
105
+ version: 1.0.8
106
+ type: :runtime
107
+ prerelease: false
108
+ version_requirements: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - "~>"
111
+ - !ruby/object:Gem::Version
112
+ version: '1.0'
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: 1.0.8
116
+ - !ruby/object:Gem::Dependency
117
+ name: snaky_hash
118
+ requirement: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - "~>"
121
+ - !ruby/object:Gem::Version
122
+ version: '2.0'
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: 2.0.5
126
+ type: :runtime
127
+ prerelease: false
128
+ version_requirements: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - "~>"
131
+ - !ruby/object:Gem::Version
132
+ version: '2.0'
133
+ - - ">="
134
+ - !ruby/object:Gem::Version
135
+ version: 2.0.5
136
+ - !ruby/object:Gem::Dependency
137
+ name: version_gem
138
+ requirement: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - "~>"
141
+ - !ruby/object:Gem::Version
142
+ version: '1.1'
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: 1.1.11
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '1.1'
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ version: 1.1.11
156
+ - !ruby/object:Gem::Dependency
157
+ name: kettle-dev
158
+ requirement: !ruby/object:Gem::Requirement
159
+ requirements:
160
+ - - "~>"
161
+ - !ruby/object:Gem::Version
162
+ version: '2.1'
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ version: 2.1.1
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - "~>"
171
+ - !ruby/object:Gem::Version
172
+ version: '2.1'
173
+ - - ">="
174
+ - !ruby/object:Gem::Version
175
+ version: 2.1.1
176
+ - !ruby/object:Gem::Dependency
177
+ name: bundler-audit
178
+ requirement: !ruby/object:Gem::Requirement
179
+ requirements:
180
+ - - "~>"
181
+ - !ruby/object:Gem::Version
182
+ version: 0.9.3
42
183
  type: :development
43
184
  prerelease: false
44
185
  version_requirements: !ruby/object:Gem::Requirement
45
186
  requirements:
46
187
  - - "~>"
47
188
  - !ruby/object:Gem::Version
48
- version: 1.1.7
189
+ version: 0.9.3
49
190
  - !ruby/object:Gem::Dependency
50
- name: iconv
191
+ name: rake
51
192
  requirement: !ruby/object:Gem::Requirement
52
193
  requirements:
194
+ - - "~>"
195
+ - !ruby/object:Gem::Version
196
+ version: '13.0'
197
+ type: :development
198
+ prerelease: false
199
+ version_requirements: !ruby/object:Gem::Requirement
200
+ requirements:
201
+ - - "~>"
202
+ - !ruby/object:Gem::Version
203
+ version: '13.0'
204
+ - !ruby/object:Gem::Dependency
205
+ name: require_bench
206
+ requirement: !ruby/object:Gem::Requirement
207
+ requirements:
208
+ - - "~>"
209
+ - !ruby/object:Gem::Version
210
+ version: '1.0'
53
211
  - - ">="
54
212
  - !ruby/object:Gem::Version
55
- version: '0'
213
+ version: 1.0.4
56
214
  type: :development
57
215
  prerelease: false
58
216
  version_requirements: !ruby/object:Gem::Requirement
59
217
  requirements:
218
+ - - "~>"
219
+ - !ruby/object:Gem::Version
220
+ version: '1.0'
60
221
  - - ">="
61
222
  - !ruby/object:Gem::Version
62
- version: '0'
223
+ version: 1.0.4
224
+ - !ruby/object:Gem::Dependency
225
+ name: appraisal2
226
+ requirement: !ruby/object:Gem::Requirement
227
+ requirements:
228
+ - - "~>"
229
+ - !ruby/object:Gem::Version
230
+ version: '3.1'
231
+ - - ">="
232
+ - !ruby/object:Gem::Version
233
+ version: 3.1.1
234
+ type: :development
235
+ prerelease: false
236
+ version_requirements: !ruby/object:Gem::Requirement
237
+ requirements:
238
+ - - "~>"
239
+ - !ruby/object:Gem::Version
240
+ version: '3.1'
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: 3.1.1
63
244
  - !ruby/object:Gem::Dependency
64
- name: minitest
245
+ name: kettle-test
65
246
  requirement: !ruby/object:Gem::Requirement
66
247
  requirements:
67
- - - "<"
248
+ - - "~>"
249
+ - !ruby/object:Gem::Version
250
+ version: '2.0'
251
+ - - ">="
68
252
  - !ruby/object:Gem::Version
69
- version: '5.16'
253
+ version: 2.0.3
70
254
  type: :development
71
255
  prerelease: false
72
256
  version_requirements: !ruby/object:Gem::Requirement
73
257
  requirements:
74
- - - "<"
258
+ - - "~>"
259
+ - !ruby/object:Gem::Version
260
+ version: '2.0'
261
+ - - ">="
75
262
  - !ruby/object:Gem::Version
76
- version: '5.16'
263
+ version: 2.0.3
264
+ - !ruby/object:Gem::Dependency
265
+ name: turbo_tests2
266
+ requirement: !ruby/object:Gem::Requirement
267
+ requirements:
268
+ - - "~>"
269
+ - !ruby/object:Gem::Version
270
+ version: '3.1'
271
+ - - ">="
272
+ - !ruby/object:Gem::Version
273
+ version: 3.1.1
274
+ type: :development
275
+ prerelease: false
276
+ version_requirements: !ruby/object:Gem::Requirement
277
+ requirements:
278
+ - - "~>"
279
+ - !ruby/object:Gem::Version
280
+ version: '3.1'
281
+ - - ">="
282
+ - !ruby/object:Gem::Version
283
+ version: 3.1.1
284
+ - !ruby/object:Gem::Dependency
285
+ name: ruby-progressbar
286
+ requirement: !ruby/object:Gem::Requirement
287
+ requirements:
288
+ - - "~>"
289
+ - !ruby/object:Gem::Version
290
+ version: '1.13'
291
+ type: :development
292
+ prerelease: false
293
+ version_requirements: !ruby/object:Gem::Requirement
294
+ requirements:
295
+ - - "~>"
296
+ - !ruby/object:Gem::Version
297
+ version: '1.13'
298
+ - !ruby/object:Gem::Dependency
299
+ name: stone_checksums
300
+ requirement: !ruby/object:Gem::Requirement
301
+ requirements:
302
+ - - "~>"
303
+ - !ruby/object:Gem::Version
304
+ version: '1.0'
305
+ - - ">="
306
+ - !ruby/object:Gem::Version
307
+ version: 1.0.3
308
+ type: :development
309
+ prerelease: false
310
+ version_requirements: !ruby/object:Gem::Requirement
311
+ requirements:
312
+ - - "~>"
313
+ - !ruby/object:Gem::Version
314
+ version: '1.0'
315
+ - - ">="
316
+ - !ruby/object:Gem::Version
317
+ version: 1.0.3
318
+ - !ruby/object:Gem::Dependency
319
+ name: gitmoji-regex
320
+ requirement: !ruby/object:Gem::Requirement
321
+ requirements:
322
+ - - "~>"
323
+ - !ruby/object:Gem::Version
324
+ version: '2.0'
325
+ - - ">="
326
+ - !ruby/object:Gem::Version
327
+ version: 2.0.1
328
+ type: :development
329
+ prerelease: false
330
+ version_requirements: !ruby/object:Gem::Requirement
331
+ requirements:
332
+ - - "~>"
333
+ - !ruby/object:Gem::Version
334
+ version: '2.0'
335
+ - - ">="
336
+ - !ruby/object:Gem::Version
337
+ version: 2.0.1
77
338
  - !ruby/object:Gem::Dependency
78
339
  name: mocha
79
340
  requirement: !ruby/object:Gem::Requirement
@@ -94,14 +355,14 @@ dependencies:
94
355
  requirements:
95
356
  - - ">="
96
357
  - !ruby/object:Gem::Version
97
- version: '0'
358
+ version: 2.0.0
98
359
  type: :development
99
360
  prerelease: false
100
361
  version_requirements: !ruby/object:Gem::Requirement
101
362
  requirements:
102
363
  - - ">="
103
364
  - !ruby/object:Gem::Version
104
- version: '0'
365
+ version: 2.0.0
105
366
  - !ruby/object:Gem::Dependency
106
367
  name: rack-test
107
368
  requirement: !ruby/object:Gem::Requirement
@@ -117,7 +378,7 @@ dependencies:
117
378
  - !ruby/object:Gem::Version
118
379
  version: '0'
119
380
  - !ruby/object:Gem::Dependency
120
- name: rake
381
+ name: rest-client
121
382
  requirement: !ruby/object:Gem::Requirement
122
383
  requirements:
123
384
  - - ">="
@@ -131,85 +392,96 @@ dependencies:
131
392
  - !ruby/object:Gem::Version
132
393
  version: '0'
133
394
  - !ruby/object:Gem::Dependency
134
- name: rest-client
395
+ name: typhoeus
135
396
  requirement: !ruby/object:Gem::Requirement
136
397
  requirements:
137
398
  - - ">="
138
399
  - !ruby/object:Gem::Version
139
- version: '0'
400
+ version: 0.1.13
140
401
  type: :development
141
402
  prerelease: false
142
403
  version_requirements: !ruby/object:Gem::Requirement
143
404
  requirements:
144
405
  - - ">="
145
406
  - !ruby/object:Gem::Version
146
- version: '0'
407
+ version: 0.1.13
147
408
  - !ruby/object:Gem::Dependency
148
- name: rubocop-lts
409
+ name: backports
149
410
  requirement: !ruby/object:Gem::Requirement
150
411
  requirements:
151
412
  - - "~>"
152
413
  - !ruby/object:Gem::Version
153
- version: '4.0'
414
+ version: '3.25'
415
+ - - ">="
416
+ - !ruby/object:Gem::Version
417
+ version: 3.25.1
154
418
  type: :development
155
419
  prerelease: false
156
420
  version_requirements: !ruby/object:Gem::Requirement
157
421
  requirements:
158
422
  - - "~>"
159
423
  - !ruby/object:Gem::Version
160
- version: '4.0'
424
+ version: '3.25'
425
+ - - ">="
426
+ - !ruby/object:Gem::Version
427
+ version: 3.25.1
161
428
  - !ruby/object:Gem::Dependency
162
- name: typhoeus
429
+ name: vcr
163
430
  requirement: !ruby/object:Gem::Requirement
164
431
  requirements:
165
432
  - - ">="
166
433
  - !ruby/object:Gem::Version
167
- version: 0.1.13
434
+ version: '4'
168
435
  type: :development
169
436
  prerelease: false
170
437
  version_requirements: !ruby/object:Gem::Requirement
171
438
  requirements:
172
439
  - - ">="
173
440
  - !ruby/object:Gem::Version
174
- version: 0.1.13
441
+ version: '4'
175
442
  - !ruby/object:Gem::Dependency
176
443
  name: webmock
177
444
  requirement: !ruby/object:Gem::Requirement
178
445
  requirements:
179
- - - "<="
446
+ - - ">="
180
447
  - !ruby/object:Gem::Version
181
- version: 3.14.0
448
+ version: '3'
182
449
  type: :development
183
450
  prerelease: false
184
451
  version_requirements: !ruby/object:Gem::Requirement
185
452
  requirements:
186
- - - "<="
453
+ - - ">="
187
454
  - !ruby/object:Gem::Version
188
- version: 3.14.0
189
- description:
190
- email: oauth-ruby@googlegroups.com
191
- executables:
192
- - oauth
455
+ version: '3'
456
+ description: "\U0001F511 A Ruby wrapper for the original OAuth 1.0 / 1.0a spec."
457
+ email:
458
+ - floss@galtzo.com
459
+ - oauth-ruby@googlegroups.com
460
+ executables: []
193
461
  extensions: []
194
462
  extra_rdoc_files:
195
- - TODO
463
+ - CHANGELOG.md
464
+ - CITATION.cff
465
+ - CODE_OF_CONDUCT.md
466
+ - CONTRIBUTING.md
467
+ - FUNDING.md
468
+ - LICENSE.md
469
+ - README.md
470
+ - RUBOCOP.md
471
+ - SECURITY.md
196
472
  files:
197
473
  - CHANGELOG.md
474
+ - CITATION.cff
198
475
  - CODE_OF_CONDUCT.md
199
476
  - CONTRIBUTING.md
200
- - LICENSE
477
+ - FUNDING.md
478
+ - LICENSE.md
201
479
  - README.md
480
+ - RUBOCOP.md
202
481
  - SECURITY.md
203
- - TODO
204
- - bin/oauth
482
+ - certs/pboling.pem
205
483
  - lib/oauth.rb
206
- - lib/oauth/cli.rb
207
- - lib/oauth/cli/authorize_command.rb
208
- - lib/oauth/cli/base_command.rb
209
- - lib/oauth/cli/help_command.rb
210
- - lib/oauth/cli/query_command.rb
211
- - lib/oauth/cli/sign_command.rb
212
- - lib/oauth/cli/version_command.rb
484
+ - lib/oauth/auth_sanitizer.rb
213
485
  - lib/oauth/client.rb
214
486
  - lib/oauth/client/action_controller_request.rb
215
487
  - lib/oauth/client/em_http.rb
@@ -223,6 +495,7 @@ files:
223
495
  - lib/oauth/helper.rb
224
496
  - lib/oauth/oauth.rb
225
497
  - lib/oauth/oauth_test_helper.rb
498
+ - lib/oauth/optional.rb
226
499
  - lib/oauth/request_proxy.rb
227
500
  - lib/oauth/request_proxy/action_controller_request.rb
228
501
  - lib/oauth/request_proxy/action_dispatch_request.rb
@@ -249,62 +522,48 @@ files:
249
522
  - lib/oauth/tokens/server_token.rb
250
523
  - lib/oauth/tokens/token.rb
251
524
  - lib/oauth/version.rb
252
- homepage: https://github.com/oauth-xx/oauth-ruby
525
+ - sig/oauth/consumer.rbs
526
+ - sig/oauth/signature/base.rbs
527
+ - sig/oauth/tokens/token.rbs
528
+ - sig/oauth/version.rbs
529
+ homepage: https://github.com/ruby-oauth/oauth
253
530
  licenses:
254
531
  - MIT
255
532
  metadata:
256
- homepage_uri: https://github.com/oauth-xx/oauth-ruby
257
- source_code_uri: https://github.com/oauth-xx/oauth-ruby/tree/v0.5.14
258
- changelog_uri: https://github.com/oauth-xx/oauth-ruby/blob/v0.5.14/CHANGELOG.md
259
- bug_tracker_uri: https://github.com/oauth-xx/oauth-ruby/issues
260
- documentation_uri: https://www.rubydoc.info/gems/oauth/0.5.14
261
- wiki_uri: https://github.com/oauth-xx/oauth-ruby/wiki
533
+ homepage_uri: https://oauth.galtzo.com
534
+ source_code_uri: https://github.com/ruby-oauth/oauth/tree/v1.1.6
535
+ changelog_uri: https://github.com/ruby-oauth/oauth/blob/v1.1.6/CHANGELOG.md
536
+ bug_tracker_uri: https://github.com/ruby-oauth/oauth/issues
537
+ documentation_uri: https://www.rubydoc.info/gems/oauth/1.1.6
538
+ funding_uri: https://github.com/sponsors/pboling
539
+ wiki_uri: https://github.com/ruby-oauth/oauth/wiki
540
+ news_uri: https://www.railsbling.com/tags/oauth
541
+ discord_uri: https://discord.gg/3qme4XHNKN
262
542
  rubygems_mfa_required: 'true'
263
- post_install_message: |2+
264
-
265
- You have installed oauth version 0.5.14, congratulations!
266
-
267
- Support for the 0.5.x series will end by April, 2023. Please upgrade to 0.6.x or 1.x as soon as possible!
268
- For 0.6.x the only breaking change will be dropped support for Ruby 2.0, 2.1, 2.2, and 2.3.
269
- For 1.x the only breaking change will be dropped support for Ruby 2.4, 2.5, and 2.6.
270
-
271
- Please see:
272
- https://github.com/oauth-xx/oauth-ruby/blob/main/SECURITY.md
273
-
274
- Note also that I am, and this project is, in the process of leaving Github.
275
- I wrote about some of the reasons here:
276
- • https://dev.to/galtzo/im-leaving-github-50ba
277
-
278
- If you are a human, please consider a donation as I move toward supporting myself with Open Source work:
279
- • https://liberapay.com/pboling
280
- • https://ko-fi.com/pboling
281
- • https://patreon.com/galtzo
282
-
283
- If you are a corporation, please consider supporting this project, and open source work generally, with a TideLift subscription.
284
- • https://tidelift.com/funding/github/rubygems/oauth
285
- • Or hire me. I am looking for a job!
286
-
287
- Please report issues, and support the project!
288
-
289
- Thanks, |7eter l-|. l3oling
290
-
291
- rdoc_options: []
543
+ rdoc_options:
544
+ - "--title"
545
+ - "oauth - \U0001F511 OAuth 1.0 / 1.0a Core Ruby implementation"
546
+ - "--main"
547
+ - README.md
548
+ - "--exclude"
549
+ - "^sig/"
550
+ - "--line-numbers"
551
+ - "--inline-source"
552
+ - "--quiet"
292
553
  require_paths:
293
554
  - lib
294
555
  required_ruby_version: !ruby/object:Gem::Requirement
295
556
  requirements:
296
557
  - - ">="
297
558
  - !ruby/object:Gem::Version
298
- version: '2.0'
559
+ version: '2.3'
299
560
  required_rubygems_version: !ruby/object:Gem::Requirement
300
561
  requirements:
301
562
  - - ">="
302
563
  - !ruby/object:Gem::Version
303
564
  version: '0'
304
565
  requirements: []
305
- rubygems_version: 3.3.21
306
- signing_key:
566
+ rubygems_version: 4.0.10
307
567
  specification_version: 4
308
- summary: OAuth Core Ruby implementation
568
+ summary: "\U0001F511 OAuth 1.0 / 1.0a Core Ruby implementation"
309
569
  test_files: []
310
- ...
metadata.gz.sig ADDED
Binary file
data/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2007-2012, 2016-2017, 2020-2021 Blaine Cook, Larry Halff, Pelle Braendgaard, Peter Boling
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
data/TODO DELETED
@@ -1,32 +0,0 @@
1
- Common use-cases should be streamlined:
2
-
3
- * I have a URL that I want to sign (given consumer key/secret, optional
4
- token/secret, optional nonce/timestamp).
5
- * I have a URL that I want to sign AND I want to see what the components
6
- (e.g. signature base string, etc.) are while it's being signed (i.e. verbose
7
- signing).
8
- * I have a URL that I want to sign and I only want the signature.
9
- * I have a URL that I want to sign and I want something suitable to put in
10
- {the header, the querystring, XMPP}.
11
- * I want to make a query to an OAuth-enabled web service (with sensible
12
- errors, if available).
13
- * I want to host an OAuth-enabled web service.
14
- * I want to test my OAuth-enabled web service (i.e. test helpers)
15
-
16
- Example applications for:
17
- * Ning
18
- * Fire Eagle
19
- * Google (blogger, contacts)
20
- * Twitter
21
- * YOS / YQL
22
- * Netflix
23
-
24
- In addition to providing best practices of use, these can also be part of
25
- the pre-release checks to make sure that there have been no regressions.
26
-
27
- Random TODOs:
28
- * finish CLI
29
- * sensible Exception hierarchy
30
- * Tokens as Modules
31
- * don't tie to Net::HTTP
32
- * Take a look at Curb HTTP Verbs
data/bin/oauth DELETED
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require_relative "../lib/oauth"
4
- require "oauth/cli"
5
-
6
- Signal.trap("INT") { puts; exit(1) } # don't dump a backtrace on a ^C
7
-
8
- ARGV << "help" if ARGV.empty?
9
- command = ARGV.shift
10
-
11
- OAuth::CLI.new(STDOUT, STDIN, STDERR, command, ARGV).run