oauth 1.0.1 → 1.1.1
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 +4 -0
- data/CHANGELOG.md +325 -39
- data/CITATION.cff +20 -0
- data/CODE_OF_CONDUCT.md +79 -29
- data/CONTRIBUTING.md +221 -15
- data/FUNDING.md +77 -0
- data/{LICENSE → LICENSE.txt} +1 -1
- data/README.md +546 -274
- data/REEK +0 -0
- data/RUBOCOP.md +71 -0
- data/SECURITY.md +27 -10
- data/lib/oauth/client/action_controller_request.rb +14 -9
- 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 +105 -54
- 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 +41 -0
- data/lib/oauth/request_proxy/base.rb +16 -13
- 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/rest_client_request.rb +4 -3
- data/lib/oauth/server.rb +12 -8
- data/lib/oauth/signature/base.rb +1 -1
- data/lib/oauth/signature/rsa/sha1.rb +11 -4
- data/lib/oauth/tokens/access_token.rb +1 -1
- data/lib/oauth/tokens/consumer_token.rb +2 -2
- data/lib/oauth/tokens/request_token.rb +9 -4
- data/lib/oauth/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +265 -89
- metadata.gz.sig +3 -0
- data/TODO +0 -32
- data/bin/oauth +0 -15
- data/lib/oauth/cli/authorize_command.rb +0 -73
- data/lib/oauth/cli/base_command.rb +0 -214
- data/lib/oauth/cli/help_command.rb +0 -26
- data/lib/oauth/cli/query_command.rb +0 -34
- data/lib/oauth/cli/sign_command.rb +0 -82
- data/lib/oauth/cli/version_command.rb +0 -11
- data/lib/oauth/cli.rb +0 -58
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oauth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pelle Braendgaard
|
@@ -15,9 +15,57 @@ authors:
|
|
15
15
|
- Peter Boling
|
16
16
|
autorequire:
|
17
17
|
bindir: bin
|
18
|
-
cert_chain:
|
19
|
-
|
18
|
+
cert_chain:
|
19
|
+
- |
|
20
|
+
-----BEGIN CERTIFICATE-----
|
21
|
+
MIIEgDCCAuigAwIBAgIBATANBgkqhkiG9w0BAQsFADBDMRUwEwYDVQQDDAxwZXRl
|
22
|
+
ci5ib2xpbmcxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkW
|
23
|
+
A2NvbTAeFw0yNTA1MDQxNTMzMDlaFw00NTA0MjkxNTMzMDlaMEMxFTATBgNVBAMM
|
24
|
+
DHBldGVyLmJvbGluZzEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPy
|
25
|
+
LGQBGRYDY29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAruUoo0WA
|
26
|
+
uoNuq6puKWYeRYiZekz/nsDeK5x/0IEirzcCEvaHr3Bmz7rjo1I6On3gGKmiZs61
|
27
|
+
LRmQ3oxy77ydmkGTXBjruJB+pQEn7UfLSgQ0xa1/X3kdBZt6RmabFlBxnHkoaGY5
|
28
|
+
mZuZ5+Z7walmv6sFD9ajhzj+oIgwWfnEHkXYTR8I6VLN7MRRKGMPoZ/yvOmxb2DN
|
29
|
+
coEEHWKO9CvgYpW7asIihl/9GMpKiRkcYPm9dGQzZc6uTwom1COfW0+ZOFrDVBuV
|
30
|
+
FMQRPswZcY4Wlq0uEBLPU7hxnCL9nKK6Y9IhdDcz1mY6HZ91WImNslOSI0S8hRpj
|
31
|
+
yGOWxQIhBT3fqCBlRIqFQBudrnD9jSNpSGsFvbEijd5ns7Z9ZMehXkXDycpGAUj1
|
32
|
+
to/5cuTWWw1JqUWrKJYoifnVhtE1o1DZ+LkPtWxHtz5kjDG/zR3MG0Ula0UOavlD
|
33
|
+
qbnbcXPBnwXtTFeZ3C+yrWpE4pGnl3yGkZj9SMTlo9qnTMiPmuWKQDatAgMBAAGj
|
34
|
+
fzB9MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBQE8uWvNbPVNRXZ
|
35
|
+
HlgPbc2PCzC4bjAhBgNVHREEGjAYgRZwZXRlci5ib2xpbmdAZ21haWwuY29tMCEG
|
36
|
+
A1UdEgQaMBiBFnBldGVyLmJvbGluZ0BnbWFpbC5jb20wDQYJKoZIhvcNAQELBQAD
|
37
|
+
ggGBAJbnUwfJQFPkBgH9cL7hoBfRtmWiCvdqdjeTmi04u8zVNCUox0A4gT982DE9
|
38
|
+
wmuN12LpdajxZONqbXuzZvc+nb0StFwmFYZG6iDwaf4BPywm2e/Vmq0YG45vZXGR
|
39
|
+
L8yMDSK1cQXjmA+ZBKOHKWavxP6Vp7lWvjAhz8RFwqF9GuNIdhv9NpnCAWcMZtpm
|
40
|
+
GUPyIWw/Cw/2wZp74QzZj6Npx+LdXoLTF1HMSJXZ7/pkxLCsB8m4EFVdb/IrW/0k
|
41
|
+
kNSfjtAfBHO8nLGuqQZVH9IBD1i9K6aSs7pT6TW8itXUIlkIUI2tg5YzW6OFfPzq
|
42
|
+
QekSkX3lZfY+HTSp/o+YvKkqWLUV7PQ7xh1ZYDtocpaHwgxe/j3bBqHE+CUPH2vA
|
43
|
+
0V/FwdTRWcwsjVoOJTrYcff8pBZ8r2MvtAc54xfnnhGFzeRHfcltobgFxkAXdE6p
|
44
|
+
DVjBtqT23eugOqQ73umLcYDZkc36vnqGxUBSsXrzY9pzV5gGr2I8YUxMqf6ATrZt
|
45
|
+
L9nRqA==
|
46
|
+
-----END CERTIFICATE-----
|
47
|
+
date: 2025-09-22 00:00:00.000000000 Z
|
20
48
|
dependencies:
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: oauth-tty
|
51
|
+
requirement: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '1.0'
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: 1.0.6
|
59
|
+
type: :runtime
|
60
|
+
prerelease: false
|
61
|
+
version_requirements: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - "~>"
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '1.0'
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.0.6
|
21
69
|
- !ruby/object:Gem::Dependency
|
22
70
|
name: snaky_hash
|
23
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,6 +87,9 @@ dependencies:
|
|
39
87
|
- - "~>"
|
40
88
|
- !ruby/object:Gem::Version
|
41
89
|
version: '1.1'
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 1.1.9
|
42
93
|
type: :runtime
|
43
94
|
prerelease: false
|
44
95
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -46,22 +97,39 @@ dependencies:
|
|
46
97
|
- - "~>"
|
47
98
|
- !ruby/object:Gem::Version
|
48
99
|
version: '1.1'
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 1.1.9
|
49
103
|
- !ruby/object:Gem::Dependency
|
50
|
-
name:
|
104
|
+
name: mocha
|
51
105
|
requirement: !ruby/object:Gem::Requirement
|
52
106
|
requirements:
|
53
|
-
- - "
|
107
|
+
- - ">="
|
54
108
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
109
|
+
version: '0'
|
56
110
|
type: :development
|
57
111
|
prerelease: false
|
58
112
|
version_requirements: !ruby/object:Gem::Requirement
|
59
113
|
requirements:
|
60
|
-
- - "
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: rack
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 2.0.0
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
61
129
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
130
|
+
version: 2.0.0
|
63
131
|
- !ruby/object:Gem::Dependency
|
64
|
-
name:
|
132
|
+
name: rack-test
|
65
133
|
requirement: !ruby/object:Gem::Requirement
|
66
134
|
requirements:
|
67
135
|
- - ">="
|
@@ -75,155 +143,274 @@ dependencies:
|
|
75
143
|
- !ruby/object:Gem::Version
|
76
144
|
version: '0'
|
77
145
|
- !ruby/object:Gem::Dependency
|
78
|
-
name:
|
146
|
+
name: rest-client
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
152
|
+
type: :development
|
153
|
+
prerelease: false
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: typhoeus
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - ">="
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: 0.1.13
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: 0.1.13
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
name: kettle-dev
|
79
175
|
requirement: !ruby/object:Gem::Requirement
|
80
176
|
requirements:
|
81
177
|
- - "~>"
|
82
178
|
- !ruby/object:Gem::Version
|
83
|
-
version:
|
179
|
+
version: '1.1'
|
84
180
|
type: :development
|
85
181
|
prerelease: false
|
86
182
|
version_requirements: !ruby/object:Gem::Requirement
|
87
183
|
requirements:
|
88
184
|
- - "~>"
|
89
185
|
- !ruby/object:Gem::Version
|
90
|
-
version:
|
186
|
+
version: '1.1'
|
91
187
|
- !ruby/object:Gem::Dependency
|
92
|
-
name:
|
188
|
+
name: bundler-audit
|
189
|
+
requirement: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - "~>"
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: 0.9.2
|
194
|
+
type: :development
|
195
|
+
prerelease: false
|
196
|
+
version_requirements: !ruby/object:Gem::Requirement
|
197
|
+
requirements:
|
198
|
+
- - "~>"
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: 0.9.2
|
201
|
+
- !ruby/object:Gem::Dependency
|
202
|
+
name: rake
|
93
203
|
requirement: !ruby/object:Gem::Requirement
|
94
204
|
requirements:
|
205
|
+
- - "~>"
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: '13.0'
|
208
|
+
type: :development
|
209
|
+
prerelease: false
|
210
|
+
version_requirements: !ruby/object:Gem::Requirement
|
211
|
+
requirements:
|
212
|
+
- - "~>"
|
213
|
+
- !ruby/object:Gem::Version
|
214
|
+
version: '13.0'
|
215
|
+
- !ruby/object:Gem::Dependency
|
216
|
+
name: require_bench
|
217
|
+
requirement: !ruby/object:Gem::Requirement
|
218
|
+
requirements:
|
219
|
+
- - "~>"
|
220
|
+
- !ruby/object:Gem::Version
|
221
|
+
version: '1.0'
|
95
222
|
- - ">="
|
96
223
|
- !ruby/object:Gem::Version
|
97
|
-
version:
|
224
|
+
version: 1.0.4
|
98
225
|
type: :development
|
99
226
|
prerelease: false
|
100
227
|
version_requirements: !ruby/object:Gem::Requirement
|
101
228
|
requirements:
|
229
|
+
- - "~>"
|
230
|
+
- !ruby/object:Gem::Version
|
231
|
+
version: '1.0'
|
102
232
|
- - ">="
|
103
233
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
234
|
+
version: 1.0.4
|
105
235
|
- !ruby/object:Gem::Dependency
|
106
|
-
name:
|
236
|
+
name: appraisal2
|
107
237
|
requirement: !ruby/object:Gem::Requirement
|
108
238
|
requirements:
|
109
239
|
- - "~>"
|
110
240
|
- !ruby/object:Gem::Version
|
111
|
-
version: '
|
241
|
+
version: '3.0'
|
112
242
|
type: :development
|
113
243
|
prerelease: false
|
114
244
|
version_requirements: !ruby/object:Gem::Requirement
|
115
245
|
requirements:
|
116
246
|
- - "~>"
|
117
247
|
- !ruby/object:Gem::Version
|
118
|
-
version: '
|
248
|
+
version: '3.0'
|
119
249
|
- !ruby/object:Gem::Dependency
|
120
|
-
name:
|
250
|
+
name: kettle-test
|
251
|
+
requirement: !ruby/object:Gem::Requirement
|
252
|
+
requirements:
|
253
|
+
- - "~>"
|
254
|
+
- !ruby/object:Gem::Version
|
255
|
+
version: '1.0'
|
256
|
+
type: :development
|
257
|
+
prerelease: false
|
258
|
+
version_requirements: !ruby/object:Gem::Requirement
|
259
|
+
requirements:
|
260
|
+
- - "~>"
|
261
|
+
- !ruby/object:Gem::Version
|
262
|
+
version: '1.0'
|
263
|
+
- !ruby/object:Gem::Dependency
|
264
|
+
name: rspec-pending_for
|
121
265
|
requirement: !ruby/object:Gem::Requirement
|
122
266
|
requirements:
|
267
|
+
- - "~>"
|
268
|
+
- !ruby/object:Gem::Version
|
269
|
+
version: '0.0'
|
123
270
|
- - ">="
|
124
271
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
272
|
+
version: 0.0.17
|
126
273
|
type: :development
|
127
274
|
prerelease: false
|
128
275
|
version_requirements: !ruby/object:Gem::Requirement
|
129
276
|
requirements:
|
277
|
+
- - "~>"
|
278
|
+
- !ruby/object:Gem::Version
|
279
|
+
version: '0.0'
|
130
280
|
- - ">="
|
131
281
|
- !ruby/object:Gem::Version
|
132
|
-
version:
|
282
|
+
version: 0.0.17
|
133
283
|
- !ruby/object:Gem::Dependency
|
134
|
-
name:
|
284
|
+
name: ruby-progressbar
|
135
285
|
requirement: !ruby/object:Gem::Requirement
|
136
286
|
requirements:
|
137
287
|
- - "~>"
|
138
288
|
- !ruby/object:Gem::Version
|
139
|
-
version: '13
|
289
|
+
version: '1.13'
|
140
290
|
type: :development
|
141
291
|
prerelease: false
|
142
292
|
version_requirements: !ruby/object:Gem::Requirement
|
143
293
|
requirements:
|
144
294
|
- - "~>"
|
145
295
|
- !ruby/object:Gem::Version
|
146
|
-
version: '13
|
296
|
+
version: '1.13'
|
147
297
|
- !ruby/object:Gem::Dependency
|
148
|
-
name:
|
298
|
+
name: stone_checksums
|
149
299
|
requirement: !ruby/object:Gem::Requirement
|
150
300
|
requirements:
|
301
|
+
- - "~>"
|
302
|
+
- !ruby/object:Gem::Version
|
303
|
+
version: '1.0'
|
151
304
|
- - ">="
|
152
305
|
- !ruby/object:Gem::Version
|
153
|
-
version:
|
306
|
+
version: 1.0.2
|
154
307
|
type: :development
|
155
308
|
prerelease: false
|
156
309
|
version_requirements: !ruby/object:Gem::Requirement
|
157
310
|
requirements:
|
311
|
+
- - "~>"
|
312
|
+
- !ruby/object:Gem::Version
|
313
|
+
version: '1.0'
|
158
314
|
- - ">="
|
159
315
|
- !ruby/object:Gem::Version
|
160
|
-
version:
|
316
|
+
version: 1.0.2
|
161
317
|
- !ruby/object:Gem::Dependency
|
162
|
-
name:
|
318
|
+
name: gitmoji-regex
|
163
319
|
requirement: !ruby/object:Gem::Requirement
|
164
320
|
requirements:
|
165
321
|
- - "~>"
|
166
322
|
- !ruby/object:Gem::Version
|
167
|
-
version: '
|
323
|
+
version: '1.0'
|
324
|
+
- - ">="
|
325
|
+
- !ruby/object:Gem::Version
|
326
|
+
version: 1.0.3
|
168
327
|
type: :development
|
169
328
|
prerelease: false
|
170
329
|
version_requirements: !ruby/object:Gem::Requirement
|
171
330
|
requirements:
|
172
331
|
- - "~>"
|
173
332
|
- !ruby/object:Gem::Version
|
174
|
-
version: '
|
333
|
+
version: '1.0'
|
334
|
+
- - ">="
|
335
|
+
- !ruby/object:Gem::Version
|
336
|
+
version: 1.0.3
|
175
337
|
- !ruby/object:Gem::Dependency
|
176
|
-
name:
|
338
|
+
name: backports
|
177
339
|
requirement: !ruby/object:Gem::Requirement
|
178
340
|
requirements:
|
341
|
+
- - "~>"
|
342
|
+
- !ruby/object:Gem::Version
|
343
|
+
version: '3.25'
|
179
344
|
- - ">="
|
180
345
|
- !ruby/object:Gem::Version
|
181
|
-
version:
|
346
|
+
version: 3.25.1
|
347
|
+
type: :development
|
348
|
+
prerelease: false
|
349
|
+
version_requirements: !ruby/object:Gem::Requirement
|
350
|
+
requirements:
|
351
|
+
- - "~>"
|
352
|
+
- !ruby/object:Gem::Version
|
353
|
+
version: '3.25'
|
354
|
+
- - ">="
|
355
|
+
- !ruby/object:Gem::Version
|
356
|
+
version: 3.25.1
|
357
|
+
- !ruby/object:Gem::Dependency
|
358
|
+
name: vcr
|
359
|
+
requirement: !ruby/object:Gem::Requirement
|
360
|
+
requirements:
|
361
|
+
- - ">="
|
362
|
+
- !ruby/object:Gem::Version
|
363
|
+
version: '4'
|
182
364
|
type: :development
|
183
365
|
prerelease: false
|
184
366
|
version_requirements: !ruby/object:Gem::Requirement
|
185
367
|
requirements:
|
186
368
|
- - ">="
|
187
369
|
- !ruby/object:Gem::Version
|
188
|
-
version:
|
370
|
+
version: '4'
|
189
371
|
- !ruby/object:Gem::Dependency
|
190
372
|
name: webmock
|
191
373
|
requirement: !ruby/object:Gem::Requirement
|
192
374
|
requirements:
|
193
|
-
- - "
|
375
|
+
- - ">="
|
194
376
|
- !ruby/object:Gem::Version
|
195
|
-
version: 3
|
377
|
+
version: '3'
|
196
378
|
type: :development
|
197
379
|
prerelease: false
|
198
380
|
version_requirements: !ruby/object:Gem::Requirement
|
199
381
|
requirements:
|
200
|
-
- - "
|
382
|
+
- - ">="
|
201
383
|
- !ruby/object:Gem::Version
|
202
|
-
version: 3
|
203
|
-
description:
|
204
|
-
email:
|
205
|
-
|
206
|
-
- oauth
|
384
|
+
version: '3'
|
385
|
+
description: "\U0001F511 A Ruby wrapper for the original OAuth 1.0 / 1.0a spec."
|
386
|
+
email:
|
387
|
+
- floss@galtzo.com
|
388
|
+
- oauth-ruby@googlegroups.com
|
389
|
+
executables: []
|
207
390
|
extensions: []
|
208
391
|
extra_rdoc_files:
|
209
|
-
-
|
392
|
+
- CHANGELOG.md
|
393
|
+
- CITATION.cff
|
394
|
+
- CODE_OF_CONDUCT.md
|
395
|
+
- CONTRIBUTING.md
|
396
|
+
- FUNDING.md
|
397
|
+
- LICENSE.txt
|
398
|
+
- README.md
|
399
|
+
- REEK
|
400
|
+
- RUBOCOP.md
|
401
|
+
- SECURITY.md
|
210
402
|
files:
|
211
403
|
- CHANGELOG.md
|
404
|
+
- CITATION.cff
|
212
405
|
- CODE_OF_CONDUCT.md
|
213
406
|
- CONTRIBUTING.md
|
214
|
-
-
|
407
|
+
- FUNDING.md
|
408
|
+
- LICENSE.txt
|
215
409
|
- README.md
|
410
|
+
- REEK
|
411
|
+
- RUBOCOP.md
|
216
412
|
- SECURITY.md
|
217
|
-
- TODO
|
218
|
-
- bin/oauth
|
219
413
|
- lib/oauth.rb
|
220
|
-
- lib/oauth/cli.rb
|
221
|
-
- lib/oauth/cli/authorize_command.rb
|
222
|
-
- lib/oauth/cli/base_command.rb
|
223
|
-
- lib/oauth/cli/help_command.rb
|
224
|
-
- lib/oauth/cli/query_command.rb
|
225
|
-
- lib/oauth/cli/sign_command.rb
|
226
|
-
- lib/oauth/cli/version_command.rb
|
227
414
|
- lib/oauth/client.rb
|
228
415
|
- lib/oauth/client/action_controller_request.rb
|
229
416
|
- lib/oauth/client/em_http.rb
|
@@ -237,6 +424,7 @@ files:
|
|
237
424
|
- lib/oauth/helper.rb
|
238
425
|
- lib/oauth/oauth.rb
|
239
426
|
- lib/oauth/oauth_test_helper.rb
|
427
|
+
- lib/oauth/optional.rb
|
240
428
|
- lib/oauth/request_proxy.rb
|
241
429
|
- lib/oauth/request_proxy/action_controller_request.rb
|
242
430
|
- lib/oauth/request_proxy/action_dispatch_request.rb
|
@@ -263,59 +451,47 @@ files:
|
|
263
451
|
- lib/oauth/tokens/server_token.rb
|
264
452
|
- lib/oauth/tokens/token.rb
|
265
453
|
- lib/oauth/version.rb
|
266
|
-
homepage: https://github.com/oauth
|
454
|
+
homepage: https://github.com/ruby-oauth/oauth
|
267
455
|
licenses:
|
268
456
|
- MIT
|
269
457
|
metadata:
|
270
|
-
homepage_uri: https://
|
271
|
-
source_code_uri: https://github.com/oauth
|
272
|
-
changelog_uri: https://github.com/oauth
|
273
|
-
bug_tracker_uri: https://github.com/oauth
|
274
|
-
documentation_uri: https://www.rubydoc.info/gems/oauth/1.
|
275
|
-
|
458
|
+
homepage_uri: https://oauth.galtzo.com/
|
459
|
+
source_code_uri: https://github.com/ruby-oauth/oauth/tree/v1.1.1
|
460
|
+
changelog_uri: https://github.com/ruby-oauth/oauth/blob/v1.1.1/CHANGELOG.md
|
461
|
+
bug_tracker_uri: https://github.com/ruby-oauth/oauth/issues
|
462
|
+
documentation_uri: https://www.rubydoc.info/gems/oauth/1.1.1
|
463
|
+
mailing_list_uri: https://groups.google.com/g/oauth-ruby
|
464
|
+
funding_uri: https://github.com/sponsors/pboling
|
465
|
+
wiki_uri: https://gitlab.com/ruby-oauth/oauth/-/wiki
|
466
|
+
news_uri: https://www.railsbling.com/tags/oauth
|
467
|
+
discord_uri: https://discord.gg/3qme4XHNKN
|
276
468
|
rubygems_mfa_required: 'true'
|
277
|
-
post_install_message:
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
I wrote about some of the reasons here:
|
289
|
-
• https://dev.to/galtzo/im-leaving-github-50ba
|
290
|
-
|
291
|
-
If you are a human, please consider a donation as I move toward supporting myself with Open Source work:
|
292
|
-
• https://liberapay.com/pboling
|
293
|
-
• https://ko-fi.com/pboling
|
294
|
-
• https://patreon.com/galtzo
|
295
|
-
|
296
|
-
If you are a corporation, please consider supporting this project, and open source work generally, with a TideLift subscription.
|
297
|
-
• https://tidelift.com/funding/github/rubygems/oauth
|
298
|
-
• Or hire me. I am looking for a job!
|
299
|
-
|
300
|
-
Please report issues, and support the project!
|
301
|
-
|
302
|
-
Thanks, |7eter l-|. l3oling
|
303
|
-
rdoc_options: []
|
469
|
+
post_install_message:
|
470
|
+
rdoc_options:
|
471
|
+
- "--title"
|
472
|
+
- "oauth - \U0001F511 OAuth 1.0 / 1.0a Core Ruby implementation"
|
473
|
+
- "--main"
|
474
|
+
- README.md
|
475
|
+
- "--exclude"
|
476
|
+
- "^sig/"
|
477
|
+
- "--line-numbers"
|
478
|
+
- "--inline-source"
|
479
|
+
- "--quiet"
|
304
480
|
require_paths:
|
305
481
|
- lib
|
306
482
|
required_ruby_version: !ruby/object:Gem::Requirement
|
307
483
|
requirements:
|
308
484
|
- - ">="
|
309
485
|
- !ruby/object:Gem::Version
|
310
|
-
version: '2.
|
486
|
+
version: '2.3'
|
311
487
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
312
488
|
requirements:
|
313
489
|
- - ">="
|
314
490
|
- !ruby/object:Gem::Version
|
315
491
|
version: '0'
|
316
492
|
requirements: []
|
317
|
-
rubygems_version: 3.
|
493
|
+
rubygems_version: 3.5.22
|
318
494
|
signing_key:
|
319
495
|
specification_version: 4
|
320
|
-
summary: OAuth Core Ruby implementation
|
496
|
+
summary: "\U0001F511 OAuth 1.0 / 1.0a Core Ruby implementation"
|
321
497
|
test_files: []
|
metadata.gz.sig
ADDED
@@ -0,0 +1,3 @@
|
|
1
|
+
G���N.�k_�Y�>#�T�̍ v1���io��1ŏ�7c� X8bf���@J���[$gFZ�!�5�0#y�W�$��m?�W�Z��6�T(B@�E�v<��Q}��`��e#R���dPx��k�Q�UY������"^�r�����̅��G�%s��jc@��{��Go)�C��s��5̘��/�p֤ɖ��5�����Æ=겼u�k�=L�cs�e_Ṅu<��%*A.�gH!7#��1,iQA|����ܗ�eo�%2^|�l�e+�F/��t����T3ܪ�8
|
2
|
+
��-��e"eb�lq�L�HPA�������D�Xj���zaR�<�!YЗ��ͧ� j\����4�66��Բi�I&w���B b�
|
3
|
+
|
data/TODO
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
Common use-cases should be streamlined:
|
2
|
-
|
3
|
-
* I have a URL that I want to sign (given consumer key/secret, optional
|
4
|
-
token/secret, optional nonce/timestamp).
|
5
|
-
* I have a URL that I want to sign AND I want to see what the components
|
6
|
-
(e.g. signature base string, etc.) are while it's being signed (i.e. verbose
|
7
|
-
signing).
|
8
|
-
* I have a URL that I want to sign and I only want the signature.
|
9
|
-
* I have a URL that I want to sign and I want something suitable to put in
|
10
|
-
{the header, the querystring, XMPP}.
|
11
|
-
* I want to make a query to an OAuth-enabled web service (with sensible
|
12
|
-
errors, if available).
|
13
|
-
* I want to host an OAuth-enabled web service.
|
14
|
-
* I want to test my OAuth-enabled web service (i.e. test helpers)
|
15
|
-
|
16
|
-
Example applications for:
|
17
|
-
* Ning
|
18
|
-
* Fire Eagle
|
19
|
-
* Google (blogger, contacts)
|
20
|
-
* Twitter
|
21
|
-
* YOS / YQL
|
22
|
-
* Netflix
|
23
|
-
|
24
|
-
In addition to providing best practices of use, these can also be part of
|
25
|
-
the pre-release checks to make sure that there have been no regressions.
|
26
|
-
|
27
|
-
Random TODOs:
|
28
|
-
* finish CLI
|
29
|
-
* sensible Exception hierarchy
|
30
|
-
* Tokens as Modules
|
31
|
-
* don't tie to Net::HTTP
|
32
|
-
* Take a look at Curb HTTP Verbs
|
data/bin/oauth
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require "oauth"
|
5
|
-
require "oauth/cli"
|
6
|
-
|
7
|
-
# don't dump a backtrace on a ^C
|
8
|
-
Signal.trap("INT") do
|
9
|
-
puts
|
10
|
-
exit(1)
|
11
|
-
end
|
12
|
-
ARGV << "help" if ARGV.empty?
|
13
|
-
command = ARGV.shift
|
14
|
-
|
15
|
-
OAuth::CLI.new($stdout, $stdin, $stderr, command, ARGV).run
|
@@ -1,73 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module OAuth
|
4
|
-
class CLI
|
5
|
-
class AuthorizeCommand < BaseCommand
|
6
|
-
def required_options
|
7
|
-
[:uri]
|
8
|
-
end
|
9
|
-
|
10
|
-
def _run
|
11
|
-
request_token = get_request_token
|
12
|
-
|
13
|
-
if request_token.callback_confirmed?
|
14
|
-
puts "Server appears to support OAuth 1.0a; enabling support."
|
15
|
-
options[:version] = "1.0a"
|
16
|
-
end
|
17
|
-
|
18
|
-
puts "Please visit this url to authorize:"
|
19
|
-
puts request_token.authorize_url
|
20
|
-
|
21
|
-
# parameters for OAuth 1.0a
|
22
|
-
oauth_verifier = ask_user_for_verifier
|
23
|
-
|
24
|
-
verbosely_get_access_token(request_token, oauth_verifier)
|
25
|
-
end
|
26
|
-
|
27
|
-
def get_request_token
|
28
|
-
consumer = get_consumer
|
29
|
-
scope_options = options[:scope] ? { "scope" => options[:scope] } : {}
|
30
|
-
consumer.get_request_token({ oauth_callback: options[:oauth_callback] }, scope_options)
|
31
|
-
rescue OAuth::Unauthorized => e
|
32
|
-
alert "A problem occurred while attempting to authorize:"
|
33
|
-
alert e
|
34
|
-
alert e.request.body
|
35
|
-
end
|
36
|
-
|
37
|
-
def get_consumer
|
38
|
-
OAuth::Consumer.new \
|
39
|
-
options[:oauth_consumer_key],
|
40
|
-
options[:oauth_consumer_secret],
|
41
|
-
access_token_url: options[:access_token_url],
|
42
|
-
authorize_url: options[:authorize_url],
|
43
|
-
request_token_url: options[:request_token_url],
|
44
|
-
scheme: options[:scheme],
|
45
|
-
http_method: options[:method].to_s.downcase.to_sym
|
46
|
-
end
|
47
|
-
|
48
|
-
def ask_user_for_verifier
|
49
|
-
if options[:version] == "1.0a"
|
50
|
-
puts "Please enter the verification code provided by the SP (oauth_verifier):"
|
51
|
-
@stdin.gets.chomp
|
52
|
-
else
|
53
|
-
puts "Press return to continue..."
|
54
|
-
@stdin.gets
|
55
|
-
nil
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
def verbosely_get_access_token(request_token, oauth_verifier)
|
60
|
-
access_token = request_token.get_access_token(oauth_verifier: oauth_verifier)
|
61
|
-
|
62
|
-
puts "Response:"
|
63
|
-
access_token.params.each do |k, v|
|
64
|
-
puts " #{k}: #{v}" unless k.is_a?(Symbol)
|
65
|
-
end
|
66
|
-
rescue OAuth::Unauthorized => e
|
67
|
-
alert "A problem occurred while attempting to obtain an access token:"
|
68
|
-
alert e
|
69
|
-
alert e.request.body
|
70
|
-
end
|
71
|
-
end
|
72
|
-
end
|
73
|
-
end
|