oauth 0.5.6 → 1.1.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.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/CHANGELOG.md +915 -0
  4. data/CITATION.cff +20 -0
  5. data/CODE_OF_CONDUCT.md +134 -0
  6. data/CONTRIBUTING.md +272 -0
  7. data/FUNDING.md +74 -0
  8. data/LICENSE.md +71 -0
  9. data/README.md +718 -0
  10. data/RUBOCOP.md +71 -0
  11. data/SECURITY.md +21 -0
  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 +33 -22
  15. data/lib/oauth/client/em_http.rb +110 -103
  16. data/lib/oauth/client/helper.rb +87 -82
  17. data/lib/oauth/client/net_http.rb +140 -107
  18. data/lib/oauth/client.rb +2 -0
  19. data/lib/oauth/consumer.rb +282 -149
  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 +7 -1
  23. data/lib/oauth/errors.rb +5 -3
  24. data/lib/oauth/helper.rb +48 -18
  25. data/lib/oauth/oauth.rb +31 -7
  26. data/lib/oauth/oauth_test_helper.rb +6 -4
  27. data/lib/oauth/optional.rb +20 -0
  28. data/lib/oauth/request_proxy/action_controller_request.rb +53 -71
  29. data/lib/oauth/request_proxy/action_dispatch_request.rb +42 -4
  30. data/lib/oauth/request_proxy/base.rb +146 -131
  31. data/lib/oauth/request_proxy/curb_request.rb +49 -43
  32. data/lib/oauth/request_proxy/em_http_request.rb +60 -49
  33. data/lib/oauth/request_proxy/jabber_request.rb +19 -9
  34. data/lib/oauth/request_proxy/mock_request.rb +5 -3
  35. data/lib/oauth/request_proxy/net_http.rb +61 -54
  36. data/lib/oauth/request_proxy/rack_request.rb +31 -31
  37. data/lib/oauth/request_proxy/rest_client_request.rb +55 -50
  38. data/lib/oauth/request_proxy/typhoeus_request.rb +51 -45
  39. data/lib/oauth/request_proxy.rb +21 -14
  40. data/lib/oauth/server.rb +18 -12
  41. data/lib/oauth/signature/base.rb +88 -71
  42. data/lib/oauth/signature/hmac/sha1.rb +16 -10
  43. data/lib/oauth/signature/hmac/sha256.rb +16 -10
  44. data/lib/oauth/signature/plaintext.rb +18 -20
  45. data/lib/oauth/signature/rsa/sha1.rb +71 -38
  46. data/lib/oauth/signature.rb +41 -34
  47. data/lib/oauth/token.rb +7 -5
  48. data/lib/oauth/tokens/access_token.rb +6 -4
  49. data/lib/oauth/tokens/consumer_token.rb +11 -7
  50. data/lib/oauth/tokens/request_token.rb +17 -10
  51. data/lib/oauth/tokens/server_token.rb +2 -1
  52. data/lib/oauth/tokens/token.rb +15 -1
  53. data/lib/oauth/version.rb +6 -1
  54. data/lib/oauth.rb +19 -9
  55. data/sig/oauth/consumer.rbs +9 -0
  56. data/sig/oauth/signature/base.rbs +12 -0
  57. data/sig/oauth/tokens/token.rbs +8 -0
  58. data/sig/oauth/version.rbs +6 -0
  59. data.tar.gz.sig +2 -0
  60. metadata +313 -84
  61. metadata.gz.sig +3 -0
  62. data/LICENSE +0 -20
  63. data/README.rdoc +0 -88
  64. data/TODO +0 -32
  65. data/bin/oauth +0 -11
  66. data/lib/oauth/cli/authorize_command.rb +0 -71
  67. data/lib/oauth/cli/base_command.rb +0 -208
  68. data/lib/oauth/cli/help_command.rb +0 -22
  69. data/lib/oauth/cli/query_command.rb +0 -25
  70. data/lib/oauth/cli/sign_command.rb +0 -81
  71. data/lib/oauth/cli/version_command.rb +0 -7
  72. data/lib/oauth/cli.rb +0 -56
