oauth 0.5.6 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +478 -0
  3. data/CODE_OF_CONDUCT.md +84 -0
  4. data/CONTRIBUTING.md +23 -0
  5. data/LICENSE +18 -17
  6. data/README.md +383 -0
  7. data/SECURITY.md +20 -0
  8. data/bin/oauth +10 -6
  9. data/lib/oauth/cli/authorize_command.rb +57 -55
  10. data/lib/oauth/cli/base_command.rb +163 -157
  11. data/lib/oauth/cli/help_command.rb +9 -5
  12. data/lib/oauth/cli/query_command.rb +26 -17
  13. data/lib/oauth/cli/sign_command.rb +58 -55
  14. data/lib/oauth/cli/version_command.rb +8 -4
  15. data/lib/oauth/cli.rb +21 -19
  16. data/lib/oauth/client/action_controller_request.rb +23 -21
  17. data/lib/oauth/client/em_http.rb +101 -99
  18. data/lib/oauth/client/helper.rb +83 -82
  19. data/lib/oauth/client/net_http.rb +112 -105
  20. data/lib/oauth/client.rb +2 -0
  21. data/lib/oauth/consumer.rb +157 -135
  22. data/lib/oauth/errors/error.rb +2 -0
  23. data/lib/oauth/errors/problem.rb +3 -0
  24. data/lib/oauth/errors/unauthorized.rb +7 -1
  25. data/lib/oauth/errors.rb +5 -3
  26. data/lib/oauth/helper.rb +26 -18
  27. data/lib/oauth/oauth.rb +6 -4
  28. data/lib/oauth/oauth_test_helper.rb +6 -4
  29. data/lib/oauth/request_proxy/action_controller_request.rb +56 -57
  30. data/lib/oauth/request_proxy/action_dispatch_request.rb +8 -4
  31. data/lib/oauth/request_proxy/base.rb +136 -132
  32. data/lib/oauth/request_proxy/curb_request.rb +49 -43
  33. data/lib/oauth/request_proxy/em_http_request.rb +59 -49
  34. data/lib/oauth/request_proxy/jabber_request.rb +12 -9
  35. data/lib/oauth/request_proxy/mock_request.rb +5 -3
  36. data/lib/oauth/request_proxy/net_http.rb +63 -54
  37. data/lib/oauth/request_proxy/rack_request.rb +35 -31
  38. data/lib/oauth/request_proxy/rest_client_request.rb +54 -50
  39. data/lib/oauth/request_proxy/typhoeus_request.rb +51 -45
  40. data/lib/oauth/request_proxy.rb +7 -4
  41. data/lib/oauth/server.rb +14 -12
  42. data/lib/oauth/signature/base.rb +80 -71
  43. data/lib/oauth/signature/hmac/sha1.rb +16 -10
  44. data/lib/oauth/signature/hmac/sha256.rb +16 -10
  45. data/lib/oauth/signature/plaintext.rb +18 -20
  46. data/lib/oauth/signature/rsa/sha1.rb +46 -38
  47. data/lib/oauth/signature.rb +8 -5
  48. data/lib/oauth/token.rb +7 -5
  49. data/lib/oauth/tokens/access_token.rb +5 -3
  50. data/lib/oauth/tokens/consumer_token.rb +4 -2
  51. data/lib/oauth/tokens/request_token.rb +12 -10
  52. data/lib/oauth/tokens/server_token.rb +2 -1
  53. data/lib/oauth/tokens/token.rb +2 -0
  54. data/lib/oauth/version.rb +5 -1
  55. data/lib/oauth.rb +17 -9
  56. metadata +94 -98
  57. data/README.rdoc +0 -88
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9bd785e08f2a318da373f07b79fe6583ed3e8c26bcc92c5e1513ee615ea0f037
4
- data.tar.gz: 3e9f81feb37166f4fec398d20e8b4de882b6e1e2304f893c033b920ab737616a
3
+ metadata.gz: 41420311334e3c3f5bf3c7c0523c10dae50d84ff4788e87c28765a72665a169a
4
+ data.tar.gz: 58f1558f5d6c31c42405772c3ead07bfcc51754ceeff7c6b000f72b868833359
5
5
  SHA512:
