doorkeeper-sequel 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +5 -5
  2. data/.rubocop.yml +29 -2
  3. data/.travis.yml +3 -12
  4. data/Gemfile +13 -9
  5. data/Rakefile +22 -20
  6. data/config/locales/en.yml +8 -0
  7. data/doorkeeper-sequel.gemspec +27 -24
  8. data/gemfiles/rails-5.0.gemfile +9 -6
  9. data/gemfiles/rails-5.1.gemfile +9 -6
  10. data/gemfiles/rails-5.2.gemfile +9 -6
  11. data/gemfiles/rails-6.0.gemfile +18 -0
  12. data/lib/doorkeeper-sequel.rb +20 -17
  13. data/lib/doorkeeper-sequel/gem_version.rb +4 -2
  14. data/lib/doorkeeper-sequel/generators/application_owner_generator.rb +5 -3
  15. data/lib/doorkeeper-sequel/generators/concerns/migration_actions.rb +8 -6
  16. data/lib/doorkeeper-sequel/generators/confidential_applications_generator.rb +5 -3
  17. data/lib/doorkeeper-sequel/generators/migration_generator.rb +5 -3
  18. data/lib/doorkeeper-sequel/generators/pkce_generator.rb +5 -3
  19. data/lib/doorkeeper-sequel/generators/previous_refresh_token_generator.rb +5 -3
  20. data/lib/doorkeeper-sequel/generators/templates/add_confidential_to_application_migration.rb +2 -0
  21. data/lib/doorkeeper-sequel/generators/templates/add_owner_to_application.rb +3 -1
  22. data/lib/doorkeeper-sequel/generators/templates/add_previous_refresh_token_to_access_tokens.rb +3 -1
  23. data/lib/doorkeeper-sequel/generators/templates/create_doorkeeper_tables.rb +4 -2
  24. data/lib/doorkeeper-sequel/generators/templates/enable_pkce_migration.rb +3 -1
  25. data/lib/doorkeeper-sequel/mixins/access_grant_mixin.rb +30 -16
  26. data/lib/doorkeeper-sequel/mixins/access_token_mixin.rb +73 -24
  27. data/lib/doorkeeper-sequel/mixins/application_mixin.rb +52 -25
  28. data/lib/doorkeeper-sequel/mixins/concerns/ownership.rb +2 -0
  29. data/lib/doorkeeper-sequel/mixins/concerns/sequel_compat.rb +6 -4
  30. data/lib/doorkeeper-sequel/railtie.rb +3 -1
  31. data/lib/doorkeeper-sequel/tasks/doorkeeper-sequel.rake +7 -5
  32. data/lib/doorkeeper-sequel/validators/redirect_uri_validator.rb +29 -6
  33. data/lib/doorkeeper-sequel/version.rb +3 -1
  34. data/lib/doorkeeper/orm/sequel.rb +9 -5
  35. data/lib/doorkeeper/orm/sequel/access_grant.rb +18 -0
  36. data/lib/doorkeeper/orm/sequel/access_token.rb +2 -0
  37. data/lib/doorkeeper/orm/sequel/application.rb +26 -3
  38. data/lib/doorkeeper/redirect_uri_validator.rb +9 -0
  39. data/spec/stubs/spec_helper_integration.rb +8 -8
  40. metadata +177 -245
  41. data/gemfiles/rails-4.2.gemfile +0 -13
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doorkeeper-sequel
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikita Bulai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-04 00:00:00.000000000 Z
11
+ date: 2019-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bcrypt
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.1'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: doorkeeper
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -17,6 +31,9 @@ dependencies:
17
31
  - - ">="
18
32
  - !ruby/object:Gem::Version
19
33
  version: 5.0.0
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '5.3'
20
37
  type: :runtime
21
38
  prerelease: false
22
39
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,6 +41,9 @@ dependencies:
24
41
  - - ">="
25
42
  - !ruby/object:Gem::Version
26
43
  version: 5.0.0
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '5.3'
27
47
  - !ruby/object:Gem::Dependency
28
48
  name: sequel
29
49
  requirement: !ruby/object:Gem::Requirement
@@ -85,21 +105,27 @@ dependencies:
85
105
  - !ruby/object:Gem::Version
86
106
  version: '6'
87
107
  - !ruby/object:Gem::Dependency
88
- name: coveralls
108
+ name: capybara
89
109
  requirement: !ruby/object:Gem::Requirement
90
110
  requirements:
91
111
  - - ">="
92
112
  - !ruby/object:Gem::Version
93
- version: '0'
113
+ version: 2.14.0
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '2.14'
94
117
  type: :development
95
118
  prerelease: false
96
119
  version_requirements: !ruby/object:Gem::Requirement
97
120
  requirements:
98
121
  - - ">="
99
122
  - !ruby/object:Gem::Version
100
- version: '0'
123
+ version: 2.14.0
124
+ - - "~>"
125
+ - !ruby/object:Gem::Version
126
+ version: '2.14'
101
127
  - !ruby/object:Gem::Dependency
