doorkeeper 5.3.3 → 5.4.0

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 (224) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +82 -4
  3. data/README.md +6 -4
  4. data/app/controllers/doorkeeper/applications_controller.rb +4 -4
  5. data/app/controllers/doorkeeper/authorizations_controller.rb +31 -12
  6. data/app/controllers/doorkeeper/authorized_applications_controller.rb +2 -2
  7. data/app/controllers/doorkeeper/tokens_controller.rb +57 -20
  8. data/app/views/doorkeeper/applications/_form.html.erb +1 -1
  9. data/app/views/doorkeeper/applications/show.html.erb +19 -2
  10. data/config/locales/en.yml +3 -1
  11. data/lib/doorkeeper/config/abstract_builder.rb +28 -0
  12. data/lib/doorkeeper/config/option.rb +28 -14
  13. data/lib/doorkeeper/config.rb +64 -35
  14. data/lib/doorkeeper/engine.rb +1 -1
  15. data/lib/doorkeeper/grape/helpers.rb +1 -1
  16. data/lib/doorkeeper/helpers/controller.rb +4 -4
  17. data/lib/doorkeeper/models/access_grant_mixin.rb +20 -16
  18. data/lib/doorkeeper/models/access_token_mixin.rb +108 -45
  19. data/lib/doorkeeper/models/application_mixin.rb +5 -4
  20. data/lib/doorkeeper/models/concerns/resource_ownerable.rb +47 -0
  21. data/lib/doorkeeper/models/concerns/revocable.rb +1 -1
  22. data/lib/doorkeeper/models/concerns/scopes.rb +5 -1
  23. data/lib/doorkeeper/models/concerns/secret_storable.rb +1 -3
  24. data/lib/doorkeeper/oauth/authorization/code.rb +15 -6
  25. data/lib/doorkeeper/oauth/authorization/context.rb +2 -2
  26. data/lib/doorkeeper/oauth/authorization/token.rb +8 -12
  27. data/lib/doorkeeper/oauth/authorization/uri_builder.rb +4 -4
  28. data/lib/doorkeeper/oauth/authorization_code_request.rb +18 -8
  29. data/lib/doorkeeper/oauth/base_request.rb +11 -19
  30. data/lib/doorkeeper/oauth/client/credentials.rb +2 -4
  31. data/lib/doorkeeper/oauth/client.rb +1 -1
  32. data/lib/doorkeeper/oauth/client_credentials/creator.rb +26 -8
  33. data/lib/doorkeeper/oauth/client_credentials/issuer.rb +3 -2
  34. data/lib/doorkeeper/oauth/client_credentials/validator.rb +4 -2
  35. data/lib/doorkeeper/oauth/client_credentials_request.rb +8 -7
  36. data/lib/doorkeeper/oauth/code_request.rb +3 -3
  37. data/lib/doorkeeper/oauth/code_response.rb +6 -2
  38. data/lib/doorkeeper/oauth/error_response.rb +2 -4
  39. data/lib/doorkeeper/oauth/helpers/scope_checker.rb +1 -5
  40. data/lib/doorkeeper/oauth/hooks/context.rb +21 -0
  41. data/lib/doorkeeper/oauth/invalid_token_response.rb +2 -2
  42. data/lib/doorkeeper/oauth/password_access_token_request.rb +4 -6
  43. data/lib/doorkeeper/oauth/pre_authorization.rb +36 -30
  44. data/lib/doorkeeper/oauth/refresh_token_request.rb +18 -22
  45. data/lib/doorkeeper/oauth/token.rb +5 -6
  46. data/lib/doorkeeper/oauth/token_introspection.rb +4 -8
  47. data/lib/doorkeeper/oauth/token_request.rb +3 -3
  48. data/lib/doorkeeper/oauth/token_response.rb +1 -1
  49. data/lib/doorkeeper/orm/active_record/mixins/access_grant.rb +8 -3
  50. data/lib/doorkeeper/orm/active_record/mixins/access_token.rb +7 -3
  51. data/lib/doorkeeper/orm/active_record.rb +10 -2
  52. data/lib/doorkeeper/rails/routes/abstract_router.rb +35 -0
  53. data/lib/doorkeeper/rails/routes/mapper.rb +2 -2
  54. data/lib/doorkeeper/rails/routes/registry.rb +45 -0
  55. data/lib/doorkeeper/rails/routes.rb +13 -17
  56. data/lib/doorkeeper/request/refresh_token.rb +2 -1
  57. data/lib/doorkeeper/request/strategy.rb +2 -2
  58. data/lib/doorkeeper/server.rb +4 -4
  59. data/lib/doorkeeper/stale_records_cleaner.rb +4 -4
  60. data/lib/doorkeeper/version.rb +2 -2
  61. data/lib/doorkeeper.rb +106 -79
  62. data/lib/generators/doorkeeper/confidential_applications_generator.rb +1 -1
  63. data/lib/generators/doorkeeper/enable_polymorphic_resource_owner_generator.rb +39 -0
  64. data/lib/generators/doorkeeper/templates/add_owner_to_application_migration.rb.erb +2 -0
  65. data/lib/generators/doorkeeper/templates/add_previous_refresh_token_to_access_tokens.rb.erb +2 -0
  66. data/lib/generators/doorkeeper/templates/enable_pkce_migration.rb.erb +2 -0
  67. data/lib/generators/doorkeeper/templates/enable_polymorphic_resource_owner_migration.rb.erb +17 -0
  68. data/lib/generators/doorkeeper/templates/initializer.rb +39 -3
  69. data/lib/generators/doorkeeper/templates/migration.rb.erb +14 -5
  70. metadata +13 -296
  71. data/Appraisals +0 -40
  72. data/CODE_OF_CONDUCT.md +0 -46
  73. data/CONTRIBUTING.md +0 -49
  74. data/Dangerfile +0 -67
  75. data/Dockerfile +0 -29
  76. data/Gemfile +0 -25
  77. data/NEWS.md +0 -1
  78. data/RELEASING.md +0 -11
  79. data/Rakefile +0 -28
  80. data/SECURITY.md +0 -15
  81. data/UPGRADE.md +0 -2
  82. data/bin/console +0 -16
  83. data/doorkeeper.gemspec +0 -42
  84. data/gemfiles/rails_5_0.gemfile +0 -18
  85. data/gemfiles/rails_5_1.gemfile +0 -18
  86. data/gemfiles/rails_5_2.gemfile +0 -18
  87. data/gemfiles/rails_6_0.gemfile +0 -18
  88. data/gemfiles/rails_master.gemfile +0 -18
  89. data/spec/controllers/application_metal_controller_spec.rb +0 -64
  90. data/spec/controllers/applications_controller_spec.rb +0 -274
  91. data/spec/controllers/authorizations_controller_spec.rb +0 -608
  92. data/spec/controllers/protected_resources_controller_spec.rb +0 -361
  93. data/spec/controllers/token_info_controller_spec.rb +0 -50
  94. data/spec/controllers/tokens_controller_spec.rb +0 -498
  95. data/spec/dummy/Rakefile +0 -9
  96. data/spec/dummy/app/assets/config/manifest.js +0 -2
  97. data/spec/dummy/app/controllers/application_controller.rb +0 -5
  98. data/spec/dummy/app/controllers/custom_authorizations_controller.rb +0 -9
  99. data/spec/dummy/app/controllers/full_protected_resources_controller.rb +0 -14
  100. data/spec/dummy/app/controllers/home_controller.rb +0 -18
  101. data/spec/dummy/app/controllers/metal_controller.rb +0 -13
  102. data/spec/dummy/app/controllers/semi_protected_resources_controller.rb +0 -13
  103. data/spec/dummy/app/helpers/application_helper.rb +0 -7
  104. data/spec/dummy/app/models/user.rb +0 -7
  105. data/spec/dummy/app/views/home/index.html.erb +0 -0
  106. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  107. data/spec/dummy/config/application.rb +0 -49
  108. data/spec/dummy/config/boot.rb +0 -7
  109. data/spec/dummy/config/database.yml +0 -15
  110. data/spec/dummy/config/environment.rb +0 -5
  111. data/spec/dummy/config/environments/development.rb +0 -31
  112. data/spec/dummy/config/environments/production.rb +0 -64
  113. data/spec/dummy/config/environments/test.rb +0 -45
  114. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -9
  115. data/spec/dummy/config/initializers/doorkeeper.rb +0 -166
  116. data/spec/dummy/config/initializers/secret_token.rb +0 -10
  117. data/spec/dummy/config/initializers/session_store.rb +0 -10
  118. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -16
  119. data/spec/dummy/config/locales/doorkeeper.en.yml +0 -5
  120. data/spec/dummy/config/routes.rb +0 -13
  121. data/spec/dummy/config.ru +0 -6
  122. data/spec/dummy/db/migrate/20111122132257_create_users.rb +0 -11
  123. data/spec/dummy/db/migrate/20120312140401_add_password_to_users.rb +0 -7
  124. data/spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb +0 -69
  125. data/spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb +0 -9
  126. data/spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb +0 -13
  127. data/spec/dummy/db/migrate/20170822064514_enable_pkce.rb +0 -8
  128. data/spec/dummy/db/migrate/20180210183654_add_confidential_to_applications.rb +0 -13
  129. data/spec/dummy/db/schema.rb +0 -68
  130. data/spec/dummy/public/404.html +0 -26
  131. data/spec/dummy/public/422.html +0 -26
  132. data/spec/dummy/public/500.html +0 -26
  133. data/spec/dummy/public/favicon.ico +0 -0
  134. data/spec/dummy/script/rails +0 -9
  135. data/spec/factories.rb +0 -30
  136. data/spec/generators/application_owner_generator_spec.rb +0 -28
  137. data/spec/generators/confidential_applications_generator_spec.rb +0 -29
  138. data/spec/generators/install_generator_spec.rb +0 -36
  139. data/spec/generators/migration_generator_spec.rb +0 -28
  140. data/spec/generators/pkce_generator_spec.rb +0 -28
  141. data/spec/generators/previous_refresh_token_generator_spec.rb +0 -44
  142. data/spec/generators/templates/routes.rb +0 -4
  143. data/spec/generators/views_generator_spec.rb +0 -29
  144. data/spec/grape/grape_integration_spec.rb +0 -137
  145. data/spec/helpers/doorkeeper/dashboard_helper_spec.rb +0 -26
  146. data/spec/lib/config_spec.rb +0 -809
  147. data/spec/lib/doorkeeper_spec.rb +0 -27
  148. data/spec/lib/models/expirable_spec.rb +0 -61
  149. data/spec/lib/models/reusable_spec.rb +0 -40
  150. data/spec/lib/models/revocable_spec.rb +0 -59
  151. data/spec/lib/models/scopes_spec.rb +0 -53
  152. data/spec/lib/models/secret_storable_spec.rb +0 -135
  153. data/spec/lib/oauth/authorization/uri_builder_spec.rb +0 -39
  154. data/spec/lib/oauth/authorization_code_request_spec.rb +0 -170
  155. data/spec/lib/oauth/base_request_spec.rb +0 -224
  156. data/spec/lib/oauth/base_response_spec.rb +0 -45
  157. data/spec/lib/oauth/client/credentials_spec.rb +0 -90
  158. data/spec/lib/oauth/client_credentials/creator_spec.rb +0 -134
  159. data/spec/lib/oauth/client_credentials/issuer_spec.rb +0 -112
  160. data/spec/lib/oauth/client_credentials/validation_spec.rb +0 -59
  161. data/spec/lib/oauth/client_credentials_integration_spec.rb +0 -27
  162. data/spec/lib/oauth/client_credentials_request_spec.rb +0 -107
  163. data/spec/lib/oauth/client_spec.rb +0 -38
  164. data/spec/lib/oauth/code_request_spec.rb +0 -46
  165. data/spec/lib/oauth/code_response_spec.rb +0 -32
  166. data/spec/lib/oauth/error_response_spec.rb +0 -64
  167. data/spec/lib/oauth/error_spec.rb +0 -21
  168. data/spec/lib/oauth/forbidden_token_response_spec.rb +0 -20
  169. data/spec/lib/oauth/helpers/scope_checker_spec.rb +0 -110
  170. data/spec/lib/oauth/helpers/unique_token_spec.rb +0 -21
  171. data/spec/lib/oauth/helpers/uri_checker_spec.rb +0 -262
  172. data/spec/lib/oauth/invalid_request_response_spec.rb +0 -73
  173. data/spec/lib/oauth/invalid_token_response_spec.rb +0 -53
  174. data/spec/lib/oauth/password_access_token_request_spec.rb +0 -190
  175. data/spec/lib/oauth/pre_authorization_spec.rb +0 -223
  176. data/spec/lib/oauth/refresh_token_request_spec.rb +0 -177
  177. data/spec/lib/oauth/scopes_spec.rb +0 -146
  178. data/spec/lib/oauth/token_request_spec.rb +0 -157
  179. data/spec/lib/oauth/token_response_spec.rb +0 -84
  180. data/spec/lib/oauth/token_spec.rb +0 -156
  181. data/spec/lib/request/strategy_spec.rb +0 -54
  182. data/spec/lib/secret_storing/base_spec.rb +0 -60
  183. data/spec/lib/secret_storing/bcrypt_spec.rb +0 -49
  184. data/spec/lib/secret_storing/plain_spec.rb +0 -44
  185. data/spec/lib/secret_storing/sha256_hash_spec.rb +0 -48
  186. data/spec/lib/server_spec.rb +0 -49
  187. data/spec/lib/stale_records_cleaner_spec.rb +0 -89
  188. data/spec/models/doorkeeper/access_grant_spec.rb +0 -161
  189. data/spec/models/doorkeeper/access_token_spec.rb +0 -622
  190. data/spec/models/doorkeeper/application_spec.rb +0 -482
  191. data/spec/requests/applications/applications_request_spec.rb +0 -259
  192. data/spec/requests/applications/authorized_applications_spec.rb +0 -32
  193. data/spec/requests/endpoints/authorization_spec.rb +0 -91
  194. data/spec/requests/endpoints/token_spec.rb +0 -75
  195. data/spec/requests/flows/authorization_code_errors_spec.rb +0 -79
  196. data/spec/requests/flows/authorization_code_spec.rb +0 -525
  197. data/spec/requests/flows/client_credentials_spec.rb +0 -166
  198. data/spec/requests/flows/implicit_grant_errors_spec.rb +0 -46
  199. data/spec/requests/flows/implicit_grant_spec.rb +0 -91
  200. data/spec/requests/flows/password_spec.rb +0 -316
  201. data/spec/requests/flows/refresh_token_spec.rb +0 -233
  202. data/spec/requests/flows/revoke_token_spec.rb +0 -157
  203. data/spec/requests/flows/skip_authorization_spec.rb +0 -66
  204. data/spec/requests/protected_resources/metal_spec.rb +0 -16
  205. data/spec/requests/protected_resources/private_api_spec.rb +0 -83
  206. data/spec/routing/custom_controller_routes_spec.rb +0 -133
  207. data/spec/routing/default_routes_spec.rb +0 -41
  208. data/spec/routing/scoped_routes_spec.rb +0 -47
  209. data/spec/spec_helper.rb +0 -54
  210. data/spec/spec_helper_integration.rb +0 -4
  211. data/spec/support/dependencies/factory_bot.rb +0 -4
  212. data/spec/support/doorkeeper_rspec.rb +0 -22
  213. data/spec/support/helpers/access_token_request_helper.rb +0 -13
  214. data/spec/support/helpers/authorization_request_helper.rb +0 -43
  215. data/spec/support/helpers/config_helper.rb +0 -11
  216. data/spec/support/helpers/model_helper.rb +0 -78
  217. data/spec/support/helpers/request_spec_helper.rb +0 -110
  218. data/spec/support/helpers/url_helper.rb +0 -62
  219. data/spec/support/orm/active_record.rb +0 -5
  220. data/spec/support/shared/controllers_shared_context.rb +0 -133
  221. data/spec/support/shared/hashing_shared_context.rb +0 -36
  222. data/spec/support/shared/models_shared_examples.rb +0 -54
  223. data/spec/validators/redirect_uri_validator_spec.rb +0 -183
  224. data/spec/version/version_spec.rb +0 -17
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doorkeeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.3
4
+ version: 5.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felipe Elias Philipp
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2020-05-07 00:00:00.000000000 Z
14
+ date: 2020-05-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: railties
@@ -75,14 +75,14 @@ dependencies:
75
75
  requirements:
