doorkeeper 5.1.0 → 5.5.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 (265) hide show
  1. checksums.yaml +4 -4
  2. data/{NEWS.md → CHANGELOG.md} +242 -25
  3. data/README.md +21 -11
  4. data/app/controllers/doorkeeper/application_controller.rb +3 -2
  5. data/app/controllers/doorkeeper/application_metal_controller.rb +3 -2
  6. data/app/controllers/doorkeeper/applications_controller.rb +8 -7
  7. data/app/controllers/doorkeeper/authorizations_controller.rb +56 -19
  8. data/app/controllers/doorkeeper/authorized_applications_controller.rb +6 -6
  9. data/app/controllers/doorkeeper/token_info_controller.rb +12 -2
  10. data/app/controllers/doorkeeper/tokens_controller.rb +93 -25
  11. data/app/views/doorkeeper/applications/_form.html.erb +1 -7
  12. data/app/views/doorkeeper/applications/show.html.erb +35 -14
  13. data/app/views/doorkeeper/authorizations/form_post.html.erb +11 -0
  14. data/config/locales/en.yml +13 -3
  15. data/lib/doorkeeper/config/abstract_builder.rb +28 -0
  16. data/lib/doorkeeper/config/option.rb +20 -2
  17. data/lib/doorkeeper/config/validations.rb +53 -0
  18. data/lib/doorkeeper/config.rb +295 -121
  19. data/lib/doorkeeper/engine.rb +1 -1
  20. data/lib/doorkeeper/errors.rb +13 -18
  21. data/lib/doorkeeper/grant_flow/fallback_flow.rb +15 -0
  22. data/lib/doorkeeper/grant_flow/flow.rb +44 -0
  23. data/lib/doorkeeper/grant_flow/registry.rb +50 -0
  24. data/lib/doorkeeper/grant_flow.rb +45 -0
  25. data/lib/doorkeeper/grape/helpers.rb +7 -3
  26. data/lib/doorkeeper/helpers/controller.rb +36 -11
  27. data/lib/doorkeeper/models/access_grant_mixin.rb +22 -18
  28. data/lib/doorkeeper/models/access_token_mixin.rb +194 -51
  29. data/lib/doorkeeper/models/application_mixin.rb +8 -7
  30. data/lib/doorkeeper/models/concerns/ownership.rb +1 -1
  31. data/lib/doorkeeper/models/concerns/resource_ownerable.rb +47 -0
  32. data/lib/doorkeeper/models/concerns/reusable.rb +1 -1
  33. data/lib/doorkeeper/models/concerns/revocable.rb +1 -28
  34. data/lib/doorkeeper/models/concerns/scopes.rb +5 -1
  35. data/lib/doorkeeper/models/concerns/secret_storable.rb +1 -3
  36. data/lib/doorkeeper/oauth/authorization/code.rb +25 -14
  37. data/lib/doorkeeper/oauth/authorization/context.rb +5 -5
  38. data/lib/doorkeeper/oauth/authorization/token.rb +24 -19
  39. data/lib/doorkeeper/oauth/authorization/uri_builder.rb +4 -4
  40. data/lib/doorkeeper/oauth/authorization_code_request.rb +40 -21
  41. data/lib/doorkeeper/oauth/base_request.rb +21 -23
  42. data/lib/doorkeeper/oauth/client/credentials.rb +2 -4
  43. data/lib/doorkeeper/oauth/client.rb +8 -9
  44. data/lib/doorkeeper/oauth/client_credentials/creator.rb +45 -5
  45. data/lib/doorkeeper/oauth/client_credentials/issuer.rb +10 -8
  46. data/lib/doorkeeper/oauth/client_credentials/{validation.rb → validator.rb} +13 -3
  47. data/lib/doorkeeper/oauth/client_credentials_request.rb +8 -7
  48. data/lib/doorkeeper/oauth/code_request.rb +6 -12
  49. data/lib/doorkeeper/oauth/code_response.rb +24 -14
  50. data/lib/doorkeeper/oauth/error.rb +1 -1
  51. data/lib/doorkeeper/oauth/error_response.rb +10 -11
  52. data/lib/doorkeeper/oauth/helpers/scope_checker.rb +8 -12
  53. data/lib/doorkeeper/oauth/helpers/unique_token.rb +8 -5
  54. data/lib/doorkeeper/oauth/helpers/uri_checker.rb +19 -5
  55. data/lib/doorkeeper/oauth/hooks/context.rb +21 -0
  56. data/lib/doorkeeper/oauth/invalid_request_response.rb +43 -0
  57. data/lib/doorkeeper/oauth/invalid_token_response.rb +7 -4
  58. data/lib/doorkeeper/oauth/nonstandard.rb +39 -0
  59. data/lib/doorkeeper/oauth/password_access_token_request.rb +34 -11
  60. data/lib/doorkeeper/oauth/pre_authorization.rb +111 -42
  61. data/lib/doorkeeper/oauth/refresh_token_request.rb +45 -33
  62. data/lib/doorkeeper/oauth/token.rb +6 -7
  63. data/lib/doorkeeper/oauth/token_introspection.rb +24 -18
  64. data/lib/doorkeeper/oauth/token_request.rb +6 -20
  65. data/lib/doorkeeper/oauth/token_response.rb +1 -1
  66. data/lib/doorkeeper/orm/active_record/access_grant.rb +4 -43
  67. data/lib/doorkeeper/orm/active_record/access_token.rb +4 -35
  68. data/lib/doorkeeper/orm/active_record/application.rb +5 -83
  69. data/lib/doorkeeper/orm/active_record/mixins/access_grant.rb +68 -0
  70. data/lib/doorkeeper/orm/active_record/mixins/access_token.rb +59 -0
  71. data/lib/doorkeeper/orm/active_record/mixins/application.rb +198 -0
  72. data/lib/doorkeeper/orm/active_record/redirect_uri_validator.rb +66 -0
  73. data/lib/doorkeeper/orm/active_record.rb +20 -6
  74. data/lib/doorkeeper/rails/helpers.rb +4 -4
  75. data/lib/doorkeeper/rails/routes/abstract_router.rb +35 -0
  76. data/lib/doorkeeper/rails/routes/mapper.rb +2 -2
  77. data/lib/doorkeeper/rails/routes/registry.rb +45 -0
  78. data/lib/doorkeeper/rails/routes.rb +17 -25
  79. data/lib/doorkeeper/rake/db.rake +6 -6
  80. data/lib/doorkeeper/rake/setup.rake +5 -0
  81. data/lib/doorkeeper/request/authorization_code.rb +5 -3
  82. data/lib/doorkeeper/request/client_credentials.rb +2 -2
  83. data/lib/doorkeeper/request/password.rb +3 -2
  84. data/lib/doorkeeper/request/refresh_token.rb +5 -4
  85. data/lib/doorkeeper/request/strategy.rb +2 -2
  86. data/lib/doorkeeper/request.rb +49 -17
  87. data/lib/doorkeeper/server.rb +7 -11
  88. data/lib/doorkeeper/stale_records_cleaner.rb +6 -2
  89. data/lib/doorkeeper/version.rb +2 -6
  90. data/lib/doorkeeper.rb +114 -79
  91. data/lib/generators/doorkeeper/application_owner_generator.rb +1 -1
  92. data/lib/generators/doorkeeper/confidential_applications_generator.rb +2 -2
  93. data/lib/generators/doorkeeper/enable_polymorphic_resource_owner_generator.rb +39 -0
  94. data/lib/generators/doorkeeper/migration_generator.rb +1 -1
  95. data/lib/generators/doorkeeper/pkce_generator.rb +1 -1
  96. data/lib/generators/doorkeeper/previous_refresh_token_generator.rb +7 -7
  97. data/lib/generators/doorkeeper/templates/add_owner_to_application_migration.rb.erb +3 -1
  98. data/lib/generators/doorkeeper/templates/add_previous_refresh_token_to_access_tokens.rb.erb +2 -0
  99. data/lib/generators/doorkeeper/templates/enable_pkce_migration.rb.erb +2 -0
  100. data/lib/generators/doorkeeper/templates/enable_polymorphic_resource_owner_migration.rb.erb +17 -0
  101. data/lib/generators/doorkeeper/templates/initializer.rb +205 -43
  102. data/lib/generators/doorkeeper/templates/migration.rb.erb +18 -6
  103. metadata +45 -312
  104. data/.coveralls.yml +0 -1
  105. data/.github/ISSUE_TEMPLATE.md +0 -25
  106. data/.github/PULL_REQUEST_TEMPLATE.md +0 -17
  107. data/.gitignore +0 -20
  108. data/.gitlab-ci.yml +0 -16
  109. data/.hound.yml +0 -3
  110. data/.rspec +0 -1
  111. data/.rubocop.yml +0 -50
  112. data/.travis.yml +0 -35
  113. data/Appraisals +0 -40
  114. data/CODE_OF_CONDUCT.md +0 -46
  115. data/CONTRIBUTING.md +0 -47
  116. data/Dangerfile +0 -67
  117. data/Gemfile +0 -24
  118. data/RELEASING.md +0 -10
  119. data/Rakefile +0 -28
  120. data/SECURITY.md +0 -15
  121. data/UPGRADE.md +0 -2
  122. data/app/validators/redirect_uri_validator.rb +0 -50
  123. data/bin/console +0 -16
  124. data/doorkeeper.gemspec +0 -34
  125. data/gemfiles/rails_5_0.gemfile +0 -17
  126. data/gemfiles/rails_5_1.gemfile +0 -17
  127. data/gemfiles/rails_5_2.gemfile +0 -17
  128. data/gemfiles/rails_6_0.gemfile +0 -17
  129. data/gemfiles/rails_master.gemfile +0 -17
  130. data/spec/controllers/application_metal_controller_spec.rb +0 -64
  131. data/spec/controllers/applications_controller_spec.rb +0 -180
  132. data/spec/controllers/authorizations_controller_spec.rb +0 -527
  133. data/spec/controllers/protected_resources_controller_spec.rb +0 -353
  134. data/spec/controllers/token_info_controller_spec.rb +0 -50
  135. data/spec/controllers/tokens_controller_spec.rb +0 -330
  136. data/spec/dummy/Rakefile +0 -9
  137. data/spec/dummy/app/assets/config/manifest.js +0 -2
  138. data/spec/dummy/app/controllers/application_controller.rb +0 -5
  139. data/spec/dummy/app/controllers/custom_authorizations_controller.rb +0 -9
  140. data/spec/dummy/app/controllers/full_protected_resources_controller.rb +0 -14
  141. data/spec/dummy/app/controllers/home_controller.rb +0 -18
  142. data/spec/dummy/app/controllers/metal_controller.rb +0 -13
  143. data/spec/dummy/app/controllers/semi_protected_resources_controller.rb +0 -13
  144. data/spec/dummy/app/helpers/application_helper.rb +0 -7
  145. data/spec/dummy/app/models/user.rb +0 -7
  146. data/spec/dummy/app/views/home/index.html.erb +0 -0
  147. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  148. data/spec/dummy/config/application.rb +0 -47
  149. data/spec/dummy/config/boot.rb +0 -7
  150. data/spec/dummy/config/database.yml +0 -15
  151. data/spec/dummy/config/environment.rb +0 -5
  152. data/spec/dummy/config/environments/development.rb +0 -31
  153. data/spec/dummy/config/environments/production.rb +0 -64
  154. data/spec/dummy/config/environments/test.rb +0 -45
  155. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -9
  156. data/spec/dummy/config/initializers/doorkeeper.rb +0 -121
  157. data/spec/dummy/config/initializers/secret_token.rb +0 -10
  158. data/spec/dummy/config/initializers/session_store.rb +0 -10
  159. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -16
  160. data/spec/dummy/config/locales/doorkeeper.en.yml +0 -5
  161. data/spec/dummy/config/routes.rb +0 -13
  162. data/spec/dummy/config.ru +0 -6
  163. data/spec/dummy/db/migrate/20111122132257_create_users.rb +0 -11
  164. data/spec/dummy/db/migrate/20120312140401_add_password_to_users.rb +0 -7
  165. data/spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb +0 -69
  166. data/spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb +0 -9
  167. data/spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb +0 -13
  168. data/spec/dummy/db/migrate/20170822064514_enable_pkce.rb +0 -8
  169. data/spec/dummy/db/migrate/20180210183654_add_confidential_to_applications.rb +0 -13
  170. data/spec/dummy/db/schema.rb +0 -68
  171. data/spec/dummy/public/404.html +0 -26
  172. data/spec/dummy/public/422.html +0 -26
  173. data/spec/dummy/public/500.html +0 -26
  174. data/spec/dummy/public/favicon.ico +0 -0
  175. data/spec/dummy/script/rails +0 -9
  176. data/spec/factories.rb +0 -30
  177. data/spec/generators/application_owner_generator_spec.rb +0 -28
  178. data/spec/generators/confidential_applications_generator_spec.rb +0 -29
  179. data/spec/generators/install_generator_spec.rb +0 -36
  180. data/spec/generators/migration_generator_spec.rb +0 -28
  181. data/spec/generators/pkce_generator_spec.rb +0 -28
  182. data/spec/generators/previous_refresh_token_generator_spec.rb +0 -44
  183. data/spec/generators/templates/routes.rb +0 -4
  184. data/spec/generators/views_generator_spec.rb +0 -29
  185. data/spec/grape/grape_integration_spec.rb +0 -137
  186. data/spec/helpers/doorkeeper/dashboard_helper_spec.rb +0 -26
  187. data/spec/lib/config_spec.rb +0 -697
  188. data/spec/lib/doorkeeper_spec.rb +0 -27
  189. data/spec/lib/models/expirable_spec.rb +0 -61
  190. data/spec/lib/models/reusable_spec.rb +0 -40
  191. data/spec/lib/models/revocable_spec.rb +0 -59
  192. data/spec/lib/models/scopes_spec.rb +0 -53
  193. data/spec/lib/models/secret_storable_spec.rb +0 -135
  194. data/spec/lib/oauth/authorization/uri_builder_spec.rb +0 -39
  195. data/spec/lib/oauth/authorization_code_request_spec.rb +0 -156
  196. data/spec/lib/oauth/base_request_spec.rb +0 -205
  197. data/spec/lib/oauth/base_response_spec.rb +0 -47
  198. data/spec/lib/oauth/client/credentials_spec.rb +0 -90
  199. data/spec/lib/oauth/client_credentials/creator_spec.rb +0 -94
  200. data/spec/lib/oauth/client_credentials/issuer_spec.rb +0 -112
  201. data/spec/lib/oauth/client_credentials/validation_spec.rb +0 -59
  202. data/spec/lib/oauth/client_credentials_integration_spec.rb +0 -29
  203. data/spec/lib/oauth/client_credentials_request_spec.rb +0 -109
  204. data/spec/lib/oauth/client_spec.rb +0 -38
  205. data/spec/lib/oauth/code_request_spec.rb +0 -47
  206. data/spec/lib/oauth/code_response_spec.rb +0 -36
  207. data/spec/lib/oauth/error_response_spec.rb +0 -66
  208. data/spec/lib/oauth/error_spec.rb +0 -23
  209. data/spec/lib/oauth/forbidden_token_response_spec.rb +0 -22
  210. data/spec/lib/oauth/helpers/scope_checker_spec.rb +0 -98
  211. data/spec/lib/oauth/helpers/unique_token_spec.rb +0 -21
  212. data/spec/lib/oauth/helpers/uri_checker_spec.rb +0 -247
  213. data/spec/lib/oauth/invalid_token_response_spec.rb +0 -55
  214. data/spec/lib/oauth/password_access_token_request_spec.rb +0 -192
  215. data/spec/lib/oauth/pre_authorization_spec.rb +0 -215
  216. data/spec/lib/oauth/refresh_token_request_spec.rb +0 -177
  217. data/spec/lib/oauth/scopes_spec.rb +0 -148
  218. data/spec/lib/oauth/token_request_spec.rb +0 -150
  219. data/spec/lib/oauth/token_response_spec.rb +0 -86
  220. data/spec/lib/oauth/token_spec.rb +0 -158
  221. data/spec/lib/request/strategy_spec.rb +0 -54
  222. data/spec/lib/secret_storing/base_spec.rb +0 -60
  223. data/spec/lib/secret_storing/bcrypt_spec.rb +0 -49
  224. data/spec/lib/secret_storing/plain_spec.rb +0 -44
  225. data/spec/lib/secret_storing/sha256_hash_spec.rb +0 -48
  226. data/spec/lib/server_spec.rb +0 -61
  227. data/spec/lib/stale_records_cleaner_spec.rb +0 -89
  228. data/spec/models/doorkeeper/access_grant_spec.rb +0 -144
  229. data/spec/models/doorkeeper/access_token_spec.rb +0 -591
  230. data/spec/models/doorkeeper/application_spec.rb +0 -367
  231. data/spec/requests/applications/applications_request_spec.rb +0 -259
  232. data/spec/requests/applications/authorized_applications_spec.rb +0 -32
  233. data/spec/requests/endpoints/authorization_spec.rb +0 -73
  234. data/spec/requests/endpoints/token_spec.rb +0 -75
  235. data/spec/requests/flows/authorization_code_errors_spec.rb +0 -78
  236. data/spec/requests/flows/authorization_code_spec.rb +0 -447
  237. data/spec/requests/flows/client_credentials_spec.rb +0 -128
  238. data/spec/requests/flows/implicit_grant_errors_spec.rb +0 -34
  239. data/spec/requests/flows/implicit_grant_spec.rb +0 -90
  240. data/spec/requests/flows/password_spec.rb +0 -259
  241. data/spec/requests/flows/refresh_token_spec.rb +0 -233
  242. data/spec/requests/flows/revoke_token_spec.rb +0 -143
  243. data/spec/requests/flows/skip_authorization_spec.rb +0 -66
  244. data/spec/requests/protected_resources/metal_spec.rb +0 -16
  245. data/spec/requests/protected_resources/private_api_spec.rb +0 -83
  246. data/spec/routing/custom_controller_routes_spec.rb +0 -133
  247. data/spec/routing/default_routes_spec.rb +0 -41
  248. data/spec/routing/scoped_routes_spec.rb +0 -47
  249. data/spec/spec_helper.rb +0 -57
  250. data/spec/spec_helper_integration.rb +0 -4
  251. data/spec/support/dependencies/factory_bot.rb +0 -4
  252. data/spec/support/doorkeeper_rspec.rb +0 -22
  253. data/spec/support/helpers/access_token_request_helper.rb +0 -13
  254. data/spec/support/helpers/authorization_request_helper.rb +0 -43
  255. data/spec/support/helpers/config_helper.rb +0 -11
  256. data/spec/support/helpers/model_helper.rb +0 -78
  257. data/spec/support/helpers/request_spec_helper.rb +0 -98
  258. data/spec/support/helpers/url_helper.rb +0 -62
  259. data/spec/support/http_method_shim.rb +0 -29
  260. data/spec/support/orm/active_record.rb +0 -5
  261. data/spec/support/shared/controllers_shared_context.rb +0 -123
  262. data/spec/support/shared/hashing_shared_context.rb +0 -36
  263. data/spec/support/shared/models_shared_examples.rb +0 -54
  264. data/spec/validators/redirect_uri_validator_spec.rb +0 -158
  265. 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.1.0
