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
@@ -3,16 +3,20 @@
3
3
  </div>
4
4
 
5
5
  <div class="span16">
6
- <%= form_tag authorization_path do %>
7
- <%= hidden_field_tag :client_id, @authorization.client_id %>
8
- <%= hidden_field_tag :redirect_uri, @authorization.redirect_uri %>
9
- <%= hidden_field_tag :response_type, @authorization.response_type %>
10
- <%= submit_tag "Authorize", :class => "btn primary" %> or
11
- <% end %>
12
- <%= form_tag authorization_path, :method => :delete do %>
13
- <%= hidden_field_tag :client_id, @authorization.client_id %>
14
- <%= hidden_field_tag :redirect_uri, @authorization.redirect_uri %>
15
- <%= hidden_field_tag :response_type, @authorization.response_type %>
16
- <%= button_tag "Deny", :class => "btn" %>
17
- <% end %>
6
+ <div class="inline_block">
7
+ <%= form_tag authorization_path do %>
8
+ <%= hidden_field_tag :client_id, @authorization.client_id %>
9
+ <%= hidden_field_tag :redirect_uri, @authorization.redirect_uri %>
10
+ <%= hidden_field_tag :response_type, @authorization.response_type %>
11
+ <%= submit_tag "Authorize", :class => "btn success" %> or
12
+ <% end %>
13
+ </div>
14
+ <div class="inline_block">
15
+ <%= form_tag authorization_path, :method => :delete do %>
16
+ <%= hidden_field_tag :client_id, @authorization.client_id %>
17
+ <%= hidden_field_tag :redirect_uri, @authorization.redirect_uri %>
18
+ <%= hidden_field_tag :response_type, @authorization.response_type %>
19
+ <%= button_tag "Deny", :class => "btn" %>
20
+ <% end %>
21
+ </div>
18
22
  </div>
@@ -9,6 +9,15 @@
9
9
  </head>
10
10
  <body>
11
11
  <section id="main" class="container">
12
+ <div class="topbar">
13
+ <div class="fill">
14
+ <div class="container">
15
+ <span class="brand">
16
+ OAuth2 Provider
17
+ </span>
18
+ </div>
19
+ </div>
20
+ </div>
12
21
  <div class="content">
13
22
  <div class="row">
14
23
  <% flash.each do |key, message| %>