76
76
  - - "~>"
77
77
  - !ruby/object:Gem::Version
78
- version: '6.0'
78
+ version: '8.0'
79
79
  type: :development
80
80
  prerelease: false
81
81
  version_requirements: !ruby/object:Gem::Requirement
82
82
  requirements:
83
83
  - - "~>"
84
84
  - !ruby/object:Gem::Version
85
- version: '6.0'
85
+ version: '8.0'
86
86
  - !ruby/object:Gem::Dependency
87
87
  name: database_cleaner
88
88
  requirement: !ruby/object:Gem::Requirement
@@ -174,20 +174,9 @@ executables: []
174
174
  extensions: []
175
175
  extra_rdoc_files: []
176
176
  files:
177
- - Appraisals
178
177
  - CHANGELOG.md
179
- - CODE_OF_CONDUCT.md
180
- - CONTRIBUTING.md
181
- - Dangerfile
182
- - Dockerfile
183
- - Gemfile
184
178
  - MIT-LICENSE
185
- - NEWS.md
186
179
  - README.md
187
- - RELEASING.md
188
- - Rakefile
189
- - SECURITY.md
190
- - UPGRADE.md
191
180
  - app/assets/stylesheets/doorkeeper/admin/application.css
192
181
  - app/assets/stylesheets/doorkeeper/application.css