6
- metadata.gz: 6bc060045ecb7ca1c47263f4bab7fde62c3a173ccf7ea6e1dacc5ac4e814ecea88e4b2f594f6bd2a7d80f9393e1295b1a5cbc85f3eb74c35cbb348da6f32cfe6
7
- data.tar.gz: c96c9abd68f71cca8d33db21e3d68f1c7fe98898dba924fd440bf882280d99d39beb7a0751be913bb0f18872875ca8098792733f1717ff8d127156a99a69f039
6
+ metadata.gz: 478782009426a1dab385f9ea8702fed19b7795b3116a5a49b9e9a527374e1fa1b62657f4413aeac7e439f7f2f339e2623d6e2bd9dcf42daefbce43caa4078144
7
+ data.tar.gz: 96195f350fba5187766484f3606016cd245f8cc26c9b1e7083ec11e00b4589cf57ee07d5c8a8097dd56e41c8476a3eaf52ecaa9bf67b5ad333e7a48a268e2992
data/CHANGELOG.md ADDED
@@ -0,0 +1,478 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+ ### Added
9
+
10
+ ### Changed
11
+
12
+ ### Fixed
13
+
14
+ ### Removed
15
+
16
+ ## [0.6.2] 2022-08-29
17
+ ### Changed
18
+ * `OAuth::Comsumer#options` hash is now handled by `snaky_hash`, which was extracted from `oauth2`
19
+ * symbolized keys, dot-access and snake-case are now normalized
20
+
21
+ ## [0.6.1] 2022-08-23
22
+ ### Changed
23
+ * Fixed documentation in SECURITY.md
24
+ * Change references to master => main
25
+
26
+ ### Added
27
+ * Post install note about v0.6.x EOL approaching in April, 2024
28
+
29
+ ## [0.6.0] 2022-08-23
30
+ ### Added
31
+ * 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.
32
+ * Improved documentation of support policy via Tidelift
33
+ * Stop testing against active_support v2
34
+
35
+ ### Changed
36
+ * Utilize version_gem extracted from oauth2 gem for VERSION
37
+ * Added new `OAuth::Version` namespace
38
+ * VERSION constant now at `OAuth::Version::VERSION`
39
+
40
+ ### Removed
41
+ * Ruby 2.0, 2.1, 2.2, and 2.3 are no longer valid install targets
42
+
43
+ ## [0.5.14] 2022-08-29
44
+ The "hopeful last 0.5.x" Release
45
+
46
+ ### Fixed
47
+ * More typos fixed
48
+
49
+ ## [0.5.13] 2022-08-23
50
+ The "I think I caught 'em all!" Release
51
+
52
+ ### Fixed
53
+ * Typo oauth2 => oauth as gem name in one more place.
54
+
55
+ ## [0.5.12] 2022-08-23
56
+ The "Typoes are just the worst!" Release
57
+
58
+ ### Fixed
59
+ * Typo oauth2 => oauth as gem name in a couple places.
60
+
61
+ ## [0.5.11] 2022-08-23
62
+ The "Is this the last release with a silly name?" Release
63
+
64
+ ### Added
65
+ * Post install note about v0.5.x EOL approaching in April, 2023
66
+
67
+ ### Changed
68
+ * Improved documentation
69
+ * Switched branch references from master to main
70
+ * CI builds are now all green!
71
+
72
+ ## [0.5.10] 2022-05-04
73
+ The "Can it be the end of the line for 0.5.x?" Release
74
+
75
+ ### Added
76
+ * Major updates to Documentation
77
+ * More CI Hardening
78
+ * Align CI builds with official Ruby Compatibility Matrix
79
+ * Project tooling in preparation for final release of 0.5.x series
80
+ - diffend
81
+
82
+ ## [0.5.9] 2022-05-03
83
+ ### Added
84
+ * Documentation related to Ruby compatibility
85
+ * Updated CHANGELOG.md formatting
86
+ * Corrected CHANGELOG.md typos
87
+ * Hardened the CI build for the next few years(?!)
88
+ * Require MFA to push new version to Rubygems
89
+ * Replace Hash Rocket syntax with JSON-style symbols where possible
90
+ * Project tooling in preparation for final release of 0.5.x series
91
+ - rubocop-ruby2_0
92
+ - overcommit
93
+
94
+ ## [0.5.8] 2021-11-10
95
+ ### Added
96
+ * Added more documentation files to packaged gem, e.g. SECURITY.md, CODE_OF_CONDUCT.md
97
+
98
+ ### Fixed
99
+ * Removed reference to RUBY_VERSION from gemspec, as it depends on rake release, which is problematic on some ruby engines. (by @pboling)
100
+
101
+ ## [0.5.7] 2021-11-02
102
+ ### Added
103
+ * Setup Rubocop (#205, #208 by @pboling)
104
+ * Added CODE_OF_CONDUCT.md (#217, #218 by @pboling)
105
+ * Added FUNDING.yml (#217, #218 by @pboling)
106
+ * Added Client Certificate Options: :ssl_client_cert and :ssl_client_key (#136, #220 by @pboling)
107
+ * Handle a nested array of hashes in OAuth::Helper.normalize (#80, #221 by @pboling)
108
+
109
+ ### Changed
110
+ * Switch from TravisCI to Github Actions (#202, #207, #176 by @pboling)
111
+ * Upgrade webmock to v3.14.0 (#196 by @pboling)
112
+ * Upgrade em-http-request to v1.1.7 (#173 by @pboling)
113
+ * Upgrade mocha to v1.13.0 (#193 by @pboling)
114
+ * HISTORY renamed to CHANGELOG.md, and follows Keep a Changelog (#214, #215 by @pboling)
115
+ * CHANGELOG, LICENSE, and README now ship with packaged gem (#214, #215 by @pboling)
116
+ * README.rdoc renamed to README.md (#217, #218 by @pboling)
117
+ * Require plaintext signature method by default (#135 by @confiks & @pboling)
118
+
119
+ ### Fixed
120
+ * Fixed Infinite Redirect in v0.5.5, v0.5.6 (#186, #210 by @pboling)
121
+ * Fixed NoMethodError on missing leading slash in path (#194, #211 by @pboling)
122
+ * Fixed NoMethodError on nil request object (#165, #212 by @pboling)
123
+ * Fixed Unsafe String Comparison (#156, #209 by @pboling and @drosseau)
124
+ * Fixed typos in Gemspec (#204, #203, #208 by @pboling)
125
+ * Copyright Notice in LICENSE - added correct years (#217, #218 by @pboling)
126
+ * Fixed request proxy Class constant reference scopes - was missing `::` in many places (#225, #226 by @pboling)
127
+
128
+ ### Removed
129
+ * Remove direct development dependency on nokogiri (#299 by @pboling)
130
+
131
+ ## [0.5.6] 2021-04-02
132
+ ### Added
133
+ * Add metadata to Gemspec file
134
+ * Add support for PUT requests with Action Controller (#181)
135
+
136
+ ### Changed
137
+ * Change default timeout to be the same as Net::HTTP default, 60 seconds instead of 30 seconds.
138
+
139
+ ## [0.5.5] 2020-01-19
140
+ ### Added
141
+ * Add :allow_empty_params option (#155)
142
+
143
+ ### Changed
144
+ * Allow redirect to different host but same path
145
+ * Various cleanups
146
+
147
+ ### Fixed
148
+ * Fixes ssl-noverify
149
+ * Fixed README example (#158, #159, by @pboling)
150
+
151
+ ## [0.5.4] 2017-12-08
152
+ ### Changed
153
+ * Various cleanups (charliesome)
154
+
155
+ ### Fixed
156
+ * Fixes UnknownRequestType on Rails 5.1 for ActionDispatch::Request (xprazak2)
157
+
158
+ ## [0.5.3] 2017-05-24
159
+ ### Fixed
160
+ * Fix #145 - broken CLI required loading active_support (James Pinto)
161
+
162
+ ### Changed
163
+ * Removing legacy scripts (James Pinto)
164
+
165
+ ## [0.5.2] 2017-05-17
166
+ ### Added
167
+ * Adding a development dependency that had not been mentioned (James Pinto)
168
+ * Adding CodeClimate (James Pinto)
169
+ * Adding support to Ruby 2.4 and head (James Pinto)
170
+
171
+ ### Changed
172
+ * Use assert_nil so as to silence a Minitest 6 deprecation warning (James Pinto)
173
+ * Stop bundling tests files in the gem (Michal Papis)
174
+ * Minor cleanup on tests (James Pinto)
175
+ * TravisCI no longer needs libcurl-dev (James Pinto)
176
+ * Nokogiri 1.7 does not accept Ruby 2.0 (James Pinto)
177
+ * Upgrading to CodeClimate 1.0 (James Pinto)
178
+ * Locking gemspec to Rails 4 so as to allow our next version for Rails 5 (James Pinto)
179
+ * moving development dependency to gemspec (James Pinto)
180
+ * Silencing 'Net::HTTPResponse#header is obsolete' (James Pinto)
181
+ * Silencing some test warnings (James Pinto)
182
+ * Silencing 'loading in progress, circular require considered harmful' (James Pinto)
183
+ * Silence 'URI.escape obsolete' (James Pinto)
184
+ * Refactored CLI (James Pinto)
185
+ * Moving test files into test/units/ (James Pinto)
186
+ * Reimplementing #82 - Debug Output Option (James Pinto)
187
+
188
+ ### Fixed
189
+ * Fix #113 adding paths when a full URL has been specified (James Pinto)
190
+ * Bug Fix, webmock 2.0 has introduced a new bug (James Pinto)
191
+ * Making a test/support dir (James Pinto)
192
+ * Fix #177 - Adjusting to webmock latest recommended implementation for minitest (James Pinto)
193
+
194
+ ## [0.5.1] 2016-02-29
195
+ ### Added
196
+ * Add license info to the gemspec (Robert Reiz)
197
+
198
+ ### Fixed
199
+ * Proper handling for empty query string in RequestToken#build_authorize_url (midchildan,
200
+ Harald Sitter)
201
+ * Replace calls to String#blank? with its implementation (Sergio Gil Pérez de la Manga)
202
+
203
+ ### Changed
204
+ * Loosen some development dependencies. Add libcurl-dev to travis
205
+ * Fixes to travis config. Switch to rubygems for installation and loading
206
+
207
+ ### Removed
208
+ * Remove obsolete comment (Arthur Nogueira Neves)
209
+ * Remove jeweler from gemspec
210
+
211
+ ## [0.5.0] 2016-02-20
212
+ ### Added
213
+ * Add support for HTTP PATCH method (Richard Huang)
214
+ * Allow reading private key from a string (Khaja Minhajuddin)
215
+ * Add rest-client proxy (Khem Veasna)
216
+ * Add byebug. (Kevin Hughes)
217
+ * Allow reading certificate file path from environment variable. Add CentOS cert file path (Danil Vlasov)
218
+
219
+ ### Changed
220
+ * Replace jeweler with real spec and bundler tasks
221
+ * Extract version to separate file
222
+ * Use OpenSSL for all digest and hashing. Remove signature methods not defined by OAuth spec. (Kevin Hughes)
223
+ * Change token requests to exclude `oauth_body_hash`. Update doc links in comments. (John Remmen)
224
+
225
+ ### Fixed
226
+ * Fix ability to pass in an authorize url with a query string (Roger Smith)
227
+ * Fix bug in signature verification (r-stu31)
228
+ * Use standard key name (`oauth_token_secret`) in Token#to_query (Craig Walker)
229
+ * Fix error in CLI when using `query` without supplying a method (grafikchaos)
230
+ * Compatibility fix for Typhoeus >= 0.5.0 (Chad Feller)
231
+ * Rails 3+ / ActiveSupport::SafeBuffer patch (Clif Reeder)
232
+ * Handle `nil` token gracefully for RequestToken#authorize_url (Brian John)
233
+ * Fix typhoeus compatibility (Vladimir Mikhailov)
234
+ * Fix oauth cli option parser on Ruby 2.2 (Felix Bünemann)
235
+ * Update gemspec for security fixes. Convert to Minitest. Add .travis.yml. (Kevin Hughes)
236
+ * Fix some warnings (amatsuda)
237
+ * Various fixes/updates to README (Evan Arnold, Jonathan Camenisch, Brian John, Ankur Sethi)
238
+
239
+ ## [0.4.7] 2012-09-03
240
+ ### Added
241
+ * Set a configurable timeout for all requests (Rick Olson)
242
+
243
+ ### Fixed
244
+ * Fix merging paths if the path is not empty
245
+ * Fix nested hash params in Consumer#request (Ernie Miller)
246
+
247
+ ## [0.4.6] 2012-04-21
248
+ ### Changed
249
+ * Make use the path component of the :site parameter (Jonathon M. Abbott)
250
+
251
+ ### Fixed
252
+ * Fixed nested attributes in #normalize (Shaliko Usubov)
253
+ * Fixed post body's being dropped in 1.9 (Steven Hammond)
254
+ * Fixed PUT request handling (Anton Panasenko)
255
+
256
+ ## [0.4.5] 2011-06-25
257
+ ### Added
258
+ * Add explicit require for rsa/sha1 (Juris Galang)
259
+ * Add gemtest support (Adrian Feldman)
260
+
261
+ ### Changed
262
+ * Use webmock to mock all http-requests in tests (Adrian Feldman)
263
+ * Mention Typhoeus require in the README (Kim Ahlström)
264
+ * Use Net::HTTPGenericRequest (Jakub Kuźma)
265
+
266
+ ### Fixed
267
+ * Fix POST Requests with Typhoeus proxy (niedhui)
268
+ * Fix incorrect hardcoded port (Ian Taylor)
269
+
270
+ ## [0.4.4] 2010-10-31
271
+ ### Added
272
+ * Added support for Rails 3 in client/action_controller_request (Pelle)
273
+
274
+ ### Fixed
275
+ * Fix LoadError rescue in tests: return can't be used in this context (Hans de Graaff)
276
+ * HTTP headers should be strings. (seancribbs)
277
+ * ensure consumer uri gets set back to original config even if an error occurs (Brian Finney)
278
+ * Yahoo uses & to split records in OAuth headers (Brian Finney)
279
+
280
+ ## [0.4.3] 2010-09-01
281
+ ### Fixed
282
+ * Fix for em-http proxy (ichverstehe)
283
+
284
+ ## [0.4.2] 2010-08-13
285
+ ### Added
286
+ * Added Bundler (rc) Gemfile for easier dev/testing
287
+
288
+ ### Fixed
289
+ * Fixed compatibility with Ruby 1.9.2 (ecavazos)
290
+ * Fixed the em-http request proxy (Joshua Hull)
291
+ * Fix for oauth proxy string manipulation (Jakub Suder)
292
+
293
+ ## [0.4.1] 2010-06-16
294
+ ### Added
295
+ * Added support for using OAuth with proxies (Marsh Gardiner)
296
+
297
+ ### Fixed
298
+ * Rails 3 Compatibility fixes (Pelle Braendgaard)
299
+ * Fixed load errors on tests for missing (non-required) libraries
300
+
301
+ ## [0.4.0] 2010-04-22
302
+ ### Added
303
+ * Added computation of oauth_body_hash as per OAuth Request Body Hash 1.0 Draft 4 (Michael Reinsch)
304
+ * Added the optional `oauth_session_handle` parameter for the Yahoo implementation (Will Bailey)
305
+ * Added optional block to OAuth::Consumer.get_*_token (Neill Pearman)
306
+ * Exclude `oauth_callback` with :exclude_callback (Neill Pearman)
307
+ * Support for Ruby 1.9 (Aaron Quint, Corey Donahoe, et al)
308
+ * Support for Typhoeus (Bill Kocik)
309
+ * Support for em-http (EventMachine) (Darcy Laycock)
310
+ * Support for curb (André Luis Leal Cardoso Junior)
311
+ * New website (Aaron Quint)
312
+
313
+ ### Changed
314
+ * Better marshalling implementation (Yoan Blanc)
315
+ * Replaced hoe with Jeweler (Aaron Quint)
316
+
317
+ ### Fixed
318
+ * Strip extraneous spaces and line breaks from access_token responses (observed in the wild with Yahoo!'s OAuth+OpenID hybrid) (Eric Hartmann)
319
+ * Stop double-escaping PLAINTEXT signatures (Jimmy Zimmerman)
320
+ * OAuth::Client::Helper won't override the specified `oauth_version` (Philip Kromer)
321
+ * Fixed an encoding / multibyte issue (成田 一生)
322
+
323
+ ## [0.3.6] 2009-09-14
324
+ ### Added
325
+ * Added -B CLI option to use the :body authentication scheme (Seth)
326
+ * Support POST and PUT with raw bodies (Yu-Shan Fung et al)
327
+ * Added :ca_file consumer option to allow consumer specific certificate override. (Pelle)
328
+
329
+ ### Changed
330
+ * Test clean-up (Xavier Shay, Hannes Tydén)
331
+
332
+ ### Fixed
333
+ * Respect `--method` in `authorize` CLI command (Seth)
334
+
335
+ ## [0.3.5] 2009-06-03
336
+ ### Added
337
+ * `query` CLI command to access protected resources (Seth)
338
+ * Added -H, -Q CLI options for specifying the authentication scheme (Seth)
339
+ * Added -O CLI option for specifying a file containing options (Seth)
340
+ * Support streamable body contents for large request bodies (Seth Cousins)
341
+ * Support for OAuth 1.0a (Seth)
342
+ * Added proxy support to OAuth::Consumer (Marshall Huss)
343
+ * Added --scope CLI option for Google's 'scope' parameter (Seth)
344
+
345
+ ## [0.3.4] 2009-05-06
346
+ ### Changed
347
+ * OAuth::Client::Helper uses OAuth::Version::VERSION (chadisfaction)
348
+
349
+ ### Fixed
350
+ * Fix OAuth::RequestProxy::ActionControllerRequest's handling of params (Tristan Groléat)
351
+
352
+ ## [0.3.3] 2009-05-04
353
+ ### Added
354
+ * Support for arguments in OAuth::Consumer#get_access_token (Matt Sanford)
355
+ * Add gem version to user-agent header (Matt Sanford)
356
+
357
+ ### Changed
358
+ * Improved error handling for invalid Authorization headers (Matt Sanford)
359
+ * Handle input from aggressive form encoding libraries (Matt Wood)
360
+
361
+ ### Fixed
362
+ * Corrected OAuth XMPP namespace (Seth)
363
+ * Fixed signatures for non-ASCII under $KCODE other than 'u' (Matt Sanford)
364
+ * Fixed edge cases in ActionControllerRequestProxy where params were being incorrectly signed (Marcos Wright Kuhns)
365
+
366
+ ## [0.3.2] 2009-03-23
367
+ ### Added
368
+ * Support applications using the MethodOverride Rack middleware (László Bácsi)
369
+ * `authorize` command for `oauth` CLI (Seth)
370
+ * Initial support for Problem Reporting extension (Seth)
371
+ * Verify SSL certificates if CA certificates are available (Seth)
372
+ * Added help to the 'oauth' CLI (Seth)
373
+
374
+ ### Fixed
375
+ * 2xx statuses should be treated as success (Anders Conbere)
376
+ * Fixed ActionController parameter escaping behavior (Thiago Arrais, László Bácsi, Brett Gibson, et al)
377
+ * Fixed signature calculation when both options and a block were provided to OAuth::Signature::Base#initialize (Seth)
378
+ * Fixed a problem when attempting to normalize MockRequest URIs (Seth)
379
+
380
+ ## [0.3.1] 2009-01-26
381
+ ### Fixed
382
+ * Fixed a problem with relative and absolute token request paths. (Michael Wood)
383
+
384
+ ## [0.3.0] 2009-01-25
385
+ ### Added
386
+ * Support ActionController::Request from Edge Rails (László Bácsi)
387
+ * Added #normalized_parameters to OAuth::RequestProxy::Base (Pelle)
388
+ * Command-line app for generating signatures. (Seth)
389
+
390
+ ### Changed
391
+ * OAuth::Signature.sign and friends now yield the RequestProxy instead of the token when the passed block's arity is 1. (Seth)
392
+ * Improved test-cases and compatibility for encoding issues. (Pelle)
393
+
394
+ ### Fixed
395
+ * Correctly handle multi-valued parameters (Seth)
396
+ * Token requests are made to the configured URL rather than generating a potentially incorrect one. (Kellan Elliott-McCrea)
397
+
398
+ ## 0.2.7 2008-09-10
399
+ The lets fix the last release release
400
+
401
+ ### Fixed
402
+ * Fixed plain text signatures (Andrew Arrow)
403
+ * Fixed RSA requests using OAuthTokens. (Philip Lipu Tsai)
404
+
405
+ ## 0.2.6 2008-09-09
406
+ The lets RSA release
407
+
408
+ ### Added
409
+ * Improved support for Ruby 1.8.7 (Bill Kocik)
410
+ * Added support for 'private_key_file' option for RSA signatures (Chris Mear)
411
+
412
+ ### Changed
413
+ * Improved RSA testing
414
+ * Omit token when signing with RSA
415
+
416
+ ### Fixed
417
+ * Fixed RSA verification to support RSA providers now using Ruby and RSA
418
+ * Fixed several edge cases where params were being incorrectly signed (Scott Hill)
419
+ * Fixed RSA signing (choonkeat)
420
+
421
+ ## 0.2.2 2008-02-22
422
+ Lets actually support SSL release
423
+
424
+ ### Fixed
425
+ * Use HTTPS when required.
426
+
427
+ ## 0.2 2008-1-19
428
+ All together now release
429
+
430
+ This is a big release, where we have merged the efforts of various parties into one common library.
431
+ This means there are definitely some API changes you should be aware of. They should be minimal
432
+ but please have a look at the unit tests.
433
+
434
+ ## 0.1.2 2007-12-1
435
+ ### Fixed
436
+ * Fixed checks for missing OAuth params to improve performance
437
+ * Includes Pat's fix for getting the realm out.
438
+
439
+ ## 0.1.1 2007-11-26
440
+ ### Added
441
+ * First release as a GEM
442
+ * Moved all non-Rails functionality from the Rails plugin:
443
+ http://code.google.com/p/oauth-plugin/
444
+
445
+ [Unreleased]: https://github.com/oauth-xx/oauth-ruby/compare/v0.6.2...v0.6-maintenance
446
+ [0.6.2]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.6.2
447
+ [0.6.1]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.6.1
448
+ [0.6.0]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.6.0
449
+ [0.5.14]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.5.14
450
+ [0.5.13]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.5.13
451
+ [0.5.12]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.5.12
452
+ [0.5.11]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.5.11
453
+ [0.5.10]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.5.10
454
+ [0.5.9]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.5.9
455
+ [0.5.8]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.5.8
456
+ [0.5.7]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.5.7
457
+ [0.5.6]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.5.6
458
+ [0.5.5]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.5.5
459
+ [0.5.4]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.5.4
460
+ [0.5.3]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.5.3
461
+ [0.5.2]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.5.2
462
+ [0.5.1]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.5.1
463
+ [0.5.0]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.5.0
464
+ [0.4.7]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.4.7
465
+ [0.4.6]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.4.6
466
+ [0.4.5]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.4.5
467
+ [0.4.4]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.4.4
468
+ [0.4.3]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.4.3
469
+ [0.4.2]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.4.2
470
+ [0.4.1]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.4.1
471
+ [0.4.0]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.4.0
472
+ [0.3.6]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.3.6
473
+ [0.3.5]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.3.5
474
+ [0.3.4]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.3.4
475
+ [0.3.3]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.3.3
476
+ [0.3.2]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.3.2
477
+ [0.3.1]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.3.1
478
+ [0.3.0]: https://github.com/oauth-xx/oauth-ruby/releases/tag/v0.3.0
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at peter.boling@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,23 @@
1
+ ## Contributing
2
+
3
+ Bug reports and pull requests are welcome on GitHub at [https://github.com/oauth-xx/oauth-ruby][source]. This project is
4
+ intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to
5
+ the [code of conduct][conduct].
6
+
7
+ To submit a patch, please fork the project and create a patch with
8
+ tests. Once you're happy with it send a pull request and post a message to the
9
+ [google group][mailinglist].
10
+
11
+ ## Contributors
12
+
13
+ [![Contributors](https://contrib.rocks/image?repo=oauth-xx/oauth-ruby)][contributors]
14
+
15
+ Made with [contributors-img][contrib-rocks].
16
+
17
+ [comment]: <> (Following links are used by README, CONTRIBUTING, Homepage)
18
+
19
+ [conduct]: https://github.com/oauth-xx/oauth-ruby/blob/main/CODE_OF_CONDUCT.md
20
+ [contributing]: https://github.com/oauth-xx/oauth-ruby/blob/main/CONTRIBUTING.md
21
+ [contributors]: https://github.com/oauth-xx/oauth-ruby/graphs/contributors
22
+ [mailinglist]: http://groups.google.com/group/oauth-ruby
23
+ [source]: https://github.com/oauth-xx/oauth-ruby/
data/LICENSE CHANGED
@@ -1,20 +1,21 @@
1
- Copyright (c) 2007 Blaine Cook, Larry Halff, Pelle Braendgaard
1
+ The MIT License (MIT)
2
2
 
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
3
+ Copyright (c) 2007-2012, 2016-2017, 2020-2021 Blaine Cook, Larry Halff, Pelle Braendgaard, Peter Boling
10
4
 
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
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:
13
11
 
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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.