4
+ version: 5.5.1
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: 2019-04-17 00:00:00.000000000 Z
14
+ date: 2021-04-06 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: railties
@@ -75,42 +75,42 @@ 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
89
89
  requirements:
90
90
  - - "~>"
91
91
  - !ruby/object:Gem::Version
92
- version: '1.6'
92
+ version: '2.0'
93
93
  type: :development
94
94
  prerelease: false
95
95
  version_requirements: !ruby/object:Gem::Requirement
96
96
  requirements:
97
97
  - - "~>"
98
98
  - !ruby/object:Gem::Version
99
- version: '1.6'
99
+ version: '2.0'
100
100
  - !ruby/object:Gem::Dependency
101
101
  name: factory_bot
102
102
  requirement: !ruby/object:Gem::Requirement
103
103
  requirements:
104
104
  - - "~>"
105
105
  - !ruby/object:Gem::Version
106
- version: '5.0'
106
+ version: '6.0'
107
107
  type: :development
108
108
  prerelease: false
109
109
  version_requirements: !ruby/object:Gem::Requirement
110
110
  requirements:
111
111
  - - "~>"
112
112
  - !ruby/object:Gem::Version
113
- version: '5.0'
113
+ version: '6.0'
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: generator_spec
116
116
  requirement: !ruby/object:Gem::Requirement