193
182
  - app/controllers/doorkeeper/application_controller.rb
@@ -211,16 +200,10 @@ files:
211
200
  - app/views/doorkeeper/authorized_applications/index.html.erb
212
201
  - app/views/layouts/doorkeeper/admin.html.erb
213
202
  - app/views/layouts/doorkeeper/application.html.erb
214
- - bin/console
215
203
  - config/locales/en.yml
216
- - doorkeeper.gemspec
217
- - gemfiles/rails_5_0.gemfile
218
- - gemfiles/rails_5_1.gemfile
219
- - gemfiles/rails_5_2.gemfile
220
- - gemfiles/rails_6_0.gemfile
221
- - gemfiles/rails_master.gemfile
222
204
  - lib/doorkeeper.rb
223
205
  - lib/doorkeeper/config.rb
206
+ - lib/doorkeeper/config/abstract_builder.rb
224
207
  - lib/doorkeeper/config/option.rb
225
208
  - lib/doorkeeper/engine.rb
226
209
  - lib/doorkeeper/errors.rb
@@ -234,6 +217,7 @@ files:
234
217
  - lib/doorkeeper/models/concerns/expirable.rb
235
218
  - lib/doorkeeper/models/concerns/orderable.rb
236
219
  - lib/doorkeeper/models/concerns/ownership.rb
