oauth 0.5.6 → 1.1.5

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