doorkeeper 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of doorkeeper might be problematic. Click here for more details.

Files changed (32) hide show
  1. data/README.md +63 -48
  2. data/app/assets/stylesheets/doorkeeper/application.css +10 -2
  3. data/app/controllers/doorkeeper/application_controller.rbc +663 -0
  4. data/app/controllers/doorkeeper/applications_controller.rbc +954 -0
  5. data/app/controllers/doorkeeper/authorizations_controller.rb +8 -1
  6. data/app/controllers/doorkeeper/authorizations_controller.rbc +595 -0
  7. data/app/controllers/doorkeeper/tokens_controller.rbc +423 -0
  8. data/app/helpers/doorkeeper/application_helper.rbc +127 -0
  9. data/app/models/access_grant.rb +10 -2
  10. data/app/models/access_grant.rbc +656 -0
  11. data/app/models/access_token.rbc +781 -0
  12. data/app/models/application.rbc +507 -0
  13. data/app/views/doorkeeper/authorizations/new.html.erb +16 -12
  14. data/app/views/layouts/doorkeeper/application.html.erb +9 -0
  15. data/config/initializers/form_errors.rbc +272 -0
  16. data/config/routes.rbc +322 -0
  17. data/lib/doorkeeper.rbc +407 -0
  18. data/lib/doorkeeper/config.rbc +941 -0
  19. data/lib/doorkeeper/doorkeeper_for.rbc +1029 -0
  20. data/lib/doorkeeper/engine.rbc +318 -0
  21. data/lib/doorkeeper/oauth/access_token_request.rb +9 -2
  22. data/lib/doorkeeper/oauth/access_token_request.rbc +1853 -0
  23. data/lib/doorkeeper/oauth/authorization_request.rb +5 -0
  24. data/lib/doorkeeper/oauth/authorization_request.rbc +2107 -0
  25. data/lib/doorkeeper/oauth/random_string.rbc +437 -0
  26. data/lib/doorkeeper/validations.rbc +774 -0
  27. data/lib/doorkeeper/version.rb +1 -1
  28. data/lib/doorkeeper/version.rbc +130 -0
  29. data/lib/generators/doorkeeper/install_generator.rbc +453 -0
  30. data/lib/generators/doorkeeper/templates/migration.rb +1 -0
  31. data/lib/tasks/doorkeeper_tasks.rake.compiled.rbc +40 -0
  32. metadata +44 -17
@@ -2,7 +2,14 @@ class Doorkeeper::AuthorizationsController < Doorkeeper::ApplicationController
2
2
  before_filter :authenticate_resource_owner!
3
3
 
4
4
  def new
5
- render :error unless authorization.valid?
5
+ if authorization.valid?
6
+ if authorization.access_token_exists?
7
+ authorization.authorize
8
+ redirect_to authorization.success_redirect_uri
9
+ end
10
+ else
11
+ render :error
12
+ end
6
13
  end
7
14
 
8
15
  def create
