oauth 1.1.0 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +1 -0
- data/CHANGELOG.md +637 -269
- data/CITATION.cff +20 -0
- data/CODE_OF_CONDUCT.md +79 -29
- data/CONTRIBUTING.md +256 -24
- data/FUNDING.md +74 -0
- data/LICENSE.md +71 -0
- data/README.md +615 -287
- data/RUBOCOP.md +71 -0
- data/SECURITY.md +11 -16
- data/certs/pboling.pem +27 -0
- data/lib/oauth/auth_sanitizer.rb +36 -0
- data/lib/oauth/client/action_controller_request.rb +22 -13
- data/lib/oauth/client/em_http.rb +106 -99
- data/lib/oauth/client/helper.rb +15 -11
- data/lib/oauth/client/net_http.rb +39 -13
- data/lib/oauth/consumer.rb +194 -75
- data/lib/oauth/errors/problem.rb +1 -1
- data/lib/oauth/helper.rb +25 -3
- data/lib/oauth/oauth.rb +28 -6
- data/lib/oauth/optional.rb +20 -0
- data/lib/oauth/request_proxy/action_controller_request.rb +11 -7
- data/lib/oauth/request_proxy/action_dispatch_request.rb +34 -0
- data/lib/oauth/request_proxy/base.rb +38 -27
- data/lib/oauth/request_proxy/em_http_request.rb +53 -52
- data/lib/oauth/request_proxy/jabber_request.rb +9 -2
- data/lib/oauth/request_proxy/net_http.rb +1 -1
- data/lib/oauth/request_proxy/rack_request.rb +0 -4
- data/lib/oauth/request_proxy/rest_client_request.rb +4 -3
- data/lib/oauth/request_proxy.rb +17 -13
- data/lib/oauth/server.rb +12 -8
- data/lib/oauth/signature/base.rb +15 -5
- data/lib/oauth/signature/rsa/sha1.rb +11 -4
- data/lib/oauth/signature.rb +43 -39
- data/lib/oauth/tokens/access_token.rb +1 -1
- data/lib/oauth/tokens/consumer_token.rb +8 -6
- data/lib/oauth/tokens/request_token.rb +9 -4
- data/lib/oauth/tokens/token.rb +13 -1
- data/lib/oauth/version.rb +2 -1
- data/lib/oauth.rb +2 -0
- data/sig/oauth/consumer.rbs +9 -0
- data/sig/oauth/signature/base.rbs +12 -0
- data/sig/oauth/tokens/token.rbs +8 -0
- data/sig/oauth/version.rbs +6 -0
- data.tar.gz.sig +0 -0
- metadata +316 -79
- metadata.gz.sig +0 -0
- data/LICENSE +0 -22
- data/TODO +0 -32
data/LICENSE
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2007-2012, 2016-2017 Blaine Cook, Larry Halff, Pelle Braendgaard
|
|
4
|
-
Copyright (c) 2020-2022 Peter Boling
|
|
5
|
-
|
|
6
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
-
in the Software without restriction, including without limitation the rights
|
|
9
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
furnished to do so, subject to the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be included in
|
|
14
|
-
all copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
-
THE SOFTWARE.
|
data/TODO
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
Common use-cases should be streamlined:
|
|
2
|
-
|
|
3
|
-
* I have a URL that I want to sign (given consumer key/secret, optional
|
|
4
|
-
token/secret, optional nonce/timestamp).
|
|
5
|
-
* I have a URL that I want to sign AND I want to see what the components
|
|
6
|
-
(e.g. signature base string, etc.) are while it's being signed (i.e. verbose
|
|
7
|
-
signing).
|
|
8
|
-
* I have a URL that I want to sign and I only want the signature.
|
|
9
|
-
* I have a URL that I want to sign and I want something suitable to put in
|
|
10
|
-
{the header, the querystring, XMPP}.
|
|
11
|
-
* I want to make a query to an OAuth-enabled web service (with sensible
|
|
12
|
-
errors, if available).
|
|
13
|
-
* I want to host an OAuth-enabled web service.
|
|
14
|
-
* I want to test my OAuth-enabled web service (i.e. test helpers)
|
|
15
|
-
|
|
16
|
-
Example applications for:
|
|
17
|
-
* Ning
|
|
18
|
-
* Fire Eagle
|
|
19
|
-
* Google (blogger, contacts)
|
|
20
|
-
* Twitter
|
|
21
|
-
* YOS / YQL
|
|
22
|
-
* Netflix
|
|
23
|
-
|
|
24
|
-
In addition to providing best practices of use, these can also be part of
|
|
25
|
-
the pre-release checks to make sure that there have been no regressions.
|
|
26
|
-
|
|
27
|
-
Random TODOs:
|
|
28
|
-
* finish CLI
|
|
29
|
-
* sensible Exception hierarchy
|
|
30
|
-
* Tokens as Modules
|
|
31
|
-
* don't tie to Net::HTTP
|
|
32
|
-
* Take a look at Curb HTTP Verbs
|