@@ -174,27 +174,9 @@ executables: []
174
174
  extensions: []
175
175
  extra_rdoc_files: []
176
176
  files:
177
- - ".coveralls.yml"
178
- - ".github/ISSUE_TEMPLATE.md"
179
- - ".github/PULL_REQUEST_TEMPLATE.md"
180
- - ".gitignore"
181
- - ".gitlab-ci.yml"
182
- - ".hound.yml"
183
- - ".rspec"
184
- - ".rubocop.yml"
185
- - ".travis.yml"
186
- - Appraisals
187
- - CODE_OF_CONDUCT.md
188
- - CONTRIBUTING.md
189
- - Dangerfile
190
- - Gemfile
177
+ - CHANGELOG.md
191
178
  - MIT-LICENSE
192
- - NEWS.md
193
179
  - README.md
194
- - RELEASING.md
195
- - Rakefile
196
- - SECURITY.md
197
- - UPGRADE.md
198
180
  - app/assets/stylesheets/doorkeeper/admin/application.css
199
181
  - app/assets/stylesheets/doorkeeper/application.css
200
182
  - app/controllers/doorkeeper/application_controller.rb
@@ -205,7 +187,6 @@ files:
205
187
  - app/controllers/doorkeeper/token_info_controller.rb
206
188
  - app/controllers/doorkeeper/tokens_controller.rb