102
- name: grape
128
+ name: coveralls
103
129
  requirement: !ruby/object:Gem::Requirement
104
130
  requirements:
105
131
  - - ">="
@@ -113,45 +139,25 @@ dependencies:
113
139
  - !ruby/object:Gem::Version
114
140
  version: '0'
115
141
  - !ruby/object:Gem::Dependency
116
- name: capybara
142
+ name: database_cleaner
117
143
  requirement: !ruby/object:Gem::Requirement
118
144
  requirements:
119
- - - "~>"
120
- - !ruby/object:Gem::Version
121
- version: '2.14'
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: 2.14.0
125
- type: :development
126
- prerelease: false
127
- version_requirements: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '2.14'
132
145
  - - ">="
133
146
  - !ruby/object:Gem::Version
134
- version: 2.14.0
135
- - !ruby/object:Gem::Dependency
136
- name: database_cleaner
137
- requirement: !ruby/object:Gem::Requirement
138
- requirements:
147
+ version: 1.5.0
139
148
  - - "~>"
140
149
  - !ruby/object:Gem::Version
141
150
  version: '1.5'
142
- - - ">="
143
- - !ruby/object:Gem::Version
144
- version: 1.5.0
145
151
  type: :development
146
152
  prerelease: false
147
153
  version_requirements: !ruby/object:Gem::Requirement
148
154
  requirements:
149
- - - "~>"
150
- - !ruby/object:Gem::Version
151
- version: '1.5'
152
155
  - - ">="
153
156
  - !ruby/object:Gem::Version
154
157
  version: 1.5.0
158
+ - - "~>"
159
+ - !ruby/object:Gem::Version
160
+ version: '1.5'
155
161
  - !ruby/object:Gem::Dependency
156
162
  name: factory_bot
157
163
  requirement: !ruby/object:Gem::Requirement
@@ -180,6 +186,20 @@ dependencies:
180
186
  - - "~>"
181
187
  - !ruby/object:Gem::Version
182
188
  version: 0.9.4
189
+ - !ruby/object:Gem::Dependency
190
+ name: grape
191
+ requirement: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - ">="
194
+ - !ruby/object:Gem::Version
195
+ version: '0'
196
+ type: :development
197
+ prerelease: false
198
+ version_requirements: !ruby/object:Gem::Requirement
199
+ requirements:
200
+ - - ">="
201
+ - !ruby/object:Gem::Version
202
+ version: '0'
183
203
  - !ruby/object:Gem::Dependency
184
204
  name: rspec-rails
185
205
  requirement: !ruby/object:Gem::Requirement
@@ -213,10 +233,10 @@ files:
213
233
  - Rakefile
214
234
  - config/locales/en.yml
215
235
  - doorkeeper-sequel.gemspec
216
- - gemfiles/rails-4.2.gemfile
217
236
  - gemfiles/rails-5.0.gemfile
218
237
  - gemfiles/rails-5.1.gemfile
219
238
  - gemfiles/rails-5.2.gemfile
239
+ - gemfiles/rails-6.0.gemfile
220
240
  - lib/doorkeeper-sequel.rb
221
241
  - lib/doorkeeper-sequel/gem_version.rb
222
242
  - lib/doorkeeper-sequel/generators/application_owner_generator.rb
@@ -244,6 +264,7 @@ files:
244
264
  - lib/doorkeeper/orm/sequel/access_token.rb
245
265
  - lib/doorkeeper/orm/sequel/application.rb
246
266
  - lib/doorkeeper/orm/sequel/stale_records_cleaner.rb
267
+ - lib/doorkeeper/redirect_uri_validator.rb
247
268
  - spec/controllers/application_metal_controller_spec.rb
248
269
  - spec/controllers/applications_controller_spec.rb
249
270
  - spec/controllers/authorizations_controller_spec.rb
@@ -286,72 +307,22 @@ files:
286
307
  - spec/dummy/db/migrate/20170822064514_enable_pkce.rb
287
308
  - spec/dummy/db/migrate/20180210183654_add_confidential_to_applications.rb
288
309
  - spec/dummy/db/schema.rb
289
- - spec/dummy/log/test.log
290
310
  - spec/dummy/public/404.html
291
311
  - spec/dummy/public/422.html
292
312
  - spec/dummy/public/500.html
293
313
  - spec/dummy/public/favicon.ico
294
314
  - spec/dummy/script/rails