220
+ - lib/doorkeeper/models/concerns/resource_ownerable.rb
237
221
  - lib/doorkeeper/models/concerns/reusable.rb
238
222
  - lib/doorkeeper/models/concerns/revocable.rb
239
223
  - lib/doorkeeper/models/concerns/scopes.rb
@@ -260,6 +244,7 @@ files:
260
244
  - lib/doorkeeper/oauth/helpers/scope_checker.rb
261
245
  - lib/doorkeeper/oauth/helpers/unique_token.rb
262
246
  - lib/doorkeeper/oauth/helpers/uri_checker.rb
247
+ - lib/doorkeeper/oauth/hooks/context.rb
263
248
  - lib/doorkeeper/oauth/invalid_request_response.rb
264
249
  - lib/doorkeeper/oauth/invalid_token_response.rb
265
250
  - lib/doorkeeper/oauth/nonstandard.rb
@@ -282,8 +267,10 @@ files:
282
267
  - lib/doorkeeper/orm/active_record/stale_records_cleaner.rb
283
268
  - lib/doorkeeper/rails/helpers.rb
284
269
  - lib/doorkeeper/rails/routes.rb
270
+ - lib/doorkeeper/rails/routes/abstract_router.rb
285
271
  - lib/doorkeeper/rails/routes/mapper.rb
286
272
  - lib/doorkeeper/rails/routes/mapping.rb
273
+ - lib/doorkeeper/rails/routes/registry.rb
287
274
  - lib/doorkeeper/rake.rb
288
275
  - lib/doorkeeper/rake/db.rake
289
276
  - lib/doorkeeper/rake/setup.rake
@@ -305,6 +292,7 @@ files:
305
292
  - lib/doorkeeper/version.rb
306
293
  - lib/generators/doorkeeper/application_owner_generator.rb
307
294
  - lib/generators/doorkeeper/confidential_applications_generator.rb
295
+ - lib/generators/doorkeeper/enable_polymorphic_resource_owner_generator.rb
308
296
  - lib/generators/doorkeeper/install_generator.rb
309
297
  - lib/generators/doorkeeper/migration_generator.rb
310
298
  - lib/generators/doorkeeper/pkce_generator.rb
@@ -314,145 +302,10 @@ files:
314
302
  - lib/generators/doorkeeper/templates/add_owner_to_application_migration.rb.erb
315
303
  - lib/generators/doorkeeper/templates/add_previous_refresh_token_to_access_tokens.rb.erb
316
304
  - lib/generators/doorkeeper/templates/enable_pkce_migration.rb.erb
305
+ - lib/generators/doorkeeper/templates/enable_polymorphic_resource_owner_migration.rb.erb
317
306
  - lib/generators/doorkeeper/templates/initializer.rb
318
307
  - lib/generators/doorkeeper/templates/migration.rb.erb
319
308
  - lib/generators/doorkeeper/views_generator.rb