207
189
  - app/helpers/doorkeeper/dashboard_helper.rb
208
- - app/validators/redirect_uri_validator.rb
209
190
  - app/views/doorkeeper/applications/_delete_form.html.erb
210
191
  - app/views/doorkeeper/applications/_form.html.erb
211
192
  - app/views/doorkeeper/applications/edit.html.erb
@@ -213,25 +194,25 @@ files:
213
194
  - app/views/doorkeeper/applications/new.html.erb
214
195
  - app/views/doorkeeper/applications/show.html.erb
215
196
  - app/views/doorkeeper/authorizations/error.html.erb
197
+ - app/views/doorkeeper/authorizations/form_post.html.erb
216
198
  - app/views/doorkeeper/authorizations/new.html.erb
217
199
  - app/views/doorkeeper/authorizations/show.html.erb
218
200
  - app/views/doorkeeper/authorized_applications/_delete_form.html.erb
219
201
  - app/views/doorkeeper/authorized_applications/index.html.erb
220
202
  - app/views/layouts/doorkeeper/admin.html.erb
221
203
  - app/views/layouts/doorkeeper/application.html.erb
222
- - bin/console
223
204
  - config/locales/en.yml
224
- - doorkeeper.gemspec
225
- - gemfiles/rails_5_0.gemfile
226
- - gemfiles/rails_5_1.gemfile
227
- - gemfiles/rails_5_2.gemfile
228
- - gemfiles/rails_6_0.gemfile
229
- - gemfiles/rails_master.gemfile
230
205
  - lib/doorkeeper.rb
231
206
  - lib/doorkeeper/config.rb
207
+ - lib/doorkeeper/config/abstract_builder.rb
232
208
  - lib/doorkeeper/config/option.rb
209
+ - lib/doorkeeper/config/validations.rb
233
210
  - lib/doorkeeper/engine.rb
234
211
  - lib/doorkeeper/errors.rb
212
+ - lib/doorkeeper/grant_flow.rb
213
+ - lib/doorkeeper/grant_flow/fallback_flow.rb
214
+ - lib/doorkeeper/grant_flow/flow.rb
215
+ - lib/doorkeeper/grant_flow/registry.rb
235
216
  - lib/doorkeeper/grape/authorization_decorator.rb
236
217
  - lib/doorkeeper/grape/helpers.rb
237
218
  - lib/doorkeeper/helpers/controller.rb
@@ -242,6 +223,7 @@ files:
242
223
  - lib/doorkeeper/models/concerns/expirable.rb
243
224
  - lib/doorkeeper/models/concerns/orderable.rb
244
225
  - lib/doorkeeper/models/concerns/ownership.rb
226
+ - lib/doorkeeper/models/concerns/resource_ownerable.rb
245
227
  - lib/doorkeeper/models/concerns/reusable.rb
246
228
  - lib/doorkeeper/models/concerns/revocable.rb
247
229
  - lib/doorkeeper/models/concerns/scopes.rb
@@ -258,7 +240,7 @@ files:
258
240
  - lib/doorkeeper/oauth/client/credentials.rb
259
241
  - lib/doorkeeper/oauth/client_credentials/creator.rb
260
242
  - lib/doorkeeper/oauth/client_credentials/issuer.rb
261
- - lib/doorkeeper/oauth/client_credentials/validation.rb
243
+ - lib/doorkeeper/oauth/client_credentials/validator.rb
262
244
  - lib/doorkeeper/oauth/client_credentials_request.rb
263
245
  - lib/doorkeeper/oauth/code_request.rb
264
246
  - lib/doorkeeper/oauth/code_response.rb
@@ -268,7 +250,10 @@ files:
268
250
  - lib/doorkeeper/oauth/helpers/scope_checker.rb
269
251
  - lib/doorkeeper/oauth/helpers/unique_token.rb
270
252
  - lib/doorkeeper/oauth/helpers/uri_checker.rb