295
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/0p/0pa3wNbGHqFC6gxrMvdOJiP6gPwFv9VJ_npjEfRWxAE.cache
296
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/2C/2C9t8HfJg90nE6MPdwPjat-x10FoGiWgZPUw9kmsPsI.cache
297
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/3P/3PoguHEOEeItUjmwC74MWLLP-_Ijow7798bF5U6K2dw.cache
298
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/6b/6b0anrSo7Fvoc05t4Ca0zZmfS_cpERy1DsG3ea6lBOg.cache
299
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/7L/7LMxo1fRhQsTzTk4HEOKaKrXZZ6W6h1y3NP1bitM7ZQ.cache
300
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/7q/7q9VgVs--Akr7g5EzfwMMjm7kzT9nfzupV_6i1iZ2UM.cache
301
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/BA/BAC3ZaGoeZ9Od-kKg-UQYelvRgsCa0H72-52nLdcTNw.cache
302
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/BP/BPg8R8WCRaQjKyU4cbh_OtZKlqrO3SNih8XEK6HFgt0.cache
303
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Bw/Bw6Nimjvy5Yv1AYbZb1t-v0eMNhv-bhwBzR-b5mY7FU.cache
304
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/E5/E5sdePtlY78DzZGK0ss7hIguFKUxwdooY8WiM3BWo3s.cache
305
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Fq/FqQWjMAz8yjZQlMC_dUsztaOxGruI2IXyGAAUF9SvQ0.cache
306
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Hn/HnZczabSGuPuyZkh8kkTVR9fsNh_10o7xc5uzxcm-6Y.cache
307
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/J_/J_D9clwKidN28hnVB1O3zEfKDwg90Usdb5ToKiPq_aw.cache
308
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Ji/JitNKkP1dYdu9ObSdIkkEAsiFxEmRO5oy1UIyhT_hYs.cache
309
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Jq/JqTLVvnY2AgGkHftWPwqt_HkbwhYRsmgHxk37VqKJAY.cache
310
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Pk/PkX2fMYiAxTYc9kX4pFVXseR-CdZmnpWX7GniCMQHO0.cache
311
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/QX/QXcp8DweOJ6BfMedGMfeHvVXv2hjDIleln1LSJk7vOE.cache
312
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Rg/RgtUEkFKU-oi_LZ0R-kXz4SfnJIf_pEG-BwRK2Jc0v0.cache
313
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Ta/TaYxNn81MhqC3DnMC6_y_Q7xap5Ntn4ggFo94EUaiak.cache
314
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/W7/W7gU40NzeL-YSA7WVWNmHkpNN8cocSrXN6iD-0EJwfw.cache
315
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Wq/WqbLVKOcTMZtttygYt_ncr1mGIDrzevSTaPGNmzV1D8.cache
316
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Xv/Xvu9wgL0ZoJUg40hTfJ7VEhswxHSZTFqafJONsalmSo.cache
317
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/YF/YF60qiQ28QMoYDrLmrbHWZr7X7bl5MxVPR5QrrVCFak.cache
318
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Yf/YfJJZvm_NONHd4eCasDibCcRapZ_WYIO5MUxSUUbYFk.cache
319
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Z0/Z0e47cT2a-21U-w-3gkbgqC3o5jWnEzOB8vW06aJH1E.cache
320
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Z3/Z3pV6hviTFmi6L98n9tVOy94nUUt8X_dSnvO0FqTjzc.cache
321
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/_1/_1LQPrIlY8mTaxRd58w68ZBIVwaDge57_fpmw6PKGTI.cache
322
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/dL/dL7SLUWUIeVdyA1UuH-rvif0nzesOar3LdEtqzdb4bE.cache
323
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/ej/ej1aKu26DikNnd9272jY2Y2o4C3QI2B1JdZhdPTQvA4.cache
324
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/f8/f8WT8jqR1qNIdQaRDpXbyLN7E5AWkbYFBwdh9Ozk7gk.cache
325
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/hk/hk2YB6skvc72qL4IzzQKU8Emyfe5vARjoD1bvQTw4zE.cache
326
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/ii/iiJRBZIsxKiwyzU_Z7UtQeUTXMRJRPTreTKRvAWO7_8.cache
327
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/mx/mxO2JNHTQy9FY1xVYenKUIupjGyjFgEKhw7bF6oYCes.cache
328
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/pA/pAXzgvvIc7N1TYHmLtkgkRI_Nj58_VIMBT8CSRxDg5A.cache
329
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/qo/qo6SpT75QykYB63Aqq5bgzpXyNU1Y4dGFvCCJgoWQpE.cache
330
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/vO/vOXN0mER62j4JiPpMTSVS7MMqs0067cZx14vD5B8qiQ.cache
331
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/x1/x1j1iA1FTi7zaePBRFSuc5hzG2jhJ0Otdn8LnC-PHvU.cache
332
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/zI/zIwTd39w92Mk6c86cODQlqHM3ymkZwY8N6Ee2plkTKg.cache
333
315
  - spec/factories.rb
334
316
  - spec/generators/templates/routes.rb