data/CHANGELOG.md ADDED
@@ -0,0 +1,915 @@
1
+ # Changelog
2
+
3
+ [![SemVer 2.0.0][📌semver-img]][📌semver] [![Keep-A-Changelog 1.0.0][📗keep-changelog-img]][📗keep-changelog]
4
+
5
+ All notable changes to this project will be documented in this file.
6
+
7
+ The format is based on [Keep a Changelog][📗keep-changelog],
8
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
9
+ and [yes][📌major-versions-not-sacred], platform and engine support are part of the [public API][📌semver-breaking].
10
+ Please file a bug if you notice a violation of semantic versioning.
11
+
12
+ [📌semver]: https://semver.org/spec/v2.0.0.html
13
+ [📌semver-img]: https://img.shields.io/badge/semver-2.0.0-FFDD67.svg?style=flat
14
+ [📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
15
+ [📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
16
+ [📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
17
+ [📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
18
+
19
+ ## [Unreleased]
20
+
21
+ ### Added
22
+
23
+ ### Changed
24
+
25
+ ### Deprecated
26
+
27
+ ### Removed
28
+
29
+ ### Fixed
30
+
31
+ ### Security
32
+
33
+ ## [1.1.7] - 2026-06-15
34
+
35
+ - TAG: [v1.1.7][1.1.7t]
36
+ - COVERAGE: 88.32% -- 839/950 lines in 33 files
37
+ - BRANCH COVERAGE: 58.67% -- 159/271 branches in 33 files
38
+ - 40.38% documented
39
+
40
+ ### Changed
41
+
42
+ - Retemplated repository metadata, workflows, modular gemfiles, documentation
43
+ scaffolding, `version_gem` >= 1.1.12, and templating-isolated local workspace
44
+ Gemfile wiring with the current `kettle-jem` template.
45
+ - Raised the `auth-sanitizer` runtime dependency floor to `>= 0.2.1`, so OAuth
46
+ consumers get hash and nested-attribute inspect redaction fixes plus
47
+ downstream RBS duplicate-declaration fixes.
48
+
49
+ - Raised the `oauth-tty` runtime dependency floor to `>= 1.0.9`.
50
+
51
+ - Raised the `oauth-tty` runtime dependency floor to `>= 1.0.10`, removing
52
+ the transitive external `cgi` runtime dependency for Ruby 2.4 consumers.
53
+
54
+ ### Fixed
55
+
56
+ - Restored `docs/CNAME` so the generated documentation site keeps its custom domain.
57
+
58
+ - Pinned older Ruby appraisals to Rack 2.2 so `rack-test` remains compatible
59
+ with the Ruby 2.4, Ruby 2.5, and JRuby 9.2 CI jobs.
60
+ - Derived an RSA public key from PEM private-key strings before signature
61
+ verification, matching JRuby OpenSSL behavior while preserving RSA-SHA1
62
+ verification semantics.
63
+
64
+ - Removed the external `cgi` runtime dependency because the only `cgi` gem
65
+ releases installable on Ruby 2.4 call `String#delete_prefix`, which is
66
+ unavailable on Ruby 2.4.
67
+ - Removed the external `erb` dependency from the Ruby 2.4 appraisal because
68
+ Ruby 2.4 already provides ERB and the released `erb` gem depends on external
69
+ `cgi`.
70
+ - Added a private-key-backed RSA-SHA1 verification fallback for JRuby OpenSSL
71
+ versions that raise `OpenSSL::PKey::PKeyError` during public-key
72
+ verification.
73
+
74
+ ## [1.1.6] - 2026-06-07
75
+
76
+ - TAG: [v1.1.6][1.1.6t]
77
+ - COVERAGE: 89.05% -- 838/941 lines in 33 files
78
+ - BRANCH COVERAGE: 60.46% -- 159/263 branches in 33 files
79
+ - 40.38% documented
80
+
81
+ ### Changed
82
+
83
+ - Retemplated project workflows, appraisals, and development tooling with the
84
+ current `kettle-jem` template.
85
+ - Documented current `OAuth::Consumer` configuration options, including token
86
+ request redirect safety settings, and corrected the OAuth 1.0a usage example.
87
+ - Raised the runtime dependency floor for `auth-sanitizer` to `>= 0.2.1`.
88
+ - Raised the runtime dependency floor for `snaky_hash` to `>= 2.0.5`.
89
+
90
+ ### Security
91
+
92
+ - Hardened OAuth token endpoint redirect handling after the GHSA-pp92-crg2-gfv9
93
+ review: token redirects are now bounded, resolved explicitly, and rejected
94
+ when they cross origins unless explicitly enabled.
95
+
96
+ ## [1.1.5] - 2026-05-20
97
+
98
+ - TAG: [v1.1.5][1.1.5t]
99
+ - COVERAGE: 84.79% -- 864/1019 lines in 37 files
100
+ - BRANCH COVERAGE: 54.91% -- 151/275 branches in 37 files
101
+ - 40.86% documented
102
+
103
+ ### Changed
104
+
105
+ - auth-sanitizer v0.1.3
106
+
107
+ ### Fixed
108
+
109
+ - Load `auth-sanitizer` through an internal isolated loader so requiring `oauth` does not add top-level `Auth` or `AuthSanitizer` constants that may collide with downstream applications.
110
+
111
+ ## [1.1.4] - 2026-05-16
112
+
113
+ - TAG: [v1.1.4][1.1.4t]
114
+ - COVERAGE: 84.64% -- 854/1009 lines in 36 files
115
+ - BRANCH COVERAGE: 54.91% -- 151/275 branches in 36 files
116
+ - 40.78% documented
117
+
118
+ ### Added
119
+
120
+ - Add `auth-sanitizer` integration for inspect-time secret redaction in core OAuth objects.
121
+ - Traditional OAuth::VERSION constant
122
+
123
+ ### Changed
124
+
125
+ - Redact sensitive values from `#inspect` in `OAuth::Consumer`, `OAuth::Token`, and `OAuth::Signature::Base`.
126
+
127
+ ## [1.1.3] - 2025-11-06
128
+
129
+ - TAG: [v1.1.3][1.1.3t]
130
+ - COVERAGE: 81.70% -- 817/1000 lines in 36 files
131
+ - BRANCH COVERAGE: 50.54% -- 140/277 branches in 36 files
132
+ - 40.71% documented
133
+
134
+ ### Added
135
+
136
+ - base64 dependency, fixes Ruby 3.4 and 3.5 HEAD compatibility
137
+
138
+ ### Fixed
139
+
140
+ - Fix ActionController request proxy NoMethodError when building signatures
141
+ - define `wrap_values` on `OAuth::RequestProxy::Base`
142
+ - remove duplicate from `ActionDispatchRequest`
143
+ - add specs
144
+
145
+ ## [1.1.2] - 2025-09-21
146
+
147
+ - TAG: [v1.1.2][1.1.2t]
148
+ - COVERAGE: 81.78% -- 817/999 lines in 36 files
149
+ - BRANCH COVERAGE: 50.54% -- 140/277 branches in 36 files
150
+ - 40.71% documented
151
+
152
+ ### Added
153
+
154
+ - Corrected SHA-256 & SHA-512 checksums for release 1.1.1
155
+
156
+ ## [1.1.1] - 2025-09-21
157
+
158
+ - TAG: [v1.1.1][1.1.1t]
159
+ - COVERAGE: 81.70% -- 817/1000 lines in 36 files
160
+ - BRANCH COVERAGE: 50.54% -- 140/277 branches in 36 files
161
+ - 40.71% documented
162
+
163
+ ### Added
164
+
165
+ - kettle-dev v1.1.18
166
+ - Internal escape & unescape methods
167
+ - Stop relying on URI / CGI for escaping and unescaping
168
+ - They are both unstable across supported versions of Ruby (including 3.5 HEAD)
169
+ - Tests against Rails-specific code are now run in CI
170
+ - Documented OAuth 1.0, 1.0a differences
171
+
172
+ ### Changed
173
+
174
+ - converted minitest => rspec
175
+
176
+ ### Removed
177
+
178
+ - dependency on em-http-request
179
+ - now lazy Loaded so it can be optional, since some systems fail to install it, and it doesn't seem maintained
180
+
181
+ ## [1.1.0] 2022-08-29
182
+
183
+ - TAG: [v1.1.0][1.1.0t]
184
+
185
+ ### Changed
186
+
187
+ - `OAuth::CLI` has been extracted to a new gem, `oauth-tty`, hosted on [Gitlab](https://gitlab.com/ruby-oauth/oauth-tty)
188
+ - The public API of `oauth-tty` is backwards compatible (meaning `OAuth::CLI`)
189
+ - The change within the `oauth` gem is backwards compatible as `oauth-tty` has been added as a dependency
190
+ - Minor version bump is cautionary, as many lines of code have changed.
191
+ - `OAuth::Comsumer#options` hash is now handled by `snaky_hash`, which was extracted from `oauth2`
192
+ - symbolized keys, dot-access and snake-case are now normalized
193
+
194
+ ## [1.0.1] 2022-08-29
195
+
196
+ - TAG: [v1.0.1][1.0.1t]
197
+
198
+ ### Changed
199
+
200
+ - `OAuth::Comsumer#options` hash is now handled by `snaky_hash`, which was extracted from `oauth2`
201
+ - symbolized keys, dot-access and snake-case are now normalized
202
+
203
+ ## [1.0.0] 2022-08-23
204
+
205
+ - TAG: [v1.0.0][1.0.0t]
206
+
207
+ ### Changed
208
+
209
+ - Dropped support for Ruby < 2.7
210
+ - Dropped support for Rails < 6
211
+
212
+ ### Added
213
+
214
+ - New EOL Policy
215
+ - Non-commercial support for the oldest version of Ruby (which itself is going EOL) will be dropped each year in April
216
+
217
+ ## [0.6.2] 2022-08-29
218
+
219
+ - TAG: [v0.6.2][0.6.2t]
220
+
221
+ ### Changed
222
+
223
+ - `OAuth::Comsumer#options` hash is now handled by `snaky_hash`, which was extracted from `oauth2`
224
+ - symbolized keys, dot-access and snake-case are now normalized
225
+
226
+ ## [0.6.1] 2022-08-23
227
+
228
+ - TAG: [v0.6.1][0.6.1t]
229
+
230
+ ### Changed
231
+
232
+ - Fixed documentation in SECURITY.md
233
+ - Change references to master => main
234
+
235
+ ### Added
236
+
237
+ - Post install note about v0.6.x EOL approaching in April, 2024
238
+
239
+ ## [0.6.0] 2022-08-23
240
+
241
+ - TAG: [v0.6.0][0.6.0t]
242
+
243
+ ### Added
244
+
245
+ - New option `body_hash_enabled` which defaults to true to maintain backward compatibility with prior releases. Setting to `false` disables generation of a `oauth_body_hash` component as part of the signature computation.
246
+ - Improved documentation of support policy via Tidelift
247
+ - Stop testing against active_support v2
248
+
249
+ ### Changed
250
+
251
+ - Utilize version_gem extracted from oauth2 gem for VERSION
252
+ - Added new `OAuth::Version` namespace
253
+ - VERSION constant now at `OAuth::Version::VERSION`
254
+
255
+ ### Removed
256
+
257
+ - Ruby 2.0, 2.1, 2.2, and 2.3 are no longer valid install targets
258
+
259
+ ## [0.5.14] 2022-08-29
260
+
261
+ - TAG: [v0.5.14][0.5.14t]
262
+
263
+ The "hopeful last 0.5.x" Release
264
+
265
+ ### Fixed
266
+
267
+ - More typos fixed
268
+
269
+ ## [0.5.13] 2022-08-23
270
+
271
+ - TAG: [v0.5.13][0.5.13t]
272
+
273
+ The "I think I caught 'em all!" Release
274
+
275
+ ### Fixed
276
+
277
+ - Typo oauth2 => oauth as gem name in one more place.
278
+
279
+ ## [0.5.12] 2022-08-23
280
+
281
+ - TAG: [v0.5.12][0.5.12t]
282
+
283
+ The "Typoes are just the worst!" Release
284
+
285
+ ### Fixed
286
+
287
+ - Typo oauth2 => oauth as gem name in a couple places.
288
+
289
+ ## [0.5.11] 2022-08-23
290
+
291
+ - TAG: [v0.5.11][0.5.11t]
292
+
293
+ The "Is this the last release with a silly name?" Release
294
+
295
+ ### Added
296
+
297
+ - Post install note about v0.5.x EOL approaching in April, 2023
298
+
299
+ ### Changed
300
+
301
+ - Improved documentation
302
+ - Switched branch references from master to main
303
+ - CI builds are now all green!
304
+
305
+ ## [0.5.10] 2022-05-04
306
+
307
+ - TAG: [v0.5.10][0.5.10t]
308
+
309
+ The "Can it be the end of the line for 0.5.x?" Release
310
+
311
+ ### Added
312
+
313
+ - Major updates to Documentation
314
+ - More CI Hardening
315
+ - Align CI builds with official Ruby Compatibility Matrix
316
+ - Project tooling in preparation for final release of 0.5.x series
317
+ - diffend
318
+
319
+ ## [0.5.9] 2022-05-03
320
+
321
+ - TAG: [v0.5.9][0.5.9t]
322
+
323
+ ### Added
324
+
325
+ - Documentation related to Ruby compatibility
326
+ - Updated CHANGELOG.md formatting
327
+ - Corrected CHANGELOG.md typos
328
+ - Hardened the CI build for the next few years(?!)
329
+ - Require MFA to push new version to Rubygems
330
+ - Replace Hash Rocket syntax with JSON-style symbols where possible
331
+ - Project tooling in preparation for final release of 0.5.x series
332
+ - rubocop-ruby2_0
333
+ - overcommit
334
+
335
+ ## [0.5.8] 2021-11-10
336
+
337
+ - TAG: [v0.5.8][0.5.8t]
338
+
339
+ ### Added
340
+
341
+ - Added more documentation files to packaged gem, e.g. SECURITY.md, CODE_OF_CONDUCT.md
342
+
343
+ ### Fixed
344
+
345
+ - Removed reference to RUBY_VERSION from gemspec, as it depends on rake release, which is problematic on some ruby engines. (by @pboling)
346
+
347
+ ## [0.5.7] 2021-11-02
348
+
349
+ - TAG: [v0.5.7][0.5.7t]
350
+
351
+ ### Added
352
+
353
+ - Setup Rubocop (#205, #208 by @pboling)
354
+ - Added CODE_OF_CONDUCT.md (#217, #218 by @pboling)
355
+ - Added FUNDING.yml (#217, #218 by @pboling)
356
+ - Added Client Certificate Options: :ssl_client_cert and :ssl_client_key (#136, #220 by @pboling)
357
+ - Handle a nested array of hashes in OAuth::Helper.normalize (#80, #221 by @pboling)
358
+
359
+ ### Changed
360
+
361
+ - Switch from TravisCI to Github Actions (#202, #207, #176 by @pboling)
362
+ - Upgrade webmock to v3.14.0 (#196 by @pboling)
363
+ - Upgrade em-http-request to v1.1.7 (#173 by @pboling)
364
+ - Upgrade mocha to v1.13.0 (#193 by @pboling)
365
+ - HISTORY renamed to CHANGELOG.md, and follows Keep a Changelog (#214, #215 by @pboling)
366
+ - CHANGELOG, LICENSE, and README now ship with packaged gem (#214, #215 by @pboling)
367
+ - README.rdoc renamed to README.md (#217, #218 by @pboling)
368
+ - Require plaintext signature method by default (#135 by @confiks & @pboling)
369
+
370
+ ### Fixed
371
+
372
+ - Fixed Infinite Redirect in v0.5.5, v0.5.6 (#186, #210 by @pboling)
373
+ - Fixed NoMethodError on missing leading slash in path (#194, #211 by @pboling)
374
+ - Fixed NoMethodError on nil request object (#165, #212 by @pboling)
375
+ - Fixed Unsafe String Comparison (#156, #209 by @pboling and @drosseau)
376
+ - Fixed typos in Gemspec (#204, #203, #208 by @pboling)
377
+ - Copyright Notice in LICENSE - added correct years (#217, #218 by @pboling)
378
+ - Fixed request proxy Class constant reference scopes - was missing `::` in many places (#225, #226 by @pboling)
379
+
380
+ ### Removed
381
+
382
+ - Remove direct development dependency on nokogiri (#299 by @pboling)
383
+
384
+ ## [0.5.6] 2021-04-02
385
+
386
+ - TAG: [v0.5.6][0.5.6t]
387
+
388
+ ### Added
389
+
390
+ - Add metadata to Gemspec file
391
+ - Add support for PUT requests with Action Controller (#181)
392
+
393
+ ### Changed
394
+
395
+ - Change default timeout to be the same as Net::HTTP default, 60 seconds instead of 30 seconds.
396
+
397
+ ## [0.5.5] 2020-01-19
398
+
399
+ - TAG: [v0.5.5][0.5.5t]
400
+
401
+ ### Added
402
+
403
+ - Add :allow_empty_params option (#155)
404
+
405
+ ### Changed
406
+
407
+ - Allow redirect to different host but same path
408
+ - Various cleanups
409
+
410
+ ### Fixed
411
+
412
+ - Fixes ssl-noverify
413
+ - Fixed README example (#158, #159, by @pboling)
414
+
415
+ ## [0.5.4] 2017-12-08
416
+
417
+ - TAG: [v0.5.4][0.5.4t]
418
+
419
+ ### Changed
420
+
421
+ - Various cleanups (charliesome)
422
+
423
+ ### Fixed
424
+
425
+ - Fixes UnknownRequestType on Rails 5.1 for ActionDispatch::Request (xprazak2)
426
+
427
+ ## [0.5.3] 2017-05-24
428
+
429
+ - TAG: [v0.5.3][0.5.3t]
430
+
431
+ ### Fixed
432
+
433
+ - Fix #145 - broken CLI required loading active_support (James Pinto)
434
+
435
+ ### Changed
436
+
437
+ - Removing legacy scripts (James Pinto)
438
+
439
+ ## [0.5.2] 2017-05-17
440
+
441
+ - TAG: [v0.5.2][0.5.2t]
442
+
443
+ ### Added
444
+
445
+ - Adding a development dependency that had not been mentioned (James Pinto)
446
+ - Adding CodeClimate (James Pinto)
447
+ - Adding support to Ruby 2.4 and head (James Pinto)
448
+
449
+ ### Changed
450
+
451
+ - Use assert_nil so as to silence a Minitest 6 deprecation warning (James Pinto)
452
+ - Stop bundling tests files in the gem (Michal Papis)
453
+ - Minor cleanup on tests (James Pinto)
454
+ - TravisCI no longer needs libcurl-dev (James Pinto)
455
+ - Nokogiri 1.7 does not accept Ruby 2.0 (James Pinto)
456
+ - Upgrading to CodeClimate 1.0 (James Pinto)
457
+ - Locking gemspec to Rails 4 so as to allow our next version for Rails 5 (James Pinto)
458
+ - moving development dependency to gemspec (James Pinto)
459
+ - Silencing 'Net::HTTPResponse#header is obsolete' (James Pinto)
460
+ - Silencing some test warnings (James Pinto)
461
+ - Silencing 'loading in progress, circular require considered harmful' (James Pinto)
462
+ - Silence 'URI.escape obsolete' (James Pinto)
463
+ - Refactored CLI (James Pinto)
464
+ - Moving test files into test/units/ (James Pinto)
465
+ - Reimplementing #82 - Debug Output Option (James Pinto)
466
+
467
+ ### Fixed
468
+
469
+ - Fix #113 adding paths when a full URL has been specified (James Pinto)
470
+ - Bug Fix, webmock 2.0 has introduced a new bug (James Pinto)
471
+ - Making a test/support dir (James Pinto)
472
+ - Fix #177 - Adjusting to webmock latest recommended implementation for minitest (James Pinto)
473
+
474
+ ## [0.5.1] 2016-02-29
475
+
476
+ - TAG: [v0.5.1][0.5.1t]
477
+
478
+ ### Added
479
+
480
+ - Add license info to the gemspec (Robert Reiz)
481
+
482
+ ### Fixed
483
+
484
+ - Proper handling for empty query string in RequestToken#build_authorize_url (midchildan,
485
+ Harald Sitter)
486
+ - Replace calls to String#blank? with its implementation (Sergio Gil Pérez de la Manga)
487
+
488
+ ### Changed
489
+
490
+ - Loosen some development dependencies. Add libcurl-dev to travis
491
+ - Fixes to travis config. Switch to rubygems for installation and loading
492
+
493
+ ### Removed
494
+
495
+ - Remove obsolete comment (Arthur Nogueira Neves)
496
+ - Remove jeweler from gemspec
497
+
498
+ ## [0.5.0] 2016-02-20
499
+
500
+ - TAG: [v0.5.0][0.5.0t]
501
+
502
+ ### Added
503
+
504
+ - Add support for HTTP PATCH method (Richard Huang)
505
+ - Allow reading private key from a string (Khaja Minhajuddin)
506
+ - Add rest-client proxy (Khem Veasna)
507
+ - Add byebug. (Kevin Hughes)
508
+ - Allow reading certificate file path from environment variable. Add CentOS cert file path (Danil Vlasov)
509
+
510
+ ### Changed
511
+
512
+ - Replace jeweler with real spec and bundler tasks
513
+ - Extract version to separate file
514
+ - Use OpenSSL for all digest and hashing. Remove signature methods not defined by OAuth spec. (Kevin Hughes)
515
+ - Change token requests to exclude `oauth_body_hash`. Update doc links in comments. (John Remmen)
516
+
517
+ ### Fixed
518
+
519
+ - Fix ability to pass in an authorize url with a query string (Roger Smith)
520
+ - Fix bug in signature verification (r-stu31)
521
+ - Use standard key name (`oauth_token_secret`) in Token#to_query (Craig Walker)
522
+ - Fix error in CLI when using `query` without supplying a method (grafikchaos)
523
+ - Compatibility fix for Typhoeus >= 0.5.0 (Chad Feller)
524
+ - Rails 3+ / ActiveSupport::SafeBuffer patch (Clif Reeder)
525
+ - Handle `nil` token gracefully for RequestToken#authorize_url (Brian John)
526
+ - Fix typhoeus compatibility (Vladimir Mikhailov)
527
+ - Fix oauth cli option parser on Ruby 2.2 (Felix Bünemann)
528
+ - Update gemspec for security fixes. Convert to Minitest. Add .travis.yml. (Kevin Hughes)
529
+ - Fix some warnings (amatsuda)
530
+ - Various fixes/updates to README (Evan Arnold, Jonathan Camenisch, Brian John, Ankur Sethi)
531
+
532
+ ## [0.4.7] 2012-09-03
533
+
534
+ - TAG: [v0.4.7][0.4.7t]
535
+
536
+ ### Added
537
+
538
+ - Set a configurable timeout for all requests (Rick Olson)
539
+
540
+ ### Fixed
541
+
542
+ - Fix merging paths if the path is not empty
543
+ - Fix nested hash params in Consumer#request (Ernie Miller)
544
+
545
+ ## [0.4.6] 2012-04-21
546
+
547
+ - TAG: [v0.4.6][0.4.6t]
548
+
549
+ ### Changed
550
+
551
+ - Make use the path component of the :site parameter (Jonathon M. Abbott)
552
+
553
+ ### Fixed
554
+
555
+ - Fixed nested attributes in #normalize (Shaliko Usubov)
556
+ - Fixed post body's being dropped in 1.9 (Steven Hammond)
557
+ - Fixed PUT request handling (Anton Panasenko)
558
+
559
+ ## [0.4.5] 2011-06-25
560
+
561
+ - TAG: [v0.4.5][0.4.5t]
562
+
563
+ ### Added
564
+
565
+ - Add explicit require for rsa/sha1 (Juris Galang)
566
+ - Add gemtest support (Adrian Feldman)
567
+
568
+ ### Changed
569
+
570
+ - Use webmock to mock all http-requests in tests (Adrian Feldman)
571
+ - Mention Typhoeus require in the README (Kim Ahlström)
572
+ - Use Net::HTTPGenericRequest (Jakub Kuźma)
573
+
574
+ ### Fixed
575
+
576
+ - Fix POST Requests with Typhoeus proxy (niedhui)
577
+ - Fix incorrect hardcoded port (Ian Taylor)
578
+
579
+ ## [0.4.4] 2010-10-31
580
+
581
+ - TAG: [v0.4.4][0.4.4t]
582
+
583
+ ### Added
584
+
585
+ - Added support for Rails 3 in client/action_controller_request (Pelle)
586
+
587
+ ### Fixed
588
+
589
+ - Fix LoadError rescue in tests: return can't be used in this context (Hans de Graaff)
590
+ - HTTP headers should be strings. (seancribbs)
591
+ - ensure consumer uri gets set back to original config even if an error occurs (Brian Finney)
592
+ - Yahoo uses & to split records in OAuth headers (Brian Finney)
593
+
594
+ ## [0.4.3] 2010-09-01
595
+
596
+ - TAG: [v0.4.3][0.4.3t]
597
+
598
+ ### Fixed
599
+
600
+ - Fix for em-http proxy (ichverstehe)
601
+
602
+ ## [0.4.2] 2010-08-13
603
+
604
+ - TAG: [v0.4.2][0.4.2t]
605
+
606
+ ### Added
607
+
608
+ - Added Bundler (rc) Gemfile for easier dev/testing
609
+
610
+ ### Fixed
611
+
612
+ - Fixed compatibility with Ruby 1.9.2 (ecavazos)
613
+ - Fixed the em-http request proxy (Joshua Hull)
614
+ - Fix for oauth proxy string manipulation (Jakub Suder)
615
+
616
+ ## [0.4.1] 2010-06-16
617
+
618
+ - TAG: [v0.4.1][0.4.1t]
619
+
620
+ ### Added
621
+
622
+ - Added support for using OAuth with proxies (Marsh Gardiner)
623
+
624
+ ### Fixed
625
+
626
+ - Rails 3 Compatibility fixes (Pelle Braendgaard)
627
+ - Fixed load errors on tests for missing (non-required) libraries
628
+
629
+ ## [0.4.0] 2010-04-22
630
+
631
+ - TAG: [v0.4.0][0.4.0t]
632
+
633
+ ### Added
634
+
635
+ - Added computation of oauth_body_hash as per OAuth Request Body Hash 1.0 Draft 4 (Michael Reinsch)
636
+ - Added the optional `oauth_session_handle` parameter for the Yahoo implementation (Will Bailey)
637
+ - Added optional block to OAuth::Consumer.get\_\*\_token (Neill Pearman)
638
+ - Exclude `oauth_callback` with :exclude_callback (Neill Pearman)
639
+ - Support for Ruby 1.9 (Aaron Quint, Corey Donahoe, et al)
640
+ - Support for Typhoeus (Bill Kocik)
641
+ - Support for em-http (EventMachine) (Darcy Laycock)
642
+ - Support for curb (André Luis Leal Cardoso Junior)
643
+ - New website (Aaron Quint)
644
+
645
+ ### Changed
646
+
647
+ - Better marshalling implementation (Yoan Blanc)
648
+ - Replaced hoe with Jeweler (Aaron Quint)
649
+
650
+ ### Fixed
651
+
652
+ - Strip extraneous spaces and line breaks from access_token responses (observed in the wild with Yahoo!'s OAuth+OpenID hybrid) (Eric Hartmann)
653
+ - Stop double-escaping PLAINTEXT signatures (Jimmy Zimmerman)
654
+ - OAuth::Client::Helper won't override the specified `oauth_version` (Philip Kromer)
655
+ - Fixed an encoding / multibyte issue (成田 一生)
656
+
657
+ ## [0.3.6] 2009-09-14
658
+
659
+ - TAG: [v0.3.6][0.3.6t]
660
+
661
+ ### Added
662
+
663
+ - Added -B CLI option to use the :body authentication scheme (Seth)
664
+ - Support POST and PUT with raw bodies (Yu-Shan Fung et al)
665
+ - Added :ca_file consumer option to allow consumer specific certificate override. (Pelle)
666
+
667
+ ### Changed
668
+
669
+ - Test clean-up (Xavier Shay, Hannes Tydén)
670
+
671
+ ### Fixed
672
+
673
+ - Respect `--method` in `authorize` CLI command (Seth)
674
+
675
+ ## [0.3.5] 2009-06-03
676
+
677
+ - TAG: [v0.3.5][0.3.5t]
678
+
679
+ ### Added
680
+
681
+ - `query` CLI command to access protected resources (Seth)
682
+ - Added -H, -Q CLI options for specifying the authentication scheme (Seth)
683
+ - Added -O CLI option for specifying a file containing options (Seth)
684
+ - Support streamable body contents for large request bodies (Seth Cousins)
685
+ - Support for OAuth 1.0a (Seth)
686
+ - Added proxy support to OAuth::Consumer (Marshall Huss)
687
+ - Added --scope CLI option for Google's 'scope' parameter (Seth)
688
+
689
+ ## [0.3.4] 2009-05-06
690
+
691
+ - TAG: [v0.3.4][0.3.4t]
692
+
693
+ ### Changed
694
+
695
+ - OAuth::Client::Helper uses OAuth::Version::VERSION (chadisfaction)
696
+
697
+ ### Fixed
698
+
699
+ - Fix OAuth::RequestProxy::ActionControllerRequest's handling of params (Tristan Groléat)
700
+
701
+ ## [0.3.3] 2009-05-04
702
+
703
+ - TAG: [v0.3.3][0.3.3t]
704
+
705
+ ### Added
706
+
707
+ - Support for arguments in OAuth::Consumer#get_access_token (Matt Sanford)
708
+ - Add gem version to user-agent header (Matt Sanford)
709
+
710
+ ### Changed
711
+
712
+ - Improved error handling for invalid Authorization headers (Matt Sanford)
713
+ - Handle input from aggressive form encoding libraries (Matt Wood)
714
+
715
+ ### Fixed
716
+
717
+ - Corrected OAuth XMPP namespace (Seth)
718
+ - Fixed signatures for non-ASCII under $KCODE other than 'u' (Matt Sanford)
719
+ - Fixed edge cases in ActionControllerRequestProxy where params were being incorrectly signed (Marcos Wright Kuhns)
720
+
721
+ ## [0.3.2] 2009-03-23
722
+
723
+ - TAG: [v0.3.2][0.3.2t]
724
+
725
+ ### Added
726
+
727
+ - Support applications using the MethodOverride Rack middleware (László Bácsi)
728
+ - `authorize` command for `oauth` CLI (Seth)
729
+ - Initial support for Problem Reporting extension (Seth)
730
+ - Verify SSL certificates if CA certificates are available (Seth)
731
+ - Added help to the 'oauth' CLI (Seth)
732
+
733
+ ### Fixed
734
+
735
+ - 2xx statuses should be treated as success (Anders Conbere)
736
+ - Fixed ActionController parameter escaping behavior (Thiago Arrais, László Bácsi, Brett Gibson, et al)
737
+ - Fixed signature calculation when both options and a block were provided to OAuth::Signature::Base#initialize (Seth)
738
+ - Fixed a problem when attempting to normalize MockRequest URIs (Seth)
739
+
740
+ ## [0.3.1] 2009-01-26
741
+
742
+ - TAG: [v0.3.1][0.3.1t]
743
+
744
+ ### Fixed
745
+
746
+ - Fixed a problem with relative and absolute token request paths. (Michael Wood)
747
+
748
+ ## [0.3.0] 2009-01-25
749
+
750
+ - TAG: [v0.3.0][0.3.0t]
751
+
752
+ ### Added
753
+
754
+ - Support ActionController::Request from Edge Rails (László Bácsi)
755
+ - Added #normalized_parameters to OAuth::RequestProxy::Base (Pelle)
756
+ - Command-line app for generating signatures. (Seth)
757
+
758
+ ### Changed
759
+
760
+ - OAuth::Signature.sign and friends now yield the RequestProxy instead of the token when the passed block's arity is 1. (Seth)
761
+ - Improved test-cases and compatibility for encoding issues. (Pelle)
762
+
763
+ ### Fixed
764
+
765
+ - Correctly handle multi-valued parameters (Seth)
766
+ - Token requests are made to the configured URL rather than generating a potentially incorrect one. (Kellan Elliott-McCrea)
767
+
768
+ ## 0.2.7 2008-09-10
769
+
770
+ The lets fix the last release release
771
+
772
+ ### Fixed
773
+
774
+ - Fixed plain text signatures (Andrew Arrow)
775
+ - Fixed RSA requests using OAuthTokens. (Philip Lipu Tsai)
776
+
777
+ ## 0.2.6 2008-09-09
778
+
779
+ The lets RSA release
780
+
781
+ ### Added
782
+
783
+ - Improved support for Ruby 1.8.7 (Bill Kocik)
784
+ - Added support for 'private_key_file' option for RSA signatures (Chris Mear)
785
+
786
+ ### Changed
787
+
788
+ - Improved RSA testing
789
+ - Omit token when signing with RSA
790
+
791
+ ### Fixed
792
+
793
+ - Fixed RSA verification to support RSA providers now using Ruby and RSA
794
+ - Fixed several edge cases where params were being incorrectly signed (Scott Hill)
795
+ - Fixed RSA signing (choonkeat)
796
+
797
+ ## 0.2.2 2008-02-22
798
+
799
+ Lets actually support SSL release
800
+
801
+ ### Fixed
802
+
803
+ - Use HTTPS when required.
804
+
805
+ ## 0.2 2008-1-19
806
+
807
+ All together now release
808
+
809
+ ### Changed
810
+
811
+ - This is a big release, where we have merged the efforts of various parties into one common library.
812
+ This means there are definitely some API changes you should be aware of. They should be minimal
813
+ but please have a look at the unit tests.
814
+
815
+ ## 0.1.2 2007-12-1
816
+
817
+ ### Fixed
818
+
819
+ - Fixed checks for missing OAuth params to improve performance
820
+ - Includes Pat's fix for getting the realm out.
821
+
822
+ ## 0.1.1 2007-11-26
823
+
824
+ ### Added
825
+
826
+ - First release as a GEM
827
+ - Moved all non-Rails functionality from the Rails plugin:
828
+ http://code.google.com/p/oauth-plugin/
829
+
830
+ [Unreleased]: https://github.com/ruby-oauth/oauth/compare/v1.1.7...HEAD
831
+ [1.1.7]: https://github.com/ruby-oauth/oauth/compare/v1.1.6...v1.1.7
832
+ [1.1.7t]: https://github.com/ruby-oauth/oauth/releases/tag/v1.1.7
833
+ [1.1.6]: https://github.com/ruby-oauth/oauth/compare/v1.1.5...v1.1.6
834
+ [1.1.6t]: https://github.com/ruby-oauth/oauth/releases/tag/v1.1.6
835
+ [1.1.5]: https://github.com/ruby-oauth/oauth/compare/v1.1.4...v1.1.5
836
+ [1.1.5t]: https://github.com/ruby-oauth/oauth/releases/tag/v1.1.5
837
+ [1.1.4]: https://github.com/ruby-oauth/oauth/compare/v1.1.3...v1.1.4
838
+ [1.1.4t]: https://github.com/ruby-oauth/oauth/releases/tag/v1.1.4
839
+ [1.1.3]: https://github.com/ruby-oauth/oauth/compare/v1.1.2...v1.1.3
840
+ [1.1.3t]: https://github.com/ruby-oauth/oauth/releases/tag/v1.1.3
841
+ [1.1.2]: https://github.com/ruby-oauth/oauth/compare/v1.1.1...v1.1.2
842
+ [1.1.2t]: https://github.com/ruby-oauth/oauth/releases/tag/v1.1.2
843
+ [1.1.1]: https://github.com/ruby-oauth/oauth/compare/v1.1.0...v1.1.1
844
+ [1.1.1t]: https://github.com/ruby-oauth/oauth/releases/tag/v1.1.1
845
+ [1.1.0]: https://gitlab.com/ruby-oauth/oauth/-/compare/v1.0.1...v1.1.0
846
+ [1.1.0t]: https://github.com/ruby-oauth/oauth/releases/tag/v1.1.0
847
+ [1.0.1]: https://gitlab.com/ruby-oauth/oauth/-/compare/v1.0.0...v1.0.1
848
+ [1.0.1t]: https://github.com/ruby-oauth/oauth/releases/tag/v1.0.1
849
+ [1.0.0]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.6.2...v1.0.0
850
+ [1.0.0t]: https://github.com/ruby-oauth/oauth/releases/tag/v1.0.0
851
+ [0.6.2]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.6.1...v0.6.2
852
+ [0.6.2t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.6.2
853
+ [0.6.1]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.6.0...v0.6.1
854
+ [0.6.1t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.6.1
855
+ [0.6.0]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.5.14...v0.6.0
856
+ [0.6.0t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.6.0
857
+ [0.5.14]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.5.13...v0.5.14
858
+ [0.5.14t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.5.14
859
+ [0.5.13]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.5.12...v0.5.13
860
+ [0.5.13t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.5.13
861
+ [0.5.12]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.5.11...v0.5.12
862
+ [0.5.12t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.5.12
863
+ [0.5.11]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.5.10...v0.5.11
864
+ [0.5.11t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.5.11
865
+ [0.5.10t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.5.10
866
+ [0.5.9]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.5.8...v0.5.9
867
+ [0.5.9t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.5.9
868
+ [0.5.8]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.5.7...v0.5.8
869
+ [0.5.8t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.5.8
870
+ [0.5.7]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.5.6...v0.5.7
871
+ [0.5.7t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.5.7
872
+ [0.5.6]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.5.5...v0.5.6
873
+ [0.5.6t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.5.6
874
+ [0.5.5]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.5.4...v0.5.5
875
+ [0.5.5t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.5.5
876
+ [0.5.4]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.5.3...v0.5.4
877
+ [0.5.4t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.5.4
878
+ [0.5.3]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.5.2...v0.5.3
879
+ [0.5.3t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.5.3
880
+ [0.5.2]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.5.1...v0.5.2
881
+ [0.5.2t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.5.2
882
+ [0.5.1]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.5.0...v0.5.1
883
+ [0.5.1t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.5.1
884
+ [0.5.0]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.4.7...v0.5.0
885
+ [0.5.0t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.5.0
886
+ [0.4.7]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.4.6...v0.4.7
887
+ [0.4.7t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.4.7
888
+ [0.4.6]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.4.5...v0.4.6
889
+ [0.4.6t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.4.6
890
+ [0.4.5]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.4.4...v0.4.5
891
+ [0.4.5t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.4.5
892
+ [0.4.4]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.4.3...v0.4.4
893
+ [0.4.4t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.4.4
894
+ [0.4.3]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.4.2...v0.4.3
895
+ [0.4.3t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.4.3
896
+ [0.4.2]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.4.1...v0.4.2
897
+ [0.4.2t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.4.2
898
+ [0.4.1]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.4.0...v0.4.1
899
+ [0.4.1t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.4.1
900
+ [0.4.0]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.3.6...v0.4.0
901
+ [0.4.0t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.4.0
902
+ [0.3.6]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.3.5...v0.3.6
903
+ [0.3.6t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.3.6
904
+ [0.3.5]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.3.4...v0.3.5
905
+ [0.3.5t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.3.5
906
+ [0.3.4]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.3.3...v0.3.4
907
+ [0.3.4t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.3.4
908
+ [0.3.3]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.3.2...v0.3.3
909
+ [0.3.3t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.3.3
910
+ [0.3.2]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.3.1...v0.3.2
911
+ [0.3.2t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.3.2
912
+ [0.3.1]: https://gitlab.com/ruby-oauth/oauth/-/compare/v0.3.0...v0.3.1
913
+ [0.3.1t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.3.1
914
+ [0.3.0]: https://github.com/ruby-oauth/oauth/releases/tag/v0.3.0
915
+ [0.3.0t]: https://github.com/ruby-oauth/oauth/releases/tag/v0.3.0