253
+ - lib/doorkeeper/oauth/hooks/context.rb
254
+ - lib/doorkeeper/oauth/invalid_request_response.rb
271
255
  - lib/doorkeeper/oauth/invalid_token_response.rb
256
+ - lib/doorkeeper/oauth/nonstandard.rb
272
257
  - lib/doorkeeper/oauth/password_access_token_request.rb
273
258
  - lib/doorkeeper/oauth/pre_authorization.rb
274
259
  - lib/doorkeeper/oauth/refresh_token_request.rb
@@ -281,11 +266,17 @@ files:
281
266
  - lib/doorkeeper/orm/active_record/access_grant.rb
282
267
  - lib/doorkeeper/orm/active_record/access_token.rb
283
268
  - lib/doorkeeper/orm/active_record/application.rb
269
+ - lib/doorkeeper/orm/active_record/mixins/access_grant.rb
270
+ - lib/doorkeeper/orm/active_record/mixins/access_token.rb
271
+ - lib/doorkeeper/orm/active_record/mixins/application.rb
272
+ - lib/doorkeeper/orm/active_record/redirect_uri_validator.rb
284
273
  - lib/doorkeeper/orm/active_record/stale_records_cleaner.rb
285
274
  - lib/doorkeeper/rails/helpers.rb
286
275
  - lib/doorkeeper/rails/routes.rb
276
+ - lib/doorkeeper/rails/routes/abstract_router.rb
287
277
  - lib/doorkeeper/rails/routes/mapper.rb
288
278
  - lib/doorkeeper/rails/routes/mapping.rb
279
+ - lib/doorkeeper/rails/routes/registry.rb
289
280
  - lib/doorkeeper/rake.rb
290
281
  - lib/doorkeeper/rake/db.rake
291
282
  - lib/doorkeeper/rake/setup.rake
@@ -307,6 +298,7 @@ files:
307
298
  - lib/doorkeeper/version.rb
308
299
  - lib/generators/doorkeeper/application_owner_generator.rb
309
300
  - lib/generators/doorkeeper/confidential_applications_generator.rb
301
+ - lib/generators/doorkeeper/enable_polymorphic_resource_owner_generator.rb
310
302
  - lib/generators/doorkeeper/install_generator.rb
311
303
  - lib/generators/doorkeeper/migration_generator.rb
312
304
  - lib/generators/doorkeeper/pkce_generator.rb
@@ -316,151 +308,28 @@ files:
316
308
  - lib/generators/doorkeeper/templates/add_owner_to_application_migration.rb.erb
317
309
  - lib/generators/doorkeeper/templates/add_previous_refresh_token_to_access_tokens.rb.erb
318
310
  - lib/generators/doorkeeper/templates/enable_pkce_migration.rb.erb
311
+ - lib/generators/doorkeeper/templates/enable_polymorphic_resource_owner_migration.rb.erb
319
312
  - lib/generators/doorkeeper/templates/initializer.rb
320
313
  - lib/generators/doorkeeper/templates/migration.rb.erb
321
314
  - lib/generators/doorkeeper/views_generator.rb