335
- - spec/generators/tmp/dummy/app/views/doorkeeper/applications/_delete_form.html.erb
336
- - spec/generators/tmp/dummy/app/views/doorkeeper/applications/_form.html.erb
337
- - spec/generators/tmp/dummy/app/views/doorkeeper/applications/edit.html.erb
338
- - spec/generators/tmp/dummy/app/views/doorkeeper/applications/index.html.erb
339
- - spec/generators/tmp/dummy/app/views/doorkeeper/applications/new.html.erb
340
- - spec/generators/tmp/dummy/app/views/doorkeeper/applications/show.html.erb
341
- - spec/generators/tmp/dummy/app/views/doorkeeper/authorizations/error.html.erb
342
- - spec/generators/tmp/dummy/app/views/doorkeeper/authorizations/new.html.erb
343
- - spec/generators/tmp/dummy/app/views/doorkeeper/authorizations/show.html.erb
344
- - spec/generators/tmp/dummy/app/views/doorkeeper/authorized_applications/_delete_form.html.erb
345
- - spec/generators/tmp/dummy/app/views/doorkeeper/authorized_applications/index.html.erb
346
- - spec/generators/tmp/dummy/app/views/layouts/doorkeeper/admin.html.erb
347
- - spec/generators/tmp/dummy/app/views/layouts/doorkeeper/application.html.erb
348
317
  - spec/grape/grape_integration_spec.rb
349
318
  - spec/helpers/doorkeeper/dashboard_helper_spec.rb
350
319
  - spec/lib/config_spec.rb
351
320
  - spec/lib/doorkeeper_spec.rb
352
321
  - spec/lib/models/expirable_spec.rb
322
+ - spec/lib/models/reusable_spec.rb
353
323
  - spec/lib/models/revocable_spec.rb
354
324
  - spec/lib/models/scopes_spec.rb
325
+ - spec/lib/models/secret_storable_spec.rb
355
326
  - spec/lib/oauth/authorization/uri_builder_spec.rb
356
327
  - spec/lib/oauth/authorization_code_request_spec.rb
357
328
  - spec/lib/oauth/base_request_spec.rb
@@ -371,6 +342,7 @@ files:
371
342
  - spec/lib/oauth/helpers/scope_checker_spec.rb
372
343
  - spec/lib/oauth/helpers/unique_token_spec.rb
373
344
  - spec/lib/oauth/helpers/uri_checker_spec.rb
345
+ - spec/lib/oauth/invalid_request_response_spec.rb
374
346
  - spec/lib/oauth/invalid_token_response_spec.rb
375
347
  - spec/lib/oauth/password_access_token_request_spec.rb
376
348
  - spec/lib/oauth/pre_authorization_spec.rb
@@ -380,6 +352,10 @@ files:
380
352
  - spec/lib/oauth/token_response_spec.rb
381
353
  - spec/lib/oauth/token_spec.rb
382
354
  - spec/lib/request/strategy_spec.rb
355
+ - spec/lib/secret_storing/base_spec.rb
356
+ - spec/lib/secret_storing/bcrypt_spec.rb
357
+ - spec/lib/secret_storing/plain_spec.rb
358
+ - spec/lib/secret_storing/sha256_hash_spec.rb
383
359
  - spec/lib/server_spec.rb
384
360
  - spec/lib/stale_records_cleaner_spec.rb
385
361
  - spec/models/doorkeeper/access_grant_spec.rb
@@ -423,6 +399,7 @@ files:
423
399
  - spec/support/orm/active_record.rb
424
400
  - spec/support/orm/sequel.rb
425
401
  - spec/support/shared/controllers_shared_context.rb
402
+ - spec/support/shared/hashing_shared_context.rb
426
403
  - spec/support/shared/models_shared_examples.rb
427
404
  - spec/validators/redirect_uri_validator_spec.rb
428
405
  - spec/version/version_spec.rb
@@ -446,191 +423,146 @@ required_rubygems_version: !ruby/object:Gem::Requirement
446
423
  - !ruby/object:Gem::Version
447
424
  version: '0'
448
425
  requirements: []
449
- rubyforge_project:
450
- rubygems_version: 2.6.11
426
+ rubygems_version: 3.0.2
451
427
  signing_key:
452
428
  specification_version: 4
453
429
  summary: Doorkeeper Sequel ORM
454
430
  test_files:
455
431
  - spec/version/version_spec.rb