@@ -0,0 +1,595 @@
1
+ !RBIX
2
+ 9595534255132031488
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 35
13
+ 99
14
+ 7
15
+ 0
16
+ 45
17
+ 1
18
+ 2
19
+ 43
20
+ 3
21
+ 45
22
+ 1
23
+ 4
24
+ 49
25
+ 5
26
+ 3
27
+ 13
28
+ 99
29
+ 12
30
+ 7
31
+ 6
32
+ 12
33
+ 7
34
+ 7
35
+ 12
36
+ 65
37
+ 12
38
+ 49
39
+ 8
40
+ 4
41
+ 15
42
+ 49
43
+ 6
44
+ 0
45
+ 15
46
+ 2
47
+ 11
48
+ I
49
+ 6
50
+ I
51
+ 0
52
+ I
53
+ 0
54
+ I
55
+ 0
56
+ n
57
+ p
58
+ 9
59
+ x
60
+ 24
61
+ AuthorizationsController
62
+ x
63
+ 10
64
+ Doorkeeper
65
+ n
66
+ x
67
+ 21
68
+ ApplicationController
69
+ n
70
+ x
71
+ 16
72
+ open_class_under
73
+ x
74
+ 14
75
+ __class_init__
76
+ M
77
+ 1
78
+ n
79
+ n
80
+ x
81
+ 24
82
+ AuthorizationsController
83
+ i
84
+ 70
85
+ 5
86
+ 66
87
+ 5
88
+ 7
89
+ 0
90
+ 47
91
+ 49
92
+ 1
93
+ 1
94
+ 15
95
+ 99
96
+ 7
97
+ 2
98
+ 7
99
+ 3
100
+ 65
101
+ 67
102
+ 49
103
+ 4
104
+ 0
105
+ 49
106
+ 5
107
+ 4
108
+ 15
109
+ 99
110
+ 7
111
+ 6
112
+ 7
113
+ 7
114
+ 65
115
+ 67
116
+ 49
117
+ 4
118
+ 0
119
+ 49
120
+ 5
121
+ 4
122
+ 15
123
+ 99
124
+ 7
125
+ 8
126
+ 7
127
+ 9
128
+ 65
129
+ 67
130
+ 49
131
+ 4
132
+ 0
133
+ 49
134
+ 5
135
+ 4
136
+ 15
137
+ 5
138
+ 48
139
+ 10
140
+ 15
141
+ 99
142
+ 7
143
+ 11
144
+ 7
145
+ 12
146
+ 65
147
+ 67
148
+ 49
149
+ 4
150
+ 0
151
+ 49
152
+ 5
153
+ 4
154
+ 11
155
+ I
156
+ 5
157
+ I
158
+ 0
159
+ I
160
+ 0
161
+ I
162
+ 0
163
+ n
164
+ p
165
+ 13
166
+ x
167
+ 28
168
+ authenticate_resource_owner!
169
+ x
170
+ 13
171
+ before_filter
172
+ x
173
+ 3
174
+ new
175
+ M
176
+ 1
177
+ n
178
+ n
179
+ x
180
+ 3
181
+ new
182
+ i
183
+ 19
184
+ 5
185
+ 48
186
+ 0
187
+ 49
188
+ 1
189
+ 0
190
+ 9
191
+ 11
192
+ 1
193
+ 8
194
+ 18
195
+ 5
196
+ 7
197
+ 2
198
+ 47
199
+ 49
200
+ 3
201
+ 1
202
+ 11
203
+ I
204
+ 2
205
+ I
206
+ 0
207
+ I
208
+ 0
209
+ I
210
+ 0
211
+ n
212
+ p
213
+ 4
214
+ x
215
+ 13
216
+ authorization
217
+ x
218
+ 6
219
+ valid?
220
+ x
221
+ 5
222
+ error
223
+ x
224
+ 6
225
+ render
226
+ p
227
+ 7
228
+ I
229
+ -1
230
+ I
231
+ 4
232
+ I
233
+ 0
234
+ I
235
+ 5
236
+ I
237
+ 12
238
+ I
239
+ 0
240
+ I
241
+ 13
242
+ x
243
+ 95
244
+ /Users/felipeelias/Applicake/doorkeeper/app/controllers/doorkeeper/authorizations_controller.rb
245
+ p
246
+ 0
247
+ x
248
+ 17
249
+ method_visibility
250
+ x
251
+ 15
252
+ add_defn_method
253
+ x
254
+ 6
255
+ create
256
+ M
257
+ 1
258
+ n
259
+ n
260
+ x
261
+ 6
262
+ create
263
+ i
264
+ 29
265
+ 5
266
+ 48
267
+ 0
268
+ 49
269
+ 1
270
+ 0
271
+ 9
272
+ 21
273
+ 5
274
+ 5
275
+ 48
276
+ 0
277
+ 49
278
+ 2
279
+ 0
280
+ 47
281
+ 49
282
+ 3
283
+ 1
284
+ 8
285
+ 28
286
+ 5
287
+ 7
288
+ 4
289
+ 47
290
+ 49
291
+ 5
292
+ 1
293
+ 11
294
+ I
295
+ 2
296
+ I
297
+ 0
298
+ I
299
+ 0
300
+ I
301
+ 0
302
+ n
303
+ p
304
+ 6
305
+ x
306
+ 13
307
+ authorization
308
+ x
309
+ 9
310
+ authorize
311
+ x
312
+ 20
313
+ success_redirect_uri
314
+ x
315
+ 11
316
+ redirect_to
317
+ x
318
+ 5
319
+ error
320
+ x
321
+ 6
322
+ render
323
+ p
324
+ 11
325
+ I
326
+ -1
327
+ I
328
+ 8
329
+ I
330
+ 0
331
+ I
332
+ 9
333
+ I
334
+ 8
335
+ I
336
+ a
337
+ I
338
+ 15
339
+ I
340
+ c
341
+ I
342
+ 1c
343
+ I
344
+ 0
345
+ I
346
+ 1d
347
+ x
348
+ 95
349
+ /Users/felipeelias/Applicake/doorkeeper/app/controllers/doorkeeper/authorizations_controller.rb
350
+ p
351
+ 0
352
+ x
353
+ 7
354
+ destroy
355
+ M
356
+ 1
357
+ n
358
+ n
359
+ x
360
+ 7
361
+ destroy
362
+ i
363
+ 19
364
+ 5
365
+ 48
366
+ 0
367
+ 49
368
+ 1
369
+ 0
370
+ 15
371
+ 5
372
+ 5
373
+ 48
374
+ 0
375
+ 49
376
+ 2
377
+ 0
378
+ 47
379
+ 49
380
+ 3
381
+ 1
382
+ 11
383
+ I
384
+ 2
385
+ I
386
+ 0
387
+ I
388
+ 0
389
+ I
390
+ 0
391
+ n
392
+ p
393
+ 4
394
+ x
395
+ 13
396
+ authorization
397
+ x
398
+ 4
399
+ deny
400
+ x
401
+ 20
402
+ invalid_redirect_uri
403
+ x
404
+ 11
405
+ redirect_to
406
+ p
407
+ 7
408
+ I
409
+ -1
410
+ I
411
+ 10
412
+ I
413
+ 0
414
+ I
415
+ 11
416
+ I
417
+ 7
418
+ I
419
+ 12
420
+ I
421
+ 13
422
+ x
423
+ 95
424
+ /Users/felipeelias/Applicake/doorkeeper/app/controllers/doorkeeper/authorizations_controller.rb
425
+ p
426
+ 0
427
+ x
428
+ 7
429
+ private
430
+ x
431
+ 13
432
+ authorization
433
+ M
434
+ 1
435
+ n
436
+ n
437
+ x
438
+ 13
439
+ authorization
440
+ i
441
+ 49
442
+ 39
443
+ 0
444
+ 13
445
+ 10
446
+ 48
447
+ 15
448
+ 45
449
+ 1
450
+ 2
451
+ 43
452
+ 3
453
+ 43
454
+ 4
455
+ 13
456
+ 71
457
+ 5
458
+ 47
459
+ 9
460
+ 37
461
+ 47
462
+ 49
463
+ 6
464
+ 0
465
+ 13
466
+ 5
467
+ 48
468
+ 7
469
+ 5
470
+ 48
471
+ 8
472
+ 47
473
+ 49
474
+ 9
475
+ 2
476
+ 15
477
+ 8
478
+ 46
479
+ 5
480
+ 48
481
+ 7
482
+ 5
483
+ 48
484
+ 8
485
+ 49
486
+ 5
487
+ 2
488
+ 38
489
+ 0
490
+ 11
491
+ I
492
+ 4
493
+ I
494
+ 0
495
+ I
496
+ 0
497
+ I
498
+ 0
499
+ n
500
+ p
501
+ 10
502
+ x
503
+ 14
504
+ @authorization
505
+ x
506
+ 10
507
+ Doorkeeper
508
+ n
509
+ x
510
+ 5
511
+ OAuth
512
+ x
513
+ 20
514
+ AuthorizationRequest
515
+ x
516
+ 3
517
+ new
518
+ x
519
+ 8
520
+ allocate
521
+ x
522
+ 22
523
+ current_resource_owner
524
+ x
525
+ 6
526
+ params
527
+ x
528
+ 10
529
+ initialize
530
+ p
531
+ 5
532
+ I
533
+ -1
534
+ I
535
+ 17
536
+ I
537
+ 0
538
+ I
539
+ 18
540
+ I
541
+ 31
542
+ x
543
+ 95
544
+ /Users/felipeelias/Applicake/doorkeeper/app/controllers/doorkeeper/authorizations_controller.rb
545
+ p
546
+ 0
547
+ p
548
+ 13
549
+ I
550
+ 2
551
+ I
552
+ 2
553
+ I
554
+ a
555
+ I
556
+ 4
557
+ I
558
+ 18
559
+ I
560
+ 8
561
+ I
562
+ 26
563
+ I
564
+ 10
565
+ I
566
+ 34
567
+ I
568
+ 15
569
+ I
570
+ 38
571
+ I
572
+ 17
573
+ I
574
+ 46
575
+ x
576
+ 95
577
+ /Users/felipeelias/Applicake/doorkeeper/app/controllers/doorkeeper/authorizations_controller.rb
578
+ p
579
+ 0
580
+ x
581
+ 13
582
+ attach_method
583
+ p
584
+ 3
585
+ I
586
+ 0
587
+ I
588
+ 1
589
+ I
590
+ 23
591
+ x
592
+ 95
593
+ /Users/felipeelias/Applicake/doorkeeper/app/controllers/doorkeeper/authorizations_controller.rb
594
+ p
595
+ 0