322
- - spec/controllers/application_metal_controller_spec.rb
323
- - spec/controllers/applications_controller_spec.rb
324
- - spec/controllers/authorizations_controller_spec.rb
325
- - spec/controllers/protected_resources_controller_spec.rb
326
- - spec/controllers/token_info_controller_spec.rb
327
- - spec/controllers/tokens_controller_spec.rb
328
- - spec/dummy/Rakefile
329
- - spec/dummy/app/assets/config/manifest.js
330
- - spec/dummy/app/controllers/application_controller.rb
331
- - spec/dummy/app/controllers/custom_authorizations_controller.rb
332
- - spec/dummy/app/controllers/full_protected_resources_controller.rb
333
- - spec/dummy/app/controllers/home_controller.rb
334
- - spec/dummy/app/controllers/metal_controller.rb
335
- - spec/dummy/app/controllers/semi_protected_resources_controller.rb
336
- - spec/dummy/app/helpers/application_helper.rb
337
- - spec/dummy/app/models/user.rb
338
- - spec/dummy/app/views/home/index.html.erb
339
- - spec/dummy/app/views/layouts/application.html.erb
340
- - spec/dummy/config.ru
341
- - spec/dummy/config/application.rb
342
- - spec/dummy/config/boot.rb
343
- - spec/dummy/config/database.yml
344
- - spec/dummy/config/environment.rb
345
- - spec/dummy/config/environments/development.rb
346
- - spec/dummy/config/environments/production.rb
347
- - spec/dummy/config/environments/test.rb
348
- - spec/dummy/config/initializers/backtrace_silencers.rb
349
- - spec/dummy/config/initializers/doorkeeper.rb
350
- - spec/dummy/config/initializers/secret_token.rb
351
- - spec/dummy/config/initializers/session_store.rb
352
- - spec/dummy/config/initializers/wrap_parameters.rb
353
- - spec/dummy/config/locales/doorkeeper.en.yml
354
- - spec/dummy/config/routes.rb
355
- - spec/dummy/db/migrate/20111122132257_create_users.rb
356
- - spec/dummy/db/migrate/20120312140401_add_password_to_users.rb
357
- - spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb
358
- - spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
359
- - spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb
360
- - spec/dummy/db/migrate/20170822064514_enable_pkce.rb
361
- - spec/dummy/db/migrate/20180210183654_add_confidential_to_applications.rb
362
- - spec/dummy/db/schema.rb
363
- - spec/dummy/public/404.html
364
- - spec/dummy/public/422.html
365
- - spec/dummy/public/500.html
366
- - spec/dummy/public/favicon.ico
367
- - spec/dummy/script/rails
368
- - spec/factories.rb
369
- - spec/generators/application_owner_generator_spec.rb
370
- - spec/generators/confidential_applications_generator_spec.rb
371
- - spec/generators/install_generator_spec.rb
372
- - spec/generators/migration_generator_spec.rb
373
- - spec/generators/pkce_generator_spec.rb
374
- - spec/generators/previous_refresh_token_generator_spec.rb
375
- - spec/generators/templates/routes.rb
376
- - spec/generators/views_generator_spec.rb
377
- - spec/grape/grape_integration_spec.rb
378
- - spec/helpers/doorkeeper/dashboard_helper_spec.rb
379
- - spec/lib/config_spec.rb
380
- - spec/lib/doorkeeper_spec.rb
381
- - spec/lib/models/expirable_spec.rb
382
- - spec/lib/models/reusable_spec.rb
383
- - spec/lib/models/revocable_spec.rb
384
- - spec/lib/models/scopes_spec.rb
385
- - spec/lib/models/secret_storable_spec.rb
386
- - spec/lib/oauth/authorization/uri_builder_spec.rb
387
- - spec/lib/oauth/authorization_code_request_spec.rb
388
- - spec/lib/oauth/base_request_spec.rb
389
- - spec/lib/oauth/base_response_spec.rb
390
- - spec/lib/oauth/client/credentials_spec.rb
391
- - spec/lib/oauth/client_credentials/creator_spec.rb
392
- - spec/lib/oauth/client_credentials/issuer_spec.rb
393
- - spec/lib/oauth/client_credentials/validation_spec.rb
394
- - spec/lib/oauth/client_credentials_integration_spec.rb
395
- - spec/lib/oauth/client_credentials_request_spec.rb
396
- - spec/lib/oauth/client_spec.rb
397
- - spec/lib/oauth/code_request_spec.rb
398
- - spec/lib/oauth/code_response_spec.rb
399
- - spec/lib/oauth/error_response_spec.rb
400
- - spec/lib/oauth/error_spec.rb
401
- - spec/lib/oauth/forbidden_token_response_spec.rb
402
- - spec/lib/oauth/helpers/scope_checker_spec.rb
403
- - spec/lib/oauth/helpers/unique_token_spec.rb
404
- - spec/lib/oauth/helpers/uri_checker_spec.rb
405
- - spec/lib/oauth/invalid_token_response_spec.rb
406
- - spec/lib/oauth/password_access_token_request_spec.rb
407
- - spec/lib/oauth/pre_authorization_spec.rb
408
- - spec/lib/oauth/refresh_token_request_spec.rb
409
- - spec/lib/oauth/scopes_spec.rb
410
- - spec/lib/oauth/token_request_spec.rb
411
- - spec/lib/oauth/token_response_spec.rb
412
- - spec/lib/oauth/token_spec.rb
413
- - spec/lib/request/strategy_spec.rb
414
- - spec/lib/secret_storing/base_spec.rb
415
- - spec/lib/secret_storing/bcrypt_spec.rb
416
- - spec/lib/secret_storing/plain_spec.rb
417
- - spec/lib/secret_storing/sha256_hash_spec.rb
418
- - spec/lib/server_spec.rb
419
- - spec/lib/stale_records_cleaner_spec.rb
420
- - spec/models/doorkeeper/access_grant_spec.rb
421
- - spec/models/doorkeeper/access_token_spec.rb
422
- - spec/models/doorkeeper/application_spec.rb
423
- - spec/requests/applications/applications_request_spec.rb
424
- - spec/requests/applications/authorized_applications_spec.rb
425
- - spec/requests/endpoints/authorization_spec.rb
426
- - spec/requests/endpoints/token_spec.rb
427
- - spec/requests/flows/authorization_code_errors_spec.rb
428
- - spec/requests/flows/authorization_code_spec.rb
429
- - spec/requests/flows/client_credentials_spec.rb
430
- - spec/requests/flows/implicit_grant_errors_spec.rb
431
- - spec/requests/flows/implicit_grant_spec.rb
432
- - spec/requests/flows/password_spec.rb
433
- - spec/requests/flows/refresh_token_spec.rb
434
- - spec/requests/flows/revoke_token_spec.rb
435
- - spec/requests/flows/skip_authorization_spec.rb
436
- - spec/requests/protected_resources/metal_spec.rb
437
- - spec/requests/protected_resources/private_api_spec.rb
438
- - spec/routing/custom_controller_routes_spec.rb
439
- - spec/routing/default_routes_spec.rb
440
- - spec/routing/scoped_routes_spec.rb
441
- - spec/spec_helper.rb
442
- - spec/spec_helper_integration.rb
443
- - spec/support/dependencies/factory_bot.rb
444
- - spec/support/doorkeeper_rspec.rb
445
- - spec/support/helpers/access_token_request_helper.rb
446
- - spec/support/helpers/authorization_request_helper.rb
447
- - spec/support/helpers/config_helper.rb
448
- - spec/support/helpers/model_helper.rb
449
- - spec/support/helpers/request_spec_helper.rb
450
- - spec/support/helpers/url_helper.rb
451
- - spec/support/http_method_shim.rb
452
- - spec/support/orm/active_record.rb
453
- - spec/support/shared/controllers_shared_context.rb
454
- - spec/support/shared/hashing_shared_context.rb
455
- - spec/support/shared/models_shared_examples.rb
456
- - spec/validators/redirect_uri_validator_spec.rb
457
- - spec/version/version_spec.rb
458
315
  - vendor/assets/stylesheets/doorkeeper/bootstrap.min.css
459
316
  homepage: https://github.com/doorkeeper-gem/doorkeeper
460
317
  licenses:
461
318
  - MIT
462
- metadata: {}
463
- post_install_message:
319
+ metadata:
320
+ homepage_uri: https://github.com/doorkeeper-gem/doorkeeper
321
+ changelog_uri: https://github.com/doorkeeper-gem/doorkeeper/blob/main/CHANGELOG.md
322
+ source_code_uri: https://github.com/doorkeeper-gem/doorkeeper
323
+ bug_tracker_uri: https://github.com/doorkeeper-gem/doorkeeper/issues
324
+ documentation_uri: https://doorkeeper.gitbook.io/guides/
325
+ post_install_message: "Starting from 5.5.0 RC1 Doorkeeper requires client authentication
326
+ for Resource Owner Password Grant\nas stated in the OAuth RFC. You have to create
327
+ a new OAuth client (Doorkeeper::Application) if you didn't\nhave it before and use
328
+ client credentials in HTTP Basic auth if you previously used this grant flow without\nclient
329
+ authentication. \n\nTo opt out of this you could set the \"skip_client_authentication_for_password_grant\"
330
+ configuration option\nto \"true\", but note that this is in violation of the OAuth
331
+ spec and represents a security risk.\n\nRead https://github.com/doorkeeper-gem/doorkeeper/issues/561#issuecomment-612857163
332
+ for more details."
464
333
  rdoc_options: []
465
334
  require_paths:
466
335
  - lib
@@ -475,144 +344,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
475
344
  - !ruby/object:Gem::Version
476
345
  version: '0'
477
346
  requirements: []
478
- rubygems_version: 3.0.2
347
+ rubygems_version: 3.1.2
479
348
  signing_key:
480
349
  specification_version: 4
481
350
  summary: OAuth 2 provider for Rails and Grape