456
- - spec/generators/tmp/dummy/app/views/layouts/doorkeeper/admin.html.erb
457
- - spec/generators/tmp/dummy/app/views/layouts/doorkeeper/application.html.erb
458
- - spec/generators/tmp/dummy/app/views/doorkeeper/authorized_applications/index.html.erb
459
- - spec/generators/tmp/dummy/app/views/doorkeeper/authorized_applications/_delete_form.html.erb
460
- - spec/generators/tmp/dummy/app/views/doorkeeper/authorizations/show.html.erb
461
- - spec/generators/tmp/dummy/app/views/doorkeeper/authorizations/new.html.erb
462
- - spec/generators/tmp/dummy/app/views/doorkeeper/authorizations/error.html.erb
463
- - spec/generators/tmp/dummy/app/views/doorkeeper/applications/show.html.erb
464
- - spec/generators/tmp/dummy/app/views/doorkeeper/applications/new.html.erb
465
- - spec/generators/tmp/dummy/app/views/doorkeeper/applications/index.html.erb
466
- - spec/generators/tmp/dummy/app/views/doorkeeper/applications/edit.html.erb
467
- - spec/generators/tmp/dummy/app/views/doorkeeper/applications/_delete_form.html.erb
468
- - spec/generators/tmp/dummy/app/views/doorkeeper/applications/_form.html.erb
469
- - spec/generators/templates/routes.rb
470
- - spec/support/http_method_shim.rb
471
- - spec/support/doorkeeper_rspec.rb
432
+ - spec/spec_helper.rb
433
+ - spec/lib/stale_records_cleaner_spec.rb
434
+ - spec/lib/oauth/token_spec.rb
435
+ - spec/lib/oauth/refresh_token_request_spec.rb
436
+ - spec/lib/oauth/pre_authorization_spec.rb
437
+ - spec/lib/oauth/token_response_spec.rb
438
+ - spec/lib/oauth/client/credentials_spec.rb
439
+ - spec/lib/oauth/token_request_spec.rb
440
+ - spec/lib/oauth/scopes_spec.rb
441
+ - spec/lib/oauth/client_credentials_request_spec.rb
442
+ - spec/lib/oauth/code_request_spec.rb
443
+ - spec/lib/oauth/client_spec.rb
444
+ - spec/lib/oauth/error_spec.rb
445
+ - spec/lib/oauth/forbidden_token_response_spec.rb
446
+ - spec/lib/oauth/client_credentials/issuer_spec.rb
447
+ - spec/lib/oauth/client_credentials/creator_spec.rb
448
+ - spec/lib/oauth/client_credentials/validation_spec.rb
449
+ - spec/lib/oauth/password_access_token_request_spec.rb
450
+ - spec/lib/oauth/code_response_spec.rb
451
+ - spec/lib/oauth/client_credentials_integration_spec.rb
452
+ - spec/lib/oauth/base_response_spec.rb
453
+ - spec/lib/oauth/helpers/uri_checker_spec.rb
454
+ - spec/lib/oauth/helpers/scope_checker_spec.rb
455
+ - spec/lib/oauth/helpers/unique_token_spec.rb
456
+ - spec/lib/oauth/authorization/uri_builder_spec.rb
457
+ - spec/lib/oauth/authorization_code_request_spec.rb
458
+ - spec/lib/oauth/invalid_token_response_spec.rb
459
+ - spec/lib/oauth/base_request_spec.rb
460
+ - spec/lib/oauth/error_response_spec.rb
461
+ - spec/lib/oauth/invalid_request_response_spec.rb
462
+ - spec/lib/server_spec.rb
463
+ - spec/lib/models/scopes_spec.rb
464
+ - spec/lib/models/expirable_spec.rb
465
+ - spec/lib/models/revocable_spec.rb
466
+ - spec/lib/models/reusable_spec.rb
467
+ - spec/lib/models/secret_storable_spec.rb
468
+ - spec/lib/request/strategy_spec.rb
469
+ - spec/lib/secret_storing/plain_spec.rb
470
+ - spec/lib/secret_storing/base_spec.rb
471
+ - spec/lib/secret_storing/sha256_hash_spec.rb
472
+ - spec/lib/secret_storing/bcrypt_spec.rb
473
+ - spec/lib/doorkeeper_spec.rb
474
+ - spec/lib/config_spec.rb
475
+ - spec/validators/redirect_uri_validator_spec.rb
476
+ - spec/support/orm/active_record.rb
477
+ - spec/support/orm/sequel.rb
472
478
  - spec/support/shared/models_shared_examples.rb
473
479
  - spec/support/shared/controllers_shared_context.rb
474
- - spec/support/orm/sequel.rb
475
- - spec/support/orm/active_record.rb
476
- - spec/support/helpers/url_helper.rb
480
+ - spec/support/shared/hashing_shared_context.rb
481
+ - spec/support/http_method_shim.rb
482
+ - spec/support/doorkeeper_rspec.rb
483
+ - spec/support/dependencies/factory_bot.rb
484
+ - spec/support/helpers/authorization_request_helper.rb
477
485
  - spec/support/helpers/model_helper.rb
486
+ - spec/support/helpers/url_helper.rb
478
487
  - spec/support/helpers/config_helper.rb
479
- - spec/support/helpers/request_spec_helper.rb
480
488
  - spec/support/helpers/access_token_request_helper.rb
481
- - spec/support/helpers/authorization_request_helper.rb
482
- - spec/support/dependencies/factory_bot.rb
483
- - spec/stubs/generators/tmp/dummy/db/migrate/20170810125729_add_previous_refresh_token_to_access_tokens.rb
484
- - spec/stubs/support/sequel.rb
485
- - spec/stubs/models/user.rb
486
- - spec/stubs/spec_helper_integration.rb
487
- - spec/stubs/config/application.rb
488
- - spec/stubs/config/initializers/db.rb
489
- - spec/factories.rb
489
+ - spec/support/helpers/request_spec_helper.rb
490
490
  - spec/models/doorkeeper/access_token_spec.rb
491
- - spec/models/doorkeeper/application_spec.rb
492
491
  - spec/models/doorkeeper/access_grant_spec.rb