320
- - spec/controllers/application_metal_controller_spec.rb
321
- - spec/controllers/applications_controller_spec.rb
322
- - spec/controllers/authorizations_controller_spec.rb
323
- - spec/controllers/protected_resources_controller_spec.rb
324
- - spec/controllers/token_info_controller_spec.rb
325
- - spec/controllers/tokens_controller_spec.rb
326
- - spec/dummy/Rakefile
327
- - spec/dummy/app/assets/config/manifest.js
328
- - spec/dummy/app/controllers/application_controller.rb
329
- - spec/dummy/app/controllers/custom_authorizations_controller.rb
330
- - spec/dummy/app/controllers/full_protected_resources_controller.rb
331
- - spec/dummy/app/controllers/home_controller.rb
332
- - spec/dummy/app/controllers/metal_controller.rb
333
- - spec/dummy/app/controllers/semi_protected_resources_controller.rb
334
- - spec/dummy/app/helpers/application_helper.rb
335
- - spec/dummy/app/models/user.rb
336
- - spec/dummy/app/views/home/index.html.erb
337
- - spec/dummy/app/views/layouts/application.html.erb
338
- - spec/dummy/config.ru
339
- - spec/dummy/config/application.rb
340
- - spec/dummy/config/boot.rb
341
- - spec/dummy/config/database.yml
342
- - spec/dummy/config/environment.rb
343
- - spec/dummy/config/environments/development.rb
344
- - spec/dummy/config/environments/production.rb
345
- - spec/dummy/config/environments/test.rb
346
- - spec/dummy/config/initializers/backtrace_silencers.rb
347
- - spec/dummy/config/initializers/doorkeeper.rb
348
- - spec/dummy/config/initializers/secret_token.rb
349
- - spec/dummy/config/initializers/session_store.rb
350
- - spec/dummy/config/initializers/wrap_parameters.rb
351
- - spec/dummy/config/locales/doorkeeper.en.yml
352
- - spec/dummy/config/routes.rb
353
- - spec/dummy/db/migrate/20111122132257_create_users.rb
354
- - spec/dummy/db/migrate/20120312140401_add_password_to_users.rb
355
- - spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb
356
- - spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
357
- - spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb
358
- - spec/dummy/db/migrate/20170822064514_enable_pkce.rb
359
- - spec/dummy/db/migrate/20180210183654_add_confidential_to_applications.rb
360
- - spec/dummy/db/schema.rb
361
- - spec/dummy/public/404.html
362
- - spec/dummy/public/422.html
363
- - spec/dummy/public/500.html
364
- - spec/dummy/public/favicon.ico
365
- - spec/dummy/script/rails
366
- - spec/factories.rb
367
- - spec/generators/application_owner_generator_spec.rb
368
- - spec/generators/confidential_applications_generator_spec.rb
369
- - spec/generators/install_generator_spec.rb
370
- - spec/generators/migration_generator_spec.rb
371
- - spec/generators/pkce_generator_spec.rb
372
- - spec/generators/previous_refresh_token_generator_spec.rb
373
- - spec/generators/templates/routes.rb
374
- - spec/generators/views_generator_spec.rb
375
- - spec/grape/grape_integration_spec.rb
376
- - spec/helpers/doorkeeper/dashboard_helper_spec.rb
377
- - spec/lib/config_spec.rb
378
- - spec/lib/doorkeeper_spec.rb
379
- - spec/lib/models/expirable_spec.rb
380
- - spec/lib/models/reusable_spec.rb
381
- - spec/lib/models/revocable_spec.rb
382
- - spec/lib/models/scopes_spec.rb
383
- - spec/lib/models/secret_storable_spec.rb
384
- - spec/lib/oauth/authorization/uri_builder_spec.rb
385
- - spec/lib/oauth/authorization_code_request_spec.rb
386
- - spec/lib/oauth/base_request_spec.rb
387
- - spec/lib/oauth/base_response_spec.rb
388
- - spec/lib/oauth/client/credentials_spec.rb
389
- - spec/lib/oauth/client_credentials/creator_spec.rb
390
- - spec/lib/oauth/client_credentials/issuer_spec.rb
391
- - spec/lib/oauth/client_credentials/validation_spec.rb
392
- - spec/lib/oauth/client_credentials_integration_spec.rb
393
- - spec/lib/oauth/client_credentials_request_spec.rb
394
- - spec/lib/oauth/client_spec.rb
395
- - spec/lib/oauth/code_request_spec.rb
396
- - spec/lib/oauth/code_response_spec.rb
397
- - spec/lib/oauth/error_response_spec.rb
398
- - spec/lib/oauth/error_spec.rb
399
- - spec/lib/oauth/forbidden_token_response_spec.rb
400
- - spec/lib/oauth/helpers/scope_checker_spec.rb
401
- - spec/lib/oauth/helpers/unique_token_spec.rb
402
- - spec/lib/oauth/helpers/uri_checker_spec.rb
403
- - spec/lib/oauth/invalid_request_response_spec.rb
404
- - spec/lib/oauth/invalid_token_response_spec.rb
405
- - spec/lib/oauth/password_access_token_request_spec.rb
406
- - spec/lib/oauth/pre_authorization_spec.rb
407
- - spec/lib/oauth/refresh_token_request_spec.rb
408
- - spec/lib/oauth/scopes_spec.rb
409
- - spec/lib/oauth/token_request_spec.rb
410
- - spec/lib/oauth/token_response_spec.rb
411
- - spec/lib/oauth/token_spec.rb
412
- - spec/lib/request/strategy_spec.rb
413
- - spec/lib/secret_storing/base_spec.rb
414
- - spec/lib/secret_storing/bcrypt_spec.rb
415
- - spec/lib/secret_storing/plain_spec.rb
416
- - spec/lib/secret_storing/sha256_hash_spec.rb
417
- - spec/lib/server_spec.rb
418
- - spec/lib/stale_records_cleaner_spec.rb
419
- - spec/models/doorkeeper/access_grant_spec.rb
420
- - spec/models/doorkeeper/access_token_spec.rb
421
- - spec/models/doorkeeper/application_spec.rb
422
- - spec/requests/applications/applications_request_spec.rb
423
- - spec/requests/applications/authorized_applications_spec.rb
424
- - spec/requests/endpoints/authorization_spec.rb
425
- - spec/requests/endpoints/token_spec.rb
426
- - spec/requests/flows/authorization_code_errors_spec.rb
427
- - spec/requests/flows/authorization_code_spec.rb
428
- - spec/requests/flows/client_credentials_spec.rb
429
- - spec/requests/flows/implicit_grant_errors_spec.rb
430
- - spec/requests/flows/implicit_grant_spec.rb
431
- - spec/requests/flows/password_spec.rb
432
- - spec/requests/flows/refresh_token_spec.rb
433
- - spec/requests/flows/revoke_token_spec.rb
434
- - spec/requests/flows/skip_authorization_spec.rb
435
- - spec/requests/protected_resources/metal_spec.rb
436
- - spec/requests/protected_resources/private_api_spec.rb
437
- - spec/routing/custom_controller_routes_spec.rb
438
- - spec/routing/default_routes_spec.rb
439
- - spec/routing/scoped_routes_spec.rb
440
- - spec/spec_helper.rb
441
- - spec/spec_helper_integration.rb
442
- - spec/support/dependencies/factory_bot.rb
443
- - spec/support/doorkeeper_rspec.rb
444
- - spec/support/helpers/access_token_request_helper.rb
445
- - spec/support/helpers/authorization_request_helper.rb
446
- - spec/support/helpers/config_helper.rb
447
- - spec/support/helpers/model_helper.rb
448
- - spec/support/helpers/request_spec_helper.rb
449
- - spec/support/helpers/url_helper.rb
450
- - spec/support/orm/active_record.rb
451
- - spec/support/shared/controllers_shared_context.rb
452
- - spec/support/shared/hashing_shared_context.rb
453
- - spec/support/shared/models_shared_examples.rb
454
- - spec/validators/redirect_uri_validator_spec.rb
455
- - spec/version/version_spec.rb
456
309
  - vendor/assets/stylesheets/doorkeeper/bootstrap.min.css
457
310
  homepage: https://github.com/doorkeeper-gem/doorkeeper
458
311
  licenses:
@@ -478,144 +331,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
478
331
  - !ruby/object:Gem::Version
479
332
  version: '0'
480
333
  requirements: []
481
- rubygems_version: 3.1.2
334
+ rubygems_version: 3.0.2
482
335
  signing_key:
483
336
  specification_version: 4
484
337
  summary: OAuth 2 provider for Rails and Grape