482
- test_files:
483
- - spec/controllers/application_metal_controller_spec.rb
484
- - spec/controllers/applications_controller_spec.rb
485
- - spec/controllers/authorizations_controller_spec.rb
486
- - spec/controllers/protected_resources_controller_spec.rb
487
- - spec/controllers/token_info_controller_spec.rb
488
- - spec/controllers/tokens_controller_spec.rb
489
- - spec/dummy/Rakefile
490
- - spec/dummy/app/assets/config/manifest.js
491
- - spec/dummy/app/controllers/application_controller.rb
492
- - spec/dummy/app/controllers/custom_authorizations_controller.rb
493
- - spec/dummy/app/controllers/full_protected_resources_controller.rb
494
- - spec/dummy/app/controllers/home_controller.rb
495
- - spec/dummy/app/controllers/metal_controller.rb
496
- - spec/dummy/app/controllers/semi_protected_resources_controller.rb
497
- - spec/dummy/app/helpers/application_helper.rb
498
- - spec/dummy/app/models/user.rb
499
- - spec/dummy/app/views/home/index.html.erb
500
- - spec/dummy/app/views/layouts/application.html.erb
501
- - spec/dummy/config.ru
502
- - spec/dummy/config/application.rb
503
- - spec/dummy/config/boot.rb
504
- - spec/dummy/config/database.yml
505
- - spec/dummy/config/environment.rb
506
- - spec/dummy/config/environments/development.rb
507
- - spec/dummy/config/environments/production.rb
508
- - spec/dummy/config/environments/test.rb
509
- - spec/dummy/config/initializers/backtrace_silencers.rb
510
- - spec/dummy/config/initializers/doorkeeper.rb
511
- - spec/dummy/config/initializers/secret_token.rb
512
- - spec/dummy/config/initializers/session_store.rb
513
- - spec/dummy/config/initializers/wrap_parameters.rb
514
- - spec/dummy/config/locales/doorkeeper.en.yml
515
- - spec/dummy/config/routes.rb
516
- - spec/dummy/db/migrate/20111122132257_create_users.rb
517
- - spec/dummy/db/migrate/20120312140401_add_password_to_users.rb
518
- - spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb
519
- - spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
520
- - spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb
521
- - spec/dummy/db/migrate/20170822064514_enable_pkce.rb
522
- - spec/dummy/db/migrate/20180210183654_add_confidential_to_applications.rb
523
- - spec/dummy/db/schema.rb
524
- - spec/dummy/public/404.html
525
- - spec/dummy/public/422.html
526
- - spec/dummy/public/500.html
527
- - spec/dummy/public/favicon.ico
528
- - spec/dummy/script/rails
529
- - spec/factories.rb
530
- - spec/generators/application_owner_generator_spec.rb
531
- - spec/generators/confidential_applications_generator_spec.rb
532
- - spec/generators/install_generator_spec.rb
533
- - spec/generators/migration_generator_spec.rb
534
- - spec/generators/pkce_generator_spec.rb
535
- - spec/generators/previous_refresh_token_generator_spec.rb
536
- - spec/generators/templates/routes.rb
537
- - spec/generators/views_generator_spec.rb
538
- - spec/grape/grape_integration_spec.rb
539
- - spec/helpers/doorkeeper/dashboard_helper_spec.rb
540
- - spec/lib/config_spec.rb
541
- - spec/lib/doorkeeper_spec.rb
542
- - spec/lib/models/expirable_spec.rb
543
- - spec/lib/models/reusable_spec.rb
544
- - spec/lib/models/revocable_spec.rb
545
- - spec/lib/models/scopes_spec.rb
546
- - spec/lib/models/secret_storable_spec.rb
547
- - spec/lib/oauth/authorization/uri_builder_spec.rb
548
- - spec/lib/oauth/authorization_code_request_spec.rb
549
- - spec/lib/oauth/base_request_spec.rb
550
- - spec/lib/oauth/base_response_spec.rb
551
- - spec/lib/oauth/client/credentials_spec.rb
552
- - spec/lib/oauth/client_credentials/creator_spec.rb
553
- - spec/lib/oauth/client_credentials/issuer_spec.rb
554
- - spec/lib/oauth/client_credentials/validation_spec.rb
555
- - spec/lib/oauth/client_credentials_integration_spec.rb
556
- - spec/lib/oauth/client_credentials_request_spec.rb
557
- - spec/lib/oauth/client_spec.rb
558
- - spec/lib/oauth/code_request_spec.rb
559
- - spec/lib/oauth/code_response_spec.rb
560
- - spec/lib/oauth/error_response_spec.rb
561
- - spec/lib/oauth/error_spec.rb
562
- - spec/lib/oauth/forbidden_token_response_spec.rb
563
- - spec/lib/oauth/helpers/scope_checker_spec.rb
564
- - spec/lib/oauth/helpers/unique_token_spec.rb
565
- - spec/lib/oauth/helpers/uri_checker_spec.rb
566
- - spec/lib/oauth/invalid_token_response_spec.rb
567
- - spec/lib/oauth/password_access_token_request_spec.rb
568
- - spec/lib/oauth/pre_authorization_spec.rb
569
- - spec/lib/oauth/refresh_token_request_spec.rb
570
- - spec/lib/oauth/scopes_spec.rb
571
- - spec/lib/oauth/token_request_spec.rb
572
- - spec/lib/oauth/token_response_spec.rb
573
- - spec/lib/oauth/token_spec.rb
574
- - spec/lib/request/strategy_spec.rb
575
- - spec/lib/secret_storing/base_spec.rb
576
- - spec/lib/secret_storing/bcrypt_spec.rb
577
- - spec/lib/secret_storing/plain_spec.rb
578
- - spec/lib/secret_storing/sha256_hash_spec.rb
579
- - spec/lib/server_spec.rb
580
- - spec/lib/stale_records_cleaner_spec.rb
581
- - spec/models/doorkeeper/access_grant_spec.rb
582
- - spec/models/doorkeeper/access_token_spec.rb
583
- - spec/models/doorkeeper/application_spec.rb
584
- - spec/requests/applications/applications_request_spec.rb
585
- - spec/requests/applications/authorized_applications_spec.rb
586
- - spec/requests/endpoints/authorization_spec.rb
587
- - spec/requests/endpoints/token_spec.rb
588
- - spec/requests/flows/authorization_code_errors_spec.rb
589
- - spec/requests/flows/authorization_code_spec.rb
590
- - spec/requests/flows/client_credentials_spec.rb
591
- - spec/requests/flows/implicit_grant_errors_spec.rb
592
- - spec/requests/flows/implicit_grant_spec.rb
593
- - spec/requests/flows/password_spec.rb
594
- - spec/requests/flows/refresh_token_spec.rb
595
- - spec/requests/flows/revoke_token_spec.rb
596
- - spec/requests/flows/skip_authorization_spec.rb
597
- - spec/requests/protected_resources/metal_spec.rb
598
- - spec/requests/protected_resources/private_api_spec.rb
599
- - spec/routing/custom_controller_routes_spec.rb
600
- - spec/routing/default_routes_spec.rb
601
- - spec/routing/scoped_routes_spec.rb
602
- - spec/spec_helper.rb
603
- - spec/spec_helper_integration.rb
604
- - spec/support/dependencies/factory_bot.rb
605
- - spec/support/doorkeeper_rspec.rb
606
- - spec/support/helpers/access_token_request_helper.rb
607
- - spec/support/helpers/authorization_request_helper.rb
608
- - spec/support/helpers/config_helper.rb
609
- - spec/support/helpers/model_helper.rb
610
- - spec/support/helpers/request_spec_helper.rb
611
- - spec/support/helpers/url_helper.rb
612
- - spec/support/http_method_shim.rb
613
- - spec/support/orm/active_record.rb
614
- - spec/support/shared/controllers_shared_context.rb
615
- - spec/support/shared/hashing_shared_context.rb
616
- - spec/support/shared/models_shared_examples.rb
617
- - spec/validators/redirect_uri_validator_spec.rb
618
- - spec/version/version_spec.rb
351
+ test_files: []
data/.coveralls.yml DELETED
@@ -1 +0,0 @@
1
- service_name: travis-ci
@@ -1,25 +0,0 @@
1
- ### Steps to reproduce
2
- What we need to do to see your problem or bug?
3
-
4
- The more detailed the issue, the more likely that we will fix it ASAP.
5
-
6
- Don't use GitHub issues for questions like "How can I do that?" —
7
- use [StackOverflow](https://stackoverflow.com/questions/tagged/doorkeeper)
8
- instead with the corresponding tag.
9
-
10
- ### Expected behavior
11
- Tell us what should happen
12
-
13
- ### Actual behavior
14
- Tell us what happens instead
15
-
16
- ### System configuration
17
- You can help us to understand your problem if you will share some very
18
- useful information about your project environment (don't forget to
19
- remove any confidential data if it exists).
20
-
21
- **Doorkeeper initializer**:
22
-
23
- **Ruby version**:
24
-
25
- **Gemfile.lock**:
@@ -1,17 +0,0 @@
1
- ### Summary
2
-
3
- Provide a general description of the code changes in your pull
4
- request... were there any bugs you had fixed? If so, mention them. If
5
- these bugs have open GitHub issues, be sure to tag them here as well,
6
- to keep the conversation linked together.
7
-
8
- ### Other Information
9
-
10
- If there's anything else that's important and relevant to your pull
11
- request, mention that information here. This could include
12
- benchmarks, or other information.
13
-
14
- If you are updating NEWS.md file or are asked to update it by reviewers,
15
- please add the changelog entry at the top of the file.
16
-
17
- Thanks for contributing to Doorkeeper project!
data/.gitignore DELETED
@@ -1,20 +0,0 @@
1
- .bundle/
2
- .rbx
3
- *.rbc
4
- log/*.log
5
- pkg/
6
- spec/dummy/db/*.sqlite3
7
- spec/dummy/log/*.log
8
- spec/dummy/tmp/
9
- spec/generators/tmp
10
- Gemfile.lock
11
- gemfiles/*.lock
12
- .rvmrc
13
- *.swp
14
- .idea
15
- /.yardoc/
16
- /_yardoc/
17
- /doc/
18
- /rdoc/
19
- coverage
20
- *.gem
data/.gitlab-ci.yml DELETED
@@ -1,16 +0,0 @@
1
- dependency_scanning:
2
- image: docker:stable
3
- variables:
4
- DOCKER_DRIVER: overlay2
5
- allow_failure: true
6
- services:
7
- - docker:stable-dind
8
- script:
9
- - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
10
- - docker run
11
- --env DEP_SCAN_DISABLE_REMOTE_CHECKS="${DEP_SCAN_DISABLE_REMOTE_CHECKS:-false}"
12
- --volume "$PWD:/code"
13
- --volume /var/run/docker.sock:/var/run/docker.sock
14
- "registry.gitlab.com/gitlab-org/security-products/dependency-scanning:$SP_VERSION" /code
15
- artifacts:
16
- paths: [gl-dependency-scanning-report.json]
data/.hound.yml DELETED
@@ -1,3 +0,0 @@
1
- rubocop:
2
- config_file: .rubocop.yml
3
- version: 0.64.0
data/.rspec DELETED
@@ -1 +0,0 @@
1
- --colour
data/.rubocop.yml DELETED
@@ -1,50 +0,0 @@
1
- AllCops:
2
- TargetRubyVersion: 2.4
3
- Exclude:
4
- - "spec/dummy/db/*"
5
- - "spec/dummy/config/*"
6
- - "Dangerfile"
7
- - "gemfiles/*.gemfile"
8
-
9
- Metrics/BlockLength:
10
- Exclude:
11
- - spec/**/*
12
- - lib/doorkeeper/rake/*
13
-
14
- Metrics/LineLength:
15
- Exclude:
16
- - spec/**/*
17
- Max: 100
18
-
19
- Metrics/MethodLength:
20
- Exclude:
21
- - spec/dummy/db/*
22
-
23
- Style/StringLiterals:
24
- EnforcedStyle: double_quotes
25
- Style/StringLiteralsInInterpolation:
26
- EnforcedStyle: double_quotes
27
-
28
- Style/FrozenStringLiteralComment:
29
- Enabled: true
30
-
31
- Style/TrailingCommaInHashLiteral:
32
- EnforcedStyleForMultiline: consistent_comma
33
- Style/TrailingCommaInArrayLiteral:
34
- EnforcedStyleForMultiline: consistent_comma
35
-
36
- Style/SymbolArray:
37
- MinSize: 3
38
- Style/WordArray:
39
- MinSize: 3
40
-
41
- Style/ClassAndModuleChildren:
42
- Exclude:
43
- - spec/**/*
44
-
45
- Layout/MultilineMethodCallIndentation:
46
- EnforcedStyle: indented
47
- Layout/TrailingBlankLines:
48
- Enabled: true
49
- Layout/DotPosition:
50
- EnforcedStyle: leading