492
+ - spec/models/doorkeeper/application_spec.rb
493
+ - spec/routing/scoped_routes_spec.rb
494
+ - spec/routing/default_routes_spec.rb
495
+ - spec/routing/custom_controller_routes_spec.rb
496
+ - spec/generators/templates/routes.rb
493
497
  - spec/spec_helper_integration.rb
494
- - spec/validators/redirect_uri_validator_spec.rb
495
- - spec/dummy/public/422.html
496
- - spec/dummy/public/favicon.ico
497
- - spec/dummy/public/404.html
498
- - spec/dummy/public/500.html
499
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/7L/7LMxo1fRhQsTzTk4HEOKaKrXZZ6W6h1y3NP1bitM7ZQ.cache
500
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Pk/PkX2fMYiAxTYc9kX4pFVXseR-CdZmnpWX7GniCMQHO0.cache
501
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Xv/Xvu9wgL0ZoJUg40hTfJ7VEhswxHSZTFqafJONsalmSo.cache
502
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/BA/BAC3ZaGoeZ9Od-kKg-UQYelvRgsCa0H72-52nLdcTNw.cache
503
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/hk/hk2YB6skvc72qL4IzzQKU8Emyfe5vARjoD1bvQTw4zE.cache
504
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/x1/x1j1iA1FTi7zaePBRFSuc5hzG2jhJ0Otdn8LnC-PHvU.cache
505
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/7q/7q9VgVs--Akr7g5EzfwMMjm7kzT9nfzupV_6i1iZ2UM.cache
506
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/mx/mxO2JNHTQy9FY1xVYenKUIupjGyjFgEKhw7bF6oYCes.cache
507
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/BP/BPg8R8WCRaQjKyU4cbh_OtZKlqrO3SNih8XEK6HFgt0.cache
508
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Ta/TaYxNn81MhqC3DnMC6_y_Q7xap5Ntn4ggFo94EUaiak.cache
509
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Yf/YfJJZvm_NONHd4eCasDibCcRapZ_WYIO5MUxSUUbYFk.cache
510
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/3P/3PoguHEOEeItUjmwC74MWLLP-_Ijow7798bF5U6K2dw.cache
511
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Jq/JqTLVvnY2AgGkHftWPwqt_HkbwhYRsmgHxk37VqKJAY.cache
512
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Rg/RgtUEkFKU-oi_LZ0R-kXz4SfnJIf_pEG-BwRK2Jc0v0.cache
513
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Wq/WqbLVKOcTMZtttygYt_ncr1mGIDrzevSTaPGNmzV1D8.cache
514
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/YF/YF60qiQ28QMoYDrLmrbHWZr7X7bl5MxVPR5QrrVCFak.cache
515
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Hn/HnZczabSGuPuyZkh8kkTVR9fsNh_10o7xc5uzxcm-6Y.cache
516
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/vO/vOXN0mER62j4JiPpMTSVS7MMqs0067cZx14vD5B8qiQ.cache
517
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/ej/ej1aKu26DikNnd9272jY2Y2o4C3QI2B1JdZhdPTQvA4.cache
518
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/E5/E5sdePtlY78DzZGK0ss7hIguFKUxwdooY8WiM3BWo3s.cache
519
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/f8/f8WT8jqR1qNIdQaRDpXbyLN7E5AWkbYFBwdh9Ozk7gk.cache
520
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/6b/6b0anrSo7Fvoc05t4Ca0zZmfS_cpERy1DsG3ea6lBOg.cache
521
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/_1/_1LQPrIlY8mTaxRd58w68ZBIVwaDge57_fpmw6PKGTI.cache
522
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Z3/Z3pV6hviTFmi6L98n9tVOy94nUUt8X_dSnvO0FqTjzc.cache
523
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Z0/Z0e47cT2a-21U-w-3gkbgqC3o5jWnEzOB8vW06aJH1E.cache
524
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/ii/iiJRBZIsxKiwyzU_Z7UtQeUTXMRJRPTreTKRvAWO7_8.cache
525
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/0p/0pa3wNbGHqFC6gxrMvdOJiP6gPwFv9VJ_npjEfRWxAE.cache
526
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/W7/W7gU40NzeL-YSA7WVWNmHkpNN8cocSrXN6iD-0EJwfw.cache
527
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/QX/QXcp8DweOJ6BfMedGMfeHvVXv2hjDIleln1LSJk7vOE.cache
528
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/pA/pAXzgvvIc7N1TYHmLtkgkRI_Nj58_VIMBT8CSRxDg5A.cache
529
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Bw/Bw6Nimjvy5Yv1AYbZb1t-v0eMNhv-bhwBzR-b5mY7FU.cache
530
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Fq/FqQWjMAz8yjZQlMC_dUsztaOxGruI2IXyGAAUF9SvQ0.cache
531
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/2C/2C9t8HfJg90nE6MPdwPjat-x10FoGiWgZPUw9kmsPsI.cache
532
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/J_/J_D9clwKidN28hnVB1O3zEfKDwg90Usdb5ToKiPq_aw.cache
533
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/dL/dL7SLUWUIeVdyA1UuH-rvif0nzesOar3LdEtqzdb4bE.cache
534
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Ji/JitNKkP1dYdu9ObSdIkkEAsiFxEmRO5oy1UIyhT_hYs.cache
535
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/zI/zIwTd39w92Mk6c86cODQlqHM3ymkZwY8N6Ee2plkTKg.cache
536
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/qo/qo6SpT75QykYB63Aqq5bgzpXyNU1Y4dGFvCCJgoWQpE.cache
537
- - spec/dummy/app/views/home/index.html.erb
538
- - spec/dummy/app/views/layouts/application.html.erb
539
- - spec/dummy/app/models/user.rb
540
- - spec/dummy/app/helpers/application_helper.rb
498
+ - spec/factories.rb
499
+ - spec/controllers/tokens_controller_spec.rb
500
+ - spec/controllers/applications_controller_spec.rb
501
+ - spec/controllers/application_metal_controller_spec.rb
502
+ - spec/controllers/protected_resources_controller_spec.rb
503
+ - spec/controllers/token_info_controller_spec.rb
504
+ - spec/controllers/authorizations_controller_spec.rb
505
+ - spec/stubs/config/application.rb
506
+ - spec/stubs/config/initializers/db.rb
507
+ - spec/stubs/support/sequel.rb
508
+ - spec/stubs/models/user.rb
509
+ - spec/stubs/generators/tmp/dummy/db/migrate/20170810125729_add_previous_refresh_token_to_access_tokens.rb
510
+ - spec/stubs/spec_helper_integration.rb
511
+ - spec/helpers/doorkeeper/dashboard_helper_spec.rb
512
+ - spec/dummy/config/application.rb
513
+ - spec/dummy/config/environments/production.rb
514
+ - spec/dummy/config/environments/development.rb
515
+ - spec/dummy/config/environments/test.rb
516
+ - spec/dummy/config/environment.rb
517
+ - spec/dummy/config/database.yml
518
+ - spec/dummy/config/boot.rb
519
+ - spec/dummy/config/locales/doorkeeper.en.yml
520
+ - spec/dummy/config/routes.rb
521
+ - spec/dummy/config/initializers/db.rb
522
+ - spec/dummy/config/initializers/doorkeeper.rb
523
+ - spec/dummy/config/initializers/session_store.rb
524
+ - spec/dummy/config/initializers/backtrace_silencers.rb
525
+ - spec/dummy/config/initializers/wrap_parameters.rb
526
+ - spec/dummy/config/initializers/secret_token.rb
527
+ - spec/dummy/config.ru
528
+ - spec/dummy/script/rails
541
529
  - spec/dummy/app/assets/config/manifest.js