485
- test_files:
486
- - spec/controllers/application_metal_controller_spec.rb
487
- - spec/controllers/applications_controller_spec.rb
488
- - spec/controllers/authorizations_controller_spec.rb
489
- - spec/controllers/protected_resources_controller_spec.rb
490
- - spec/controllers/token_info_controller_spec.rb
491
- - spec/controllers/tokens_controller_spec.rb
492
- - spec/dummy/Rakefile
493
- - spec/dummy/app/assets/config/manifest.js
494
- - spec/dummy/app/controllers/application_controller.rb
495
- - spec/dummy/app/controllers/custom_authorizations_controller.rb
496
- - spec/dummy/app/controllers/full_protected_resources_controller.rb
497
- - spec/dummy/app/controllers/home_controller.rb
498
- - spec/dummy/app/controllers/metal_controller.rb
499
- - spec/dummy/app/controllers/semi_protected_resources_controller.rb
500
- - spec/dummy/app/helpers/application_helper.rb
501
- - spec/dummy/app/models/user.rb
502
- - spec/dummy/app/views/home/index.html.erb
503
- - spec/dummy/app/views/layouts/application.html.erb
504
- - spec/dummy/config.ru
505
- - spec/dummy/config/application.rb
506
- - spec/dummy/config/boot.rb
507
- - spec/dummy/config/database.yml
508
- - spec/dummy/config/environment.rb
509
- - spec/dummy/config/environments/development.rb
510
- - spec/dummy/config/environments/production.rb
511
- - spec/dummy/config/environments/test.rb
512
- - spec/dummy/config/initializers/backtrace_silencers.rb
513
- - spec/dummy/config/initializers/doorkeeper.rb
514
- - spec/dummy/config/initializers/secret_token.rb
515
- - spec/dummy/config/initializers/session_store.rb
516
- - spec/dummy/config/initializers/wrap_parameters.rb
517
- - spec/dummy/config/locales/doorkeeper.en.yml
518
- - spec/dummy/config/routes.rb
519
- - spec/dummy/db/migrate/20111122132257_create_users.rb
520
- - spec/dummy/db/migrate/20120312140401_add_password_to_users.rb
521
- - spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb
522
- - spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
523
- - spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb
524
- - spec/dummy/db/migrate/20170822064514_enable_pkce.rb
525
- - spec/dummy/db/migrate/20180210183654_add_confidential_to_applications.rb
526
- - spec/dummy/db/schema.rb
527
- - spec/dummy/public/404.html
528
- - spec/dummy/public/422.html
529
- - spec/dummy/public/500.html
530
- - spec/dummy/public/favicon.ico
531
- - spec/dummy/script/rails
532
- - spec/factories.rb
533
- - spec/generators/application_owner_generator_spec.rb
534
- - spec/generators/confidential_applications_generator_spec.rb
535
- - spec/generators/install_generator_spec.rb
536
- - spec/generators/migration_generator_spec.rb
537
- - spec/generators/pkce_generator_spec.rb
538
- - spec/generators/previous_refresh_token_generator_spec.rb
539
- - spec/generators/templates/routes.rb
540
- - spec/generators/views_generator_spec.rb
541
- - spec/grape/grape_integration_spec.rb
542
- - spec/helpers/doorkeeper/dashboard_helper_spec.rb
543
- - spec/lib/config_spec.rb
544
- - spec/lib/doorkeeper_spec.rb
545
- - spec/lib/models/expirable_spec.rb
546
- - spec/lib/models/reusable_spec.rb
547
- - spec/lib/models/revocable_spec.rb
548
- - spec/lib/models/scopes_spec.rb
549
- - spec/lib/models/secret_storable_spec.rb
550
- - spec/lib/oauth/authorization/uri_builder_spec.rb
551
- - spec/lib/oauth/authorization_code_request_spec.rb
552
- - spec/lib/oauth/base_request_spec.rb
553
- - spec/lib/oauth/base_response_spec.rb
554
- - spec/lib/oauth/client/credentials_spec.rb
555
- - spec/lib/oauth/client_credentials/creator_spec.rb
556
- - spec/lib/oauth/client_credentials/issuer_spec.rb
557
- - spec/lib/oauth/client_credentials/validation_spec.rb
558
- - spec/lib/oauth/client_credentials_integration_spec.rb
559
- - spec/lib/oauth/client_credentials_request_spec.rb
560
- - spec/lib/oauth/client_spec.rb
561
- - spec/lib/oauth/code_request_spec.rb
562
- - spec/lib/oauth/code_response_spec.rb
563
- - spec/lib/oauth/error_response_spec.rb
564
- - spec/lib/oauth/error_spec.rb
565
- - spec/lib/oauth/forbidden_token_response_spec.rb
566
- - spec/lib/oauth/helpers/scope_checker_spec.rb
567
- - spec/lib/oauth/helpers/unique_token_spec.rb
568
- - spec/lib/oauth/helpers/uri_checker_spec.rb
569
- - spec/lib/oauth/invalid_request_response_spec.rb
570
- - spec/lib/oauth/invalid_token_response_spec.rb
571
- - spec/lib/oauth/password_access_token_request_spec.rb
572
- - spec/lib/oauth/pre_authorization_spec.rb
573
- - spec/lib/oauth/refresh_token_request_spec.rb
574
- - spec/lib/oauth/scopes_spec.rb
575
- - spec/lib/oauth/token_request_spec.rb
576
- - spec/lib/oauth/token_response_spec.rb
577
- - spec/lib/oauth/token_spec.rb
578
- - spec/lib/request/strategy_spec.rb
579
- - spec/lib/secret_storing/base_spec.rb
580
- - spec/lib/secret_storing/bcrypt_spec.rb
581
- - spec/lib/secret_storing/plain_spec.rb
582
- - spec/lib/secret_storing/sha256_hash_spec.rb
583
- - spec/lib/server_spec.rb
584
- - spec/lib/stale_records_cleaner_spec.rb
585
- - spec/models/doorkeeper/access_grant_spec.rb
586
- - spec/models/doorkeeper/access_token_spec.rb
587
- - spec/models/doorkeeper/application_spec.rb
588
- - spec/requests/applications/applications_request_spec.rb
589
- - spec/requests/applications/authorized_applications_spec.rb
590
- - spec/requests/endpoints/authorization_spec.rb
591
- - spec/requests/endpoints/token_spec.rb
592
- - spec/requests/flows/authorization_code_errors_spec.rb
593
- - spec/requests/flows/authorization_code_spec.rb
594
- - spec/requests/flows/client_credentials_spec.rb
595
- - spec/requests/flows/implicit_grant_errors_spec.rb
596
- - spec/requests/flows/implicit_grant_spec.rb
597
- - spec/requests/flows/password_spec.rb
598
- - spec/requests/flows/refresh_token_spec.rb
599
- - spec/requests/flows/revoke_token_spec.rb
600
- - spec/requests/flows/skip_authorization_spec.rb
601
- - spec/requests/protected_resources/metal_spec.rb
602
- - spec/requests/protected_resources/private_api_spec.rb
603
- - spec/routing/custom_controller_routes_spec.rb
604
- - spec/routing/default_routes_spec.rb
605
- - spec/routing/scoped_routes_spec.rb
606
- - spec/spec_helper.rb
607
- - spec/spec_helper_integration.rb
608
- - spec/support/dependencies/factory_bot.rb
609
- - spec/support/doorkeeper_rspec.rb
610
- - spec/support/helpers/access_token_request_helper.rb
611
- - spec/support/helpers/authorization_request_helper.rb
612
- - spec/support/helpers/config_helper.rb
613
- - spec/support/helpers/model_helper.rb
614
- - spec/support/helpers/request_spec_helper.rb
615
- - spec/support/helpers/url_helper.rb
616
- - spec/support/orm/active_record.rb
617
- - spec/support/shared/controllers_shared_context.rb
618
- - spec/support/shared/hashing_shared_context.rb
619
- - spec/support/shared/models_shared_examples.rb
620
- - spec/validators/redirect_uri_validator_spec.rb
621
- - spec/version/version_spec.rb
338
+ test_files: []
data/Appraisals DELETED
@@ -1,40 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- appraise "rails-5-0" do
4
- gem "rails", "~> 5.0.0"
5
- gem "sqlite3", "~> 1.3", "< 1.4", platform: %i[ruby mswin mingw x64_mingw]
6
- end
7
-
8
- appraise "rails-5-1" do
9
- gem "rails", "~> 5.1.0"
10
- gem "sqlite3", "~> 1.3", "< 1.4", platform: %i[ruby mswin mingw x64_mingw]
11
- end
12
-
13
- appraise "rails-5-2" do
14
- gem "rails", "~> 5.2.0"
15
- gem "sqlite3", "~> 1.3", "< 1.4", platform: %i[ruby mswin mingw x64_mingw]
16
- end
17
-
18
- appraise "rails-6-0" do
19
- gem "rails", "~> 6.0.0"
20
- gem "sqlite3", "~> 1.4", platform: %i[ruby mswin mingw x64_mingw]
21
-
22
- # TODO: Remove when rspec-rails 4.0 released
23
- gem "rspec-core", github: "rspec/rspec-core"
24
- gem "rspec-expectations", github: "rspec/rspec-expectations"
25
- gem "rspec-mocks", github: "rspec/rspec-mocks"
26
- gem "rspec-rails", github: "rspec/rspec-rails", branch: "4-0-maintenance"
27
- gem "rspec-support", github: "rspec/rspec-support"
28
- end
29
-
30
- appraise "rails-master" do
31
- gem "rails", git: "https://github.com/rails/rails"
32
- gem "sqlite3", "~> 1.4", platform: %i[ruby mswin mingw x64_mingw]
33
-
34
- # TODO: Remove when rspec-rails 4.0 released
35
- gem "rspec-core", github: "rspec/rspec-core"
36
- gem "rspec-expectations", github: "rspec/rspec-expectations"
37
- gem "rspec-mocks", github: "rspec/rspec-mocks"
38
- gem "rspec-rails", github: "rspec/rspec-rails", branch: "4-0-maintenance"
39
- gem "rspec-support", github: "rspec/rspec-support"
40
- end
data/CODE_OF_CONDUCT.md DELETED
@@ -1,46 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
-
7
- ## Our Standards
8
-
9
- Examples of behavior that contributes to creating a positive environment include:
10
-
11
- * Using welcoming and inclusive language
12
- * Being respectful of differing viewpoints and experiences
13
- * Gracefully accepting constructive criticism
14
- * Focusing on what is best for the community
15
- * Showing empathy towards other community members
16
-
17
- Examples of unacceptable behavior by participants include:
18
-
19
- * The use of sexualized language or imagery and unwelcome sexual attention or advances
20
- * Trolling, insulting/derogatory comments, and personal or political attacks
21
- * Public or private harassment
22
- * Publishing others' private information, such as a physical or electronic address, without explicit permission
23
- * Other conduct which could reasonably be considered inappropriate in a professional setting
24
-
25
- ## Our Responsibilities
26
-
27
- Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28
-
29
- Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30
-
31
- ## Scope
32
-
33
- This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34
-
35
- ## Enforcement
36
-
37
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team members or current maintainer email, specified in gemspec. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38
-
39
- Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40
-
41
- ## Attribution
42
-
43
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44
-
45
- [homepage]: http://contributor-covenant.org
46
- [version]: http://contributor-covenant.org/version/1/4/
data/CONTRIBUTING.md DELETED
@@ -1,49 +0,0 @@
1
- # Contributing
2
-
3
- We love pull requests from everyone. By participating in this project, you agree
4
- to abide by the [code of conduct](CODE_OF_CONDUCT.md).
5
-
6
- Fork, then clone the repo:
7
-
8
- git clone git@github.com:your-username/doorkeeper.git
9
-
10
- ### Docker Setup
11
-
12
- Build the container image with: `docker build --pull -t doorkeeper:test .`
13
- Run the tests with: `docker run -it --rm doorkeeper:test`
14
-
15
- ### Local Setup
16
-
17
- Set up Ruby dependencies via Bundler
18
-
19
- bundle install
20
-
21
- Make sure the tests pass:
22
-
23
- rake
24
-
25
- Make your change.
26
- Write tests.
27
- Follow our [style guide](.rubocop.yml).
28
- Make the tests pass:
29
-
30
- rake
31
-
32
- Add notes on your change to the `CHANGELOG.md` file.
33
-
34
- Write a [good commit message][commit].
35
- Push to your fork.
36
- [Submit a pull request][pr].
37
-
38
- [commit]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
39
- [pr]: https://github.com/doorkeeper-gem/doorkeeper/compare/
40
-
41
- If [Hound] catches style violations, fix them.
42
-
43
- [hound]: https://houndci.com
44
-
45
- Wait for us.
46
- We try to at least comment on pull requests within one business day.
47
- We may suggest changes.
48
-
49
- Thank you for your contribution!
data/Dangerfile DELETED
@@ -1,67 +0,0 @@
1
- CHANGELOG_FILE = 'CHANGELOG.md'
2
- GITHUB_REPO = 'https://github.com/doorkeeper-gem/doorkeeper'
3
-
4
- def changelog_changed?
5
- git.modified_files.include?(CHANGELOG_FILE) || git.added_files.include?(CHANGELOG_FILE)
6
- end
7
-
8
- def changelog_entry_example
9
- pr_number = github.pr_json['number']
10
- pr_title = github.pr_title
11
- .sub(/[?.!,;]?$/, '')
12
- .capitalize
13
-
14
- "- [##{pr_number}] #{pr_title}."
15
- end
16
-
17
- # --------------------------------------------------------------------------------------------------------------------
18
- # Has any changes happened inside the actual library code?
19
- # --------------------------------------------------------------------------------------------------------------------
20
- has_app_changes = !git.modified_files.grep(/lib|app/).empty?
21
- has_spec_changes = !git.modified_files.grep(/spec/).empty?
22
-
23
- # --------------------------------------------------------------------------------------------------------------------
24
- # You've made changes to lib, but didn't write any tests?
25
- # --------------------------------------------------------------------------------------------------------------------
26
- if has_app_changes && !has_spec_changes
27
- warn("There're library changes, but not tests. That's OK as long as you're refactoring existing code.", sticky: false)
28
- end
29
-
30
- # --------------------------------------------------------------------------------------------------------------------
31
- # You've made changes to specs, but no library code has changed?
32
- # --------------------------------------------------------------------------------------------------------------------
33
- if !has_app_changes && has_spec_changes
34
- message('We really appreciate pull requests that demonstrate issues, even without a fix. That said, the next step is to try and fix the failing tests!', sticky: false)
35
- end
36
-
37
- # Mainly to encourage writing up some reasoning about the PR, rather than
38
- # just leaving a title
39
- if github.pr_body.length < 10
40
- fail "Please provide a summary in the Pull Request description"
41
- end
42
-
43
- # --------------------------------------------------------------------------------------------------------------------
44
- # Have you updated CHANGELOG.md?
45
- # --------------------------------------------------------------------------------------------------------------------
46
- # Add a CHANGELOG entry for app changes
47
- if has_app_changes && !changelog_changed?
48
- markdown <<-MARKDOWN
49
- Here's an example of a #{CHANGELOG_FILE} entry:
50
- ```markdown
51
- #{changelog_entry_example}
52
- ```
53
- MARKDOWN
54
-
55
- warn(
56
- "Please include a changelog entry. \nYou can find it at [#{CHANGELOG_FILE}](#{GITHUB_REPO}/blob/master/#{CHANGELOG_FILE})." +
57
- "You can skip this warning only if you made some typo fix or other small changes that didn't affect the API."
58
- )
59
- end
60
-
61
- if git.commits.any? { |commit| commit.message =~ /^Merge branch '#{github.branch_for_base}'/ }
62
- warn('Please rebase to get rid of the merge commits in this PR')
63
- end
64
-
65
- if git.commits.length > 1
66
- warn('Please squash all your commits to a single one')
67
- end
data/Dockerfile DELETED
@@ -1,29 +0,0 @@
1
- FROM ruby:2.6.3-alpine3.9
2
-
3
- RUN apk add --no-cache \
4
- ca-certificates \
5
- wget \
6
- openssl \
7
- bash \
8
- build-base \
9
- git \
10
- sqlite-dev \
11
- tzdata
12
-
13
- ENV LANG en_US.UTF-8
14
- ENV LANGUAGE en_US:en
15
- ENV LC_ALL en_US.UTF-8
16
-
17
- ENV BUNDLER_VERSION 2.0.1
18
- RUN gem install bundler -v ${BUNDLER_VERSION} -i /usr/local/lib/ruby/gems/$(ls /usr/local/lib/ruby/gems) --force
19
-
20
- WORKDIR /srv
21
-
22
- COPY Gemfile doorkeeper.gemspec /srv/
23
- COPY lib/doorkeeper/version.rb /srv/lib/doorkeeper/version.rb
24
-
25
- RUN bundle install
26
-
27
- COPY . /srv/
28
-
29
- CMD ["rake"]
data/Gemfile DELETED
@@ -1,25 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
- git_source(:github) { |repo| "https://github.com/#{repo}.git" }
5
-
6
- gemspec
7
-
8
- gem "rails", "~> 6.0.0"
9
-
10
- # TODO: Remove when rspec-rails 4.0 released
11
- gem "rspec-core", github: "rspec/rspec-core"
12
- gem "rspec-expectations", github: "rspec/rspec-expectations"
13
- gem "rspec-mocks", github: "rspec/rspec-mocks"
14
- gem "rspec-rails", "4.0.0.beta3"
15
- gem "rspec-support", github: "rspec/rspec-support"
16
-
17
- gem "rubocop", "~> 0.75"
18
- gem "rubocop-performance"
19
-
20
- gem "bcrypt", "~> 3.1", require: false
21
-
22
- gem "activerecord-jdbcsqlite3-adapter", platform: :jruby
23
- gem "sqlite3", "~> 1.4", platform: %i[ruby mswin mingw x64_mingw]
24
-
25
- gem "tzinfo-data", platforms: %i[mingw mswin x64_mingw]
data/NEWS.md DELETED
@@ -1 +0,0 @@
1
- Document moved [here](CHANGELOG.md)
data/RELEASING.md DELETED
@@ -1,11 +0,0 @@
1
- # Releasing Doorkeeper
2
-
3
- How to release Doorkeeper in five easy steps!
4
-
5
- 1. Update `lib/doorkeeper/version.rb` file accordingly.
6
- 2. Update `CHANGELOG.md` to reflect the changes since last release.
7
- 3. Commit changes: `git commit -am 'Bump to vVERSION'`.
8
- 4. Build and publish the gem.
9
- 4. Create GitHub release.
10
- 5. Announce the new release, making sure to say “thank you” to the contributors
11
- who helped shape this version!