@@ -0,0 +1,272 @@
1
+ !RBIX
2
+ 9595534255132031488
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 23
13
+ 45
14
+ 0
15
+ 1
16
+ 43
17
+ 2
18
+ 45
19
+ 3
20
+ 4
21
+ 56
22
+ 5
23
+ 50
24
+ 6
25
+ 0
26
+ 13
27
+ 18
28
+ 2
29
+ 49
30
+ 7
31
+ 1
32
+ 15
33
+ 15
34
+ 2
35
+ 11
36
+ I
37
+ 3
38
+ I
39
+ 0
40
+ I
41
+ 0
42
+ I
43
+ 0
44
+ n
45
+ p
46
+ 8
47
+ x
48
+ 10
49
+ ActionView
50
+ n
51
+ x
52
+ 4
53
+ Base
54
+ x
55
+ 4
56
+ Proc
57
+ n
58
+ M
59
+ 1
60
+ p
61
+ 2
62
+ x
63
+ 9
64
+ for_block
65
+ t
66
+ n
67
+ x
68
+ 9
69
+ __block__
70
+ i
71
+ 75
72
+ 58
73
+ 37
74
+ 19
75
+ 0
76
+ 15
77
+ 37
78
+ 19
79
+ 1
80
+ 15
81
+ 15
82
+ 20
83
+ 0
84
+ 7
85
+ 0
86
+ 64
87
+ 49
88
+ 1
89
+ 1
90
+ 9
91
+ 72
92
+ 20
93
+ 1
94
+ 49
95
+ 2
96
+ 0
97
+ 19
98
+ 3
99
+ 7
100
+ 3
101
+ 49
102
+ 4
103
+ 1
104
+ 9
105
+ 44
106
+ 20
107
+ 3
108
+ 7
109
+ 5
110
+ 64
111
+ 49
112
+ 3
113
+ 1
114
+ 8
115
+ 46
116
+ 20
117
+ 3
118
+ 19
119
+ 2
120
+ 15
121
+ 7
122
+ 6
123
+ 20
124
+ 0
125
+ 47
126
+ 101
127
+ 7
128
+ 7
129
+ 8
130
+ 20
131
+ 2
132
+ 47
133
+ 101
134
+ 7
135
+ 7
136
+ 9
137
+ 63
138
+ 5
139
+ 49
140
+ 10
141
+ 0
142
+ 8
143
+ 74
144
+ 20
145
+ 0
146
+ 11
147
+ I
148
+ a
149
+ I
150
+ 4
151
+ I
152
+ 2
153
+ I
154
+ 2
155
+ n
156
+ p
157
+ 11
158
+ s
159
+ 5
160
+ input
161
+ x
162
+ 5
163
+ match
164
+ x
165
+ 13
166
+ error_message
167
+ x
168
+ 4
169
+ join
170
+ x
171
+ 11
172
+ respond_to?
173
+ s
174
+ 1
175
+ ,
176
+ s
177
+ 29
178
+ <span class="error">
179
+
180
+ x
181
+ 4
182
+ to_s
183
+ s
184
+ 46
185
+
186
+ <span class="help-inline">
187
+
188
+ s
189
+ 35
190
+
191
+ </span>
192
+ </span>
193
+
194
+ x
195
+ 9
196
+ html_safe
197
+ p
198
+ 19
199
+ I
200
+ 0
201
+ I
202
+ 1
203
+ I
204
+ a
205
+ I
206
+ 2
207
+ I
208
+ 14
209
+ I
210
+ 3
211
+ I
212
+ 2e
213
+ I
214
+ 3
215
+ I
216
+ 31
217
+ I
218
+ 4
219
+ I
220
+ 33
221
+ I
222
+ 5
223
+ I
224
+ 3a
225
+ I
226
+ 7
227
+ I
228
+ 48
229
+ I
230
+ c
231
+ I
232
+ 4a
233
+ I
234
+ 0
235
+ I
236
+ 4b
237
+ x
238
+ 74
239
+ /Users/felipeelias/Applicake/doorkeeper/config/initializers/form_errors.rb
240
+ p
241
+ 4
242
+ x
243
+ 8
244
+ html_tag
245
+ x
246
+ 8
247
+ instance
248
+ x
249
+ 7
250
+ message
251
+ x
252
+ 5
253
+ error
254
+ x
255
+ 3
256
+ new
257
+ x
258
+ 17
259
+ field_error_proc=
260
+ p
261
+ 3
262
+ I
263
+ 0
264
+ I
265
+ 1
266
+ I
267
+ 17
268
+ x
269
+ 74
270
+ /Users/felipeelias/Applicake/doorkeeper/config/initializers/form_errors.rb
271
+ p
272
+ 0
data/config/routes.rbc ADDED
@@ -0,0 +1,322 @@
1
+ !RBIX
2
+ 9595534255132031488
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 16
13
+ 45
14
+ 0
15
+ 1
16
+ 43
17
+ 2
18
+ 49
19
+ 3
20
+ 0
21
+ 56
22
+ 4
23
+ 50
24
+ 5
25
+ 0
26
+ 15
27
+ 2
28
+ 11
29
+ I
30
+ 2
31
+ I
32
+ 0
33
+ I
34
+ 0
35
+ I
36
+ 0
37
+ n
38
+ p
39
+ 6
40
+ x
41
+ 10
42
+ Doorkeeper
43
+ n
44
+ x
45
+ 6
46
+ Engine
47
+ x
48
+ 6
49
+ routes
50
+ M
51
+ 1
52
+ p
53
+ 2
54
+ x
55
+ 9
56
+ for_block
57
+ t
58
+ n
59
+ x
60
+ 9
61
+ __block__
62
+ i
63
+ 148
64
+ 5
65
+ 7
66
+ 0
67
+ 64
68
+ 44
69
+ 43
70
+ 1
71
+ 80
72
+ 49
73
+ 2
74
+ 1
75
+ 13
76
+ 7
77
+ 3
78
+ 7
79
+ 4
80
+ 64
81
+ 49
82
+ 5
83
+ 2
84
+ 15
85
+ 13
86
+ 7
87
+ 6
88
+ 7
89
+ 7
90
+ 49
91
+ 5
92
+ 2
93
+ 15
94
+ 47
95
+ 49
96
+ 8
97
+ 2
98
+ 15
99
+ 5
100
+ 7
101
+ 0
102
+ 64
103
+ 44
104
+ 43
105
+ 1
106
+ 80
107
+ 49
108
+ 2
109
+ 1
110
+ 13
111
+ 7
112
+ 3
113
+ 7
114
+ 9
115
+ 64
116
+ 49
117
+ 5
118
+ 2
119
+ 15
120
+ 13
121
+ 7
122
+ 6
123
+ 7
124
+ 7
125
+ 49
126
+ 5
127
+ 2
128
+ 15
129
+ 47
130
+ 49
131
+ 10
132
+ 2
133
+ 15
134
+ 5
135
+ 7
136
+ 0
137
+ 64
138
+ 44
139
+ 43
140
+ 1
141
+ 80
142
+ 49
143
+ 2
144
+ 1
145
+ 13
146
+ 7
147
+ 3
148
+ 7
149
+ 11
150
+ 64
151
+ 49
152
+ 5
153
+ 2
154
+ 15
155
+ 13
156
+ 7
157
+ 6
158
+ 7
159
+ 7
160
+ 49
161
+ 5
162
+ 2
163
+ 15
164
+ 47
165
+ 49
166
+ 12
167
+ 2
168
+ 15
169
+ 5
170
+ 7
171
+ 13
172
+ 64
173
+ 44
174
+ 43
175
+ 1
176
+ 80
177
+ 49
178
+ 2
179
+ 1
180
+ 13
181
+ 7
182
+ 3
183
+ 7
184
+ 14
185
+ 64
186
+ 49
187
+ 5
188
+ 2
189
+ 15
190
+ 13
191
+ 7
192
+ 6
193
+ 7
194
+ 15
195
+ 49
196
+ 5
197
+ 2
198
+ 15
199
+ 47
200
+ 49
201
+ 10
202
+ 2
203
+ 15
204
+ 5
205
+ 7
206
+ 16
207
+ 47
208
+ 49
209
+ 17
210
+ 1
211
+ 11
212
+ I
213
+ 7
214
+ I
215
+ 0
216
+ I
217
+ 0
218
+ I
219
+ 0
220
+ I
221
+ -2
222
+ p
223
+ 18
224
+ s
225
+ 9
226
+ authorize
227
+ x
228
+ 4
229
+ Hash
230
+ x
231
+ 16
232
+ new_from_literal
233
+ x
234
+ 2
235
+ to
236
+ s
237
+ 18
238
+ authorizations#new
239
+ x
240
+ 3
241
+ []=
242
+ x
243
+ 2
244
+ as
245
+ x
246
+ 13
247
+ authorization
248
+ x
249
+ 3
250
+ get
251
+ s
252
+ 21
253
+ authorizations#create
254
+ x
255
+ 4
256
+ post
257
+ s
258
+ 22
259
+ authorizations#destroy
260
+ x
261
+ 6
262
+ delete
263
+ s
264
+ 5
265
+ token
266
+ s
267
+ 13
268
+ tokens#create
269
+ x
270
+ 5
271
+ token
272
+ x
273
+ 12
274
+ applications
275
+ x
276
+ 9
277
+ resources
278
+ p
279
+ 11
280
+ I
281
+ 0
282
+ I
283
+ 2
284
+ I
285
+ 23
286
+ I
287
+ 3
288
+ I
289
+ 46
290
+ I
291
+ 4
292
+ I
293
+ 69
294
+ I
295
+ 5
296
+ I
297
+ 8c
298
+ I
299
+ 7
300
+ I
301
+ 94
302
+ x
303
+ 56
304
+ /Users/felipeelias/Applicake/doorkeeper/config/routes.rb
305
+ p
306
+ 0
307
+ x
308
+ 4
309
+ draw
310
+ p
311
+ 3
312
+ I
313
+ 0
314
+ I
315
+ 1
316
+ I
317
+ 10
318
+ x
319
+ 56
320
+ /Users/felipeelias/Applicake/doorkeeper/config/routes.rb
321
+ p
322
+ 0