542
- - spec/dummy/app/controllers/metal_controller.rb
543
- - spec/dummy/app/controllers/full_protected_resources_controller.rb
530
+ - spec/dummy/app/models/user.rb
544
531
  - spec/dummy/app/controllers/home_controller.rb
545
- - spec/dummy/app/controllers/custom_authorizations_controller.rb
546
- - spec/dummy/app/controllers/semi_protected_resources_controller.rb
532
+ - spec/dummy/app/controllers/full_protected_resources_controller.rb
533
+ - spec/dummy/app/controllers/metal_controller.rb
547
534
  - spec/dummy/app/controllers/application_controller.rb
535
+ - spec/dummy/app/controllers/semi_protected_resources_controller.rb
536
+ - spec/dummy/app/controllers/custom_authorizations_controller.rb
537
+ - spec/dummy/app/views/layouts/application.html.erb
538
+ - spec/dummy/app/views/home/index.html.erb
539
+ - spec/dummy/app/helpers/application_helper.rb
548
540
  - spec/dummy/Rakefile
549
- - spec/dummy/config.ru
550
- - spec/dummy/script/rails
551
- - spec/dummy/db/schema.rb
552
541
  - spec/dummy/db/migrate/20170822064514_enable_pkce.rb
553
542
  - spec/dummy/db/migrate/20120312140401_add_password_to_users.rb
554
- - spec/dummy/db/migrate/20111122132257_create_users.rb
555
543
  - spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
556
544
  - spec/dummy/db/migrate/20180210183654_add_confidential_to_applications.rb
557
- - spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb
545
+ - spec/dummy/db/migrate/20111122132257_create_users.rb
558
546
  - spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb
559
- - spec/dummy/config/environment.rb
560
- - spec/dummy/config/application.rb
561
- - spec/dummy/config/environments/test.rb
562
- - spec/dummy/config/environments/development.rb
563
- - spec/dummy/config/environments/production.rb
564
- - spec/dummy/config/database.yml
565
- - spec/dummy/config/routes.rb
566
- - spec/dummy/config/locales/doorkeeper.en.yml
567
- - spec/dummy/config/boot.rb
568
- - spec/dummy/config/initializers/backtrace_silencers.rb
569
- - spec/dummy/config/initializers/doorkeeper.rb
570
- - spec/dummy/config/initializers/session_store.rb
571
- - spec/dummy/config/initializers/wrap_parameters.rb
572
- - spec/dummy/config/initializers/secret_token.rb
573
- - spec/dummy/config/initializers/db.rb
574
- - spec/dummy/log/test.log
575
- - spec/helpers/doorkeeper/dashboard_helper_spec.rb
576
- - spec/routing/default_routes_spec.rb
577
- - spec/routing/scoped_routes_spec.rb
578
- - spec/routing/custom_controller_routes_spec.rb
579
- - spec/requests/flows/authorization_code_errors_spec.rb
580
- - spec/requests/flows/skip_authorization_spec.rb
581
- - spec/requests/flows/client_credentials_spec.rb
582
- - spec/requests/flows/authorization_code_spec.rb
583
- - spec/requests/flows/password_spec.rb
584
- - spec/requests/flows/revoke_token_spec.rb
585
- - spec/requests/flows/implicit_grant_spec.rb
586
- - spec/requests/flows/implicit_grant_errors_spec.rb
587
- - spec/requests/flows/refresh_token_spec.rb
588
- - spec/requests/protected_resources/metal_spec.rb
547
+ - spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb
548
+ - spec/dummy/db/schema.rb
549
+ - spec/dummy/public/404.html
550
+ - spec/dummy/public/500.html
551
+ - spec/dummy/public/422.html
552
+ - spec/dummy/public/favicon.ico
553
+ - spec/grape/grape_integration_spec.rb
589
554
  - spec/requests/protected_resources/private_api_spec.rb
555
+ - spec/requests/protected_resources/metal_spec.rb
590
556
  - spec/requests/applications/applications_request_spec.rb
591
557
  - spec/requests/applications/authorized_applications_spec.rb
592
558
  - spec/requests/endpoints/token_spec.rb
593
559
  - spec/requests/endpoints/authorization_spec.rb
594
- - spec/lib/request/strategy_spec.rb
595
- - spec/lib/models/expirable_spec.rb
596
- - spec/lib/models/scopes_spec.rb
597
- - spec/lib/models/revocable_spec.rb
598
- - spec/lib/server_spec.rb
599
- - spec/lib/doorkeeper_spec.rb
600
- - spec/lib/stale_records_cleaner_spec.rb
601
- - spec/lib/config_spec.rb
602
- - spec/lib/oauth/code_response_spec.rb
603
- - spec/lib/oauth/scopes_spec.rb
604
- - spec/lib/oauth/authorization/uri_builder_spec.rb
605
- - spec/lib/oauth/token_spec.rb
606
- - spec/lib/oauth/client_credentials_request_spec.rb
607
- - spec/lib/oauth/forbidden_token_response_spec.rb
608
- - spec/lib/oauth/error_response_spec.rb
609
- - spec/lib/oauth/client/credentials_spec.rb
610
- - spec/lib/oauth/client_spec.rb
611
- - spec/lib/oauth/client_credentials/issuer_spec.rb
612
- - spec/lib/oauth/client_credentials/creator_spec.rb
613
- - spec/lib/oauth/client_credentials/validation_spec.rb
614
- - spec/lib/oauth/token_response_spec.rb
615
- - spec/lib/oauth/invalid_token_response_spec.rb
616
- - spec/lib/oauth/base_response_spec.rb
617
- - spec/lib/oauth/error_spec.rb
618
- - spec/lib/oauth/helpers/unique_token_spec.rb
619
- - spec/lib/oauth/helpers/uri_checker_spec.rb
620
- - spec/lib/oauth/helpers/scope_checker_spec.rb
621
- - spec/lib/oauth/client_credentials_integration_spec.rb
622
- - spec/lib/oauth/authorization_code_request_spec.rb
623
- - spec/lib/oauth/pre_authorization_spec.rb
624
- - spec/lib/oauth/password_access_token_request_spec.rb
625
- - spec/lib/oauth/code_request_spec.rb
626
- - spec/lib/oauth/base_request_spec.rb
627
- - spec/lib/oauth/refresh_token_request_spec.rb
628
- - spec/lib/oauth/token_request_spec.rb
629
- - spec/controllers/applications_controller_spec.rb
630
- - spec/controllers/tokens_controller_spec.rb
631
- - spec/controllers/authorizations_controller_spec.rb
632
- - spec/controllers/protected_resources_controller_spec.rb
633
- - spec/controllers/token_info_controller_spec.rb
634
- - spec/controllers/application_metal_controller_spec.rb
635
- - spec/spec_helper.rb
636
- - spec/grape/grape_integration_spec.rb
560
+ - spec/requests/flows/client_credentials_spec.rb
561
+ - spec/requests/flows/revoke_token_spec.rb
562
+ - spec/requests/flows/refresh_token_spec.rb
563
+ - spec/requests/flows/implicit_grant_spec.rb
564
+ - spec/requests/flows/authorization_code_spec.rb
565
+ - spec/requests/flows/skip_authorization_spec.rb
566
+ - spec/requests/flows/implicit_grant_errors_spec.rb
567
+ - spec/requests/flows/authorization_code_errors_spec.rb
568
+ - spec/requests/flows/password_spec.rb