doorkeeper 5.2.2 → 5.5.4

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 (260) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +198 -3
  3. data/README.md +28 -20
  4. data/app/controllers/doorkeeper/application_controller.rb +3 -2
  5. data/app/controllers/doorkeeper/application_metal_controller.rb +2 -2
  6. data/app/controllers/doorkeeper/applications_controller.rb +7 -8
  7. data/app/controllers/doorkeeper/authorizations_controller.rb +48 -18
  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 +70 -25
  11. data/app/helpers/doorkeeper/dashboard_helper.rb +1 -1
  12. data/app/views/doorkeeper/applications/_form.html.erb +1 -1
  13. data/app/views/doorkeeper/applications/show.html.erb +35 -14
  14. data/app/views/doorkeeper/authorizations/form_post.html.erb +15 -0
  15. data/app/views/doorkeeper/authorizations/new.html.erb +2 -0
  16. data/config/locales/en.yml +9 -2
  17. data/lib/doorkeeper/config/abstract_builder.rb +28 -0
  18. data/lib/doorkeeper/config/option.rb +26 -14
  19. data/lib/doorkeeper/config/validations.rb +53 -0
  20. data/lib/doorkeeper/config.rb +214 -122
  21. data/lib/doorkeeper/engine.rb +1 -1
  22. data/lib/doorkeeper/grant_flow/fallback_flow.rb +15 -0
  23. data/lib/doorkeeper/grant_flow/flow.rb +44 -0
  24. data/lib/doorkeeper/grant_flow/registry.rb +50 -0
  25. data/lib/doorkeeper/grant_flow.rb +45 -0
  26. data/lib/doorkeeper/grape/helpers.rb +2 -2
  27. data/lib/doorkeeper/helpers/controller.rb +18 -12
  28. data/lib/doorkeeper/models/access_grant_mixin.rb +23 -19
  29. data/lib/doorkeeper/models/access_token_mixin.rb +157 -55
  30. data/lib/doorkeeper/models/application_mixin.rb +8 -7
  31. data/lib/doorkeeper/models/concerns/expirable.rb +1 -1
  32. data/lib/doorkeeper/models/concerns/ownership.rb +1 -1
  33. data/lib/doorkeeper/models/concerns/resource_ownerable.rb +47 -0
  34. data/lib/doorkeeper/models/concerns/reusable.rb +1 -1
  35. data/lib/doorkeeper/models/concerns/revocable.rb +1 -28
  36. data/lib/doorkeeper/models/concerns/scopes.rb +5 -1
  37. data/lib/doorkeeper/models/concerns/secret_storable.rb +1 -3
  38. data/lib/doorkeeper/oauth/authorization/code.rb +22 -9
  39. data/lib/doorkeeper/oauth/authorization/context.rb +5 -5
  40. data/lib/doorkeeper/oauth/authorization/token.rb +23 -18
  41. data/lib/doorkeeper/oauth/authorization/uri_builder.rb +4 -4
  42. data/lib/doorkeeper/oauth/authorization_code_request.rb +30 -20
  43. data/lib/doorkeeper/oauth/base_request.rb +19 -23
  44. data/lib/doorkeeper/oauth/client/credentials.rb +2 -4
  45. data/lib/doorkeeper/oauth/client.rb +8 -9
  46. data/lib/doorkeeper/oauth/client_credentials/creator.rb +38 -12
  47. data/lib/doorkeeper/oauth/client_credentials/issuer.rb +10 -8
  48. data/lib/doorkeeper/oauth/client_credentials/{validation.rb → validator.rb} +7 -5
  49. data/lib/doorkeeper/oauth/client_credentials_request.rb +8 -7
  50. data/lib/doorkeeper/oauth/code_request.rb +4 -4
  51. data/lib/doorkeeper/oauth/code_response.rb +24 -14
  52. data/lib/doorkeeper/oauth/error.rb +1 -1
  53. data/lib/doorkeeper/oauth/error_response.rb +10 -11
  54. data/lib/doorkeeper/oauth/forbidden_token_response.rb +2 -1
  55. data/lib/doorkeeper/oauth/helpers/scope_checker.rb +8 -12
  56. data/lib/doorkeeper/oauth/helpers/unique_token.rb +10 -7
  57. data/lib/doorkeeper/oauth/helpers/uri_checker.rb +1 -19
  58. data/lib/doorkeeper/oauth/hooks/context.rb +21 -0
  59. data/lib/doorkeeper/oauth/invalid_request_response.rb +3 -3
  60. data/lib/doorkeeper/oauth/invalid_token_response.rb +7 -4
  61. data/lib/doorkeeper/oauth/password_access_token_request.rb +28 -10
  62. data/lib/doorkeeper/oauth/pre_authorization.rb +73 -37
  63. data/lib/doorkeeper/oauth/refresh_token_request.rb +35 -26
  64. data/lib/doorkeeper/oauth/token.rb +6 -7
  65. data/lib/doorkeeper/oauth/token_introspection.rb +12 -16
  66. data/lib/doorkeeper/oauth/token_request.rb +3 -3
  67. data/lib/doorkeeper/oauth/token_response.rb +1 -1
  68. data/lib/doorkeeper/orm/active_record/access_grant.rb +4 -43
  69. data/lib/doorkeeper/orm/active_record/access_token.rb +4 -35
  70. data/lib/doorkeeper/orm/active_record/application.rb +5 -95
  71. data/lib/doorkeeper/orm/active_record/mixins/access_grant.rb +69 -0
  72. data/lib/doorkeeper/orm/active_record/mixins/access_token.rb +60 -0
  73. data/lib/doorkeeper/orm/active_record/mixins/application.rb +199 -0
  74. data/lib/doorkeeper/orm/active_record/redirect_uri_validator.rb +8 -3
  75. data/lib/doorkeeper/orm/active_record.rb +5 -7
  76. data/lib/doorkeeper/rails/helpers.rb +4 -4
  77. data/lib/doorkeeper/rails/routes/abstract_router.rb +35 -0
  78. data/lib/doorkeeper/rails/routes/mapper.rb +2 -2
  79. data/lib/doorkeeper/rails/routes/registry.rb +45 -0
  80. data/lib/doorkeeper/rails/routes.rb +17 -25
  81. data/lib/doorkeeper/rake/db.rake +6 -6
  82. data/lib/doorkeeper/rake/setup.rake +5 -0
  83. data/lib/doorkeeper/request/authorization_code.rb +3 -3
  84. data/lib/doorkeeper/request/client_credentials.rb +2 -2
  85. data/lib/doorkeeper/request/password.rb +3 -2
  86. data/lib/doorkeeper/request/refresh_token.rb +5 -4
  87. data/lib/doorkeeper/request/strategy.rb +2 -2
  88. data/lib/doorkeeper/request.rb +49 -12
  89. data/lib/doorkeeper/server.rb +5 -5
  90. data/lib/doorkeeper/stale_records_cleaner.rb +4 -4
  91. data/lib/doorkeeper/version.rb +2 -6
  92. data/lib/doorkeeper.rb +112 -81
  93. data/lib/generators/doorkeeper/application_owner_generator.rb +1 -1
  94. data/lib/generators/doorkeeper/confidential_applications_generator.rb +2 -2
  95. data/lib/generators/doorkeeper/enable_polymorphic_resource_owner_generator.rb +39 -0
  96. data/lib/generators/doorkeeper/migration_generator.rb +1 -1
  97. data/lib/generators/doorkeeper/pkce_generator.rb +1 -1
  98. data/lib/generators/doorkeeper/previous_refresh_token_generator.rb +2 -2
  99. data/lib/generators/doorkeeper/templates/add_owner_to_application_migration.rb.erb +3 -1
  100. data/lib/generators/doorkeeper/templates/add_previous_refresh_token_to_access_tokens.rb.erb +2 -0
  101. data/lib/generators/doorkeeper/templates/enable_pkce_migration.rb.erb +2 -0
  102. data/lib/generators/doorkeeper/templates/enable_polymorphic_resource_owner_migration.rb.erb +17 -0
  103. data/lib/generators/doorkeeper/templates/initializer.rb +99 -14
  104. data/lib/generators/doorkeeper/templates/migration.rb.erb +14 -5
  105. metadata +37 -306
  106. data/Appraisals +0 -40
  107. data/CODE_OF_CONDUCT.md +0 -46
  108. data/CONTRIBUTING.md +0 -49
  109. data/Dangerfile +0 -67
  110. data/Dockerfile +0 -29
  111. data/Gemfile +0 -25
  112. data/NEWS.md +0 -1
  113. data/RELEASING.md +0 -11
  114. data/Rakefile +0 -28
  115. data/SECURITY.md +0 -15
  116. data/UPGRADE.md +0 -2
  117. data/bin/console +0 -16
  118. data/doorkeeper.gemspec +0 -42
  119. data/gemfiles/rails_5_0.gemfile +0 -18
  120. data/gemfiles/rails_5_1.gemfile +0 -18
  121. data/gemfiles/rails_5_2.gemfile +0 -18
  122. data/gemfiles/rails_6_0.gemfile +0 -18
  123. data/gemfiles/rails_master.gemfile +0 -18
  124. data/spec/controllers/application_metal_controller_spec.rb +0 -64
  125. data/spec/controllers/applications_controller_spec.rb +0 -273
  126. data/spec/controllers/authorizations_controller_spec.rb +0 -608
  127. data/spec/controllers/protected_resources_controller_spec.rb +0 -353
  128. data/spec/controllers/token_info_controller_spec.rb +0 -50
  129. data/spec/controllers/tokens_controller_spec.rb +0 -498
  130. data/spec/dummy/Rakefile +0 -9
  131. data/spec/dummy/app/assets/config/manifest.js +0 -2
  132. data/spec/dummy/app/controllers/application_controller.rb +0 -5
  133. data/spec/dummy/app/controllers/custom_authorizations_controller.rb +0 -9
  134. data/spec/dummy/app/controllers/full_protected_resources_controller.rb +0 -14
  135. data/spec/dummy/app/controllers/home_controller.rb +0 -18
  136. data/spec/dummy/app/controllers/metal_controller.rb +0 -13
  137. data/spec/dummy/app/controllers/semi_protected_resources_controller.rb +0 -13
  138. data/spec/dummy/app/helpers/application_helper.rb +0 -7
  139. data/spec/dummy/app/models/user.rb +0 -7
  140. data/spec/dummy/app/views/home/index.html.erb +0 -0
  141. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  142. data/spec/dummy/config/application.rb +0 -49
  143. data/spec/dummy/config/boot.rb +0 -7
  144. data/spec/dummy/config/database.yml +0 -15
  145. data/spec/dummy/config/environment.rb +0 -5
  146. data/spec/dummy/config/environments/development.rb +0 -31
  147. data/spec/dummy/config/environments/production.rb +0 -64
  148. data/spec/dummy/config/environments/test.rb +0 -45
  149. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -9
  150. data/spec/dummy/config/initializers/doorkeeper.rb +0 -166
  151. data/spec/dummy/config/initializers/secret_token.rb +0 -10
  152. data/spec/dummy/config/initializers/session_store.rb +0 -10
  153. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -16
  154. data/spec/dummy/config/locales/doorkeeper.en.yml +0 -5
  155. data/spec/dummy/config/routes.rb +0 -13
  156. data/spec/dummy/config.ru +0 -6
  157. data/spec/dummy/db/migrate/20111122132257_create_users.rb +0 -11
  158. data/spec/dummy/db/migrate/20120312140401_add_password_to_users.rb +0 -7
  159. data/spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb +0 -69
  160. data/spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb +0 -9
  161. data/spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb +0 -13
  162. data/spec/dummy/db/migrate/20170822064514_enable_pkce.rb +0 -8
  163. data/spec/dummy/db/migrate/20180210183654_add_confidential_to_applications.rb +0 -13
  164. data/spec/dummy/db/schema.rb +0 -68
  165. data/spec/dummy/public/404.html +0 -26
  166. data/spec/dummy/public/422.html +0 -26
  167. data/spec/dummy/public/500.html +0 -26
  168. data/spec/dummy/public/favicon.ico +0 -0
  169. data/spec/dummy/script/rails +0 -9
  170. data/spec/factories.rb +0 -30
  171. data/spec/generators/application_owner_generator_spec.rb +0 -28
  172. data/spec/generators/confidential_applications_generator_spec.rb +0 -29
  173. data/spec/generators/install_generator_spec.rb +0 -36
  174. data/spec/generators/migration_generator_spec.rb +0 -28
  175. data/spec/generators/pkce_generator_spec.rb +0 -28
  176. data/spec/generators/previous_refresh_token_generator_spec.rb +0 -44
  177. data/spec/generators/templates/routes.rb +0 -4
  178. data/spec/generators/views_generator_spec.rb +0 -29
  179. data/spec/grape/grape_integration_spec.rb +0 -137
  180. data/spec/helpers/doorkeeper/dashboard_helper_spec.rb +0 -26
  181. data/spec/lib/config_spec.rb +0 -739
  182. data/spec/lib/doorkeeper_spec.rb +0 -27
  183. data/spec/lib/models/expirable_spec.rb +0 -61
  184. data/spec/lib/models/reusable_spec.rb +0 -40
  185. data/spec/lib/models/revocable_spec.rb +0 -59
  186. data/spec/lib/models/scopes_spec.rb +0 -53
  187. data/spec/lib/models/secret_storable_spec.rb +0 -135
  188. data/spec/lib/oauth/authorization/uri_builder_spec.rb +0 -39
  189. data/spec/lib/oauth/authorization_code_request_spec.rb +0 -168
  190. data/spec/lib/oauth/base_request_spec.rb +0 -222
  191. data/spec/lib/oauth/base_response_spec.rb +0 -47
  192. data/spec/lib/oauth/client/credentials_spec.rb +0 -90
  193. data/spec/lib/oauth/client_credentials/creator_spec.rb +0 -97
  194. data/spec/lib/oauth/client_credentials/issuer_spec.rb +0 -112
  195. data/spec/lib/oauth/client_credentials/validation_spec.rb +0 -59
  196. data/spec/lib/oauth/client_credentials_integration_spec.rb +0 -29
  197. data/spec/lib/oauth/client_credentials_request_spec.rb +0 -109
  198. data/spec/lib/oauth/client_spec.rb +0 -38
  199. data/spec/lib/oauth/code_request_spec.rb +0 -46
  200. data/spec/lib/oauth/code_response_spec.rb +0 -36
  201. data/spec/lib/oauth/error_response_spec.rb +0 -66
  202. data/spec/lib/oauth/error_spec.rb +0 -23
  203. data/spec/lib/oauth/forbidden_token_response_spec.rb +0 -22
  204. data/spec/lib/oauth/helpers/scope_checker_spec.rb +0 -98
  205. data/spec/lib/oauth/helpers/unique_token_spec.rb +0 -21
  206. data/spec/lib/oauth/helpers/uri_checker_spec.rb +0 -262
  207. data/spec/lib/oauth/invalid_request_response_spec.rb +0 -75
  208. data/spec/lib/oauth/invalid_token_response_spec.rb +0 -55
  209. data/spec/lib/oauth/password_access_token_request_spec.rb +0 -192
  210. data/spec/lib/oauth/pre_authorization_spec.rb +0 -225
  211. data/spec/lib/oauth/refresh_token_request_spec.rb +0 -178
  212. data/spec/lib/oauth/scopes_spec.rb +0 -148
  213. data/spec/lib/oauth/token_request_spec.rb +0 -153
  214. data/spec/lib/oauth/token_response_spec.rb +0 -86
  215. data/spec/lib/oauth/token_spec.rb +0 -158
  216. data/spec/lib/request/strategy_spec.rb +0 -54
  217. data/spec/lib/secret_storing/base_spec.rb +0 -60
  218. data/spec/lib/secret_storing/bcrypt_spec.rb +0 -49
  219. data/spec/lib/secret_storing/plain_spec.rb +0 -44
  220. data/spec/lib/secret_storing/sha256_hash_spec.rb +0 -48
  221. data/spec/lib/server_spec.rb +0 -49
  222. data/spec/lib/stale_records_cleaner_spec.rb +0 -89
  223. data/spec/models/doorkeeper/access_grant_spec.rb +0 -163
  224. data/spec/models/doorkeeper/access_token_spec.rb +0 -622
  225. data/spec/models/doorkeeper/application_spec.rb +0 -377
  226. data/spec/requests/applications/applications_request_spec.rb +0 -259
  227. data/spec/requests/applications/authorized_applications_spec.rb +0 -32
  228. data/spec/requests/endpoints/authorization_spec.rb +0 -89
  229. data/spec/requests/endpoints/token_spec.rb +0 -75
  230. data/spec/requests/flows/authorization_code_errors_spec.rb +0 -79
  231. data/spec/requests/flows/authorization_code_spec.rb +0 -513
  232. data/spec/requests/flows/client_credentials_spec.rb +0 -166
  233. data/spec/requests/flows/implicit_grant_errors_spec.rb +0 -46
  234. data/spec/requests/flows/implicit_grant_spec.rb +0 -91
  235. data/spec/requests/flows/password_spec.rb +0 -296
  236. data/spec/requests/flows/refresh_token_spec.rb +0 -233
  237. data/spec/requests/flows/revoke_token_spec.rb +0 -151
  238. data/spec/requests/flows/skip_authorization_spec.rb +0 -66
  239. data/spec/requests/protected_resources/metal_spec.rb +0 -16
  240. data/spec/requests/protected_resources/private_api_spec.rb +0 -83
  241. data/spec/routing/custom_controller_routes_spec.rb +0 -133
  242. data/spec/routing/default_routes_spec.rb +0 -41
  243. data/spec/routing/scoped_routes_spec.rb +0 -47
  244. data/spec/spec_helper.rb +0 -57
  245. data/spec/spec_helper_integration.rb +0 -4
  246. data/spec/support/dependencies/factory_bot.rb +0 -4
  247. data/spec/support/doorkeeper_rspec.rb +0 -22
  248. data/spec/support/helpers/access_token_request_helper.rb +0 -13
  249. data/spec/support/helpers/authorization_request_helper.rb +0 -43
  250. data/spec/support/helpers/config_helper.rb +0 -11
  251. data/spec/support/helpers/model_helper.rb +0 -78
  252. data/spec/support/helpers/request_spec_helper.rb +0 -110
  253. data/spec/support/helpers/url_helper.rb +0 -62
  254. data/spec/support/http_method_shim.rb +0 -29
  255. data/spec/support/orm/active_record.rb +0 -5
  256. data/spec/support/shared/controllers_shared_context.rb +0 -123
  257. data/spec/support/shared/hashing_shared_context.rb +0 -36
  258. data/spec/support/shared/models_shared_examples.rb +0 -54
  259. data/spec/validators/redirect_uri_validator_spec.rb +0 -183
  260. 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.2.2
4
+ version: 5.5.4
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-11-10 00:00:00.000000000 Z
14
+ date: 2021-10-05 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,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
@@ -205,25 +194,25 @@ files:
205
194
  - app/views/doorkeeper/applications/new.html.erb
206
195
  - app/views/doorkeeper/applications/show.html.erb
207
196
  - app/views/doorkeeper/authorizations/error.html.erb
197
+ - app/views/doorkeeper/authorizations/form_post.html.erb
208
198
  - app/views/doorkeeper/authorizations/new.html.erb
209
199
  - app/views/doorkeeper/authorizations/show.html.erb
210
200
  - app/views/doorkeeper/authorized_applications/_delete_form.html.erb
211
201
  - app/views/doorkeeper/authorized_applications/index.html.erb
212
202
  - app/views/layouts/doorkeeper/admin.html.erb
213
203
  - app/views/layouts/doorkeeper/application.html.erb
214
- - bin/console
215
204
  - 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
205
  - lib/doorkeeper.rb
223
206
  - lib/doorkeeper/config.rb
207
+ - lib/doorkeeper/config/abstract_builder.rb
224
208
  - lib/doorkeeper/config/option.rb
209
+ - lib/doorkeeper/config/validations.rb
225
210
  - lib/doorkeeper/engine.rb
226
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
227
216
  - lib/doorkeeper/grape/authorization_decorator.rb
228
217
  - lib/doorkeeper/grape/helpers.rb
229
218
  - lib/doorkeeper/helpers/controller.rb
@@ -234,6 +223,7 @@ files:
234
223
  - lib/doorkeeper/models/concerns/expirable.rb
235
224
  - lib/doorkeeper/models/concerns/orderable.rb
236
225
  - lib/doorkeeper/models/concerns/ownership.rb
226
+ - lib/doorkeeper/models/concerns/resource_ownerable.rb
237
227
  - lib/doorkeeper/models/concerns/reusable.rb
238
228
  - lib/doorkeeper/models/concerns/revocable.rb
239
229
  - lib/doorkeeper/models/concerns/scopes.rb
@@ -250,7 +240,7 @@ files:
250
240
  - lib/doorkeeper/oauth/client/credentials.rb
251
241
  - lib/doorkeeper/oauth/client_credentials/creator.rb
252
242
  - lib/doorkeeper/oauth/client_credentials/issuer.rb
253
- - lib/doorkeeper/oauth/client_credentials/validation.rb
243
+ - lib/doorkeeper/oauth/client_credentials/validator.rb
254
244
  - lib/doorkeeper/oauth/client_credentials_request.rb
255
245
  - lib/doorkeeper/oauth/code_request.rb
256
246
  - lib/doorkeeper/oauth/code_response.rb
@@ -260,6 +250,7 @@ files:
260
250
  - lib/doorkeeper/oauth/helpers/scope_checker.rb
261
251
  - lib/doorkeeper/oauth/helpers/unique_token.rb
262
252
  - lib/doorkeeper/oauth/helpers/uri_checker.rb
253
+ - lib/doorkeeper/oauth/hooks/context.rb
263
254
  - lib/doorkeeper/oauth/invalid_request_response.rb
264
255
  - lib/doorkeeper/oauth/invalid_token_response.rb
265
256
  - lib/doorkeeper/oauth/nonstandard.rb
@@ -275,12 +266,17 @@ files:
275
266
  - lib/doorkeeper/orm/active_record/access_grant.rb
276
267
  - lib/doorkeeper/orm/active_record/access_token.rb
277
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
278
272
  - lib/doorkeeper/orm/active_record/redirect_uri_validator.rb
279
273
  - lib/doorkeeper/orm/active_record/stale_records_cleaner.rb
280
274
  - lib/doorkeeper/rails/helpers.rb
281
275
  - lib/doorkeeper/rails/routes.rb
276
+ - lib/doorkeeper/rails/routes/abstract_router.rb
282
277
  - lib/doorkeeper/rails/routes/mapper.rb
283
278
  - lib/doorkeeper/rails/routes/mapping.rb
279
+ - lib/doorkeeper/rails/routes/registry.rb
284
280
  - lib/doorkeeper/rake.rb
285
281
  - lib/doorkeeper/rake/db.rake
286
282
  - lib/doorkeeper/rake/setup.rake
@@ -302,6 +298,7 @@ files:
302
298
  - lib/doorkeeper/version.rb
303
299
  - lib/generators/doorkeeper/application_owner_generator.rb
304
300
  - lib/generators/doorkeeper/confidential_applications_generator.rb
301
+ - lib/generators/doorkeeper/enable_polymorphic_resource_owner_generator.rb
305
302
  - lib/generators/doorkeeper/install_generator.rb
306
303
  - lib/generators/doorkeeper/migration_generator.rb
307
304
  - lib/generators/doorkeeper/pkce_generator.rb
@@ -311,157 +308,28 @@ files:
311
308
  - lib/generators/doorkeeper/templates/add_owner_to_application_migration.rb.erb
312
309
  - lib/generators/doorkeeper/templates/add_previous_refresh_token_to_access_tokens.rb.erb
313
310
  - lib/generators/doorkeeper/templates/enable_pkce_migration.rb.erb
311
+ - lib/generators/doorkeeper/templates/enable_polymorphic_resource_owner_migration.rb.erb
314
312
  - lib/generators/doorkeeper/templates/initializer.rb
315
313
  - lib/generators/doorkeeper/templates/migration.rb.erb
316
314
  - lib/generators/doorkeeper/views_generator.rb
317
- - spec/controllers/application_metal_controller_spec.rb
318
- - spec/controllers/applications_controller_spec.rb
319
- - spec/controllers/authorizations_controller_spec.rb
320
- - spec/controllers/protected_resources_controller_spec.rb
321
- - spec/controllers/token_info_controller_spec.rb
322
- - spec/controllers/tokens_controller_spec.rb
323
- - spec/dummy/Rakefile
324
- - spec/dummy/app/assets/config/manifest.js
325
- - spec/dummy/app/controllers/application_controller.rb
326
- - spec/dummy/app/controllers/custom_authorizations_controller.rb
327
- - spec/dummy/app/controllers/full_protected_resources_controller.rb
328
- - spec/dummy/app/controllers/home_controller.rb
329
- - spec/dummy/app/controllers/metal_controller.rb
330
- - spec/dummy/app/controllers/semi_protected_resources_controller.rb
331
- - spec/dummy/app/helpers/application_helper.rb
332
- - spec/dummy/app/models/user.rb
333
- - spec/dummy/app/views/home/index.html.erb
334
- - spec/dummy/app/views/layouts/application.html.erb
335
- - spec/dummy/config.ru
336
- - spec/dummy/config/application.rb
337
- - spec/dummy/config/boot.rb
338
- - spec/dummy/config/database.yml
339
- - spec/dummy/config/environment.rb
340
- - spec/dummy/config/environments/development.rb
341
- - spec/dummy/config/environments/production.rb
342
- - spec/dummy/config/environments/test.rb
343
- - spec/dummy/config/initializers/backtrace_silencers.rb
344
- - spec/dummy/config/initializers/doorkeeper.rb
345
- - spec/dummy/config/initializers/secret_token.rb
346
- - spec/dummy/config/initializers/session_store.rb
347
- - spec/dummy/config/initializers/wrap_parameters.rb
348
- - spec/dummy/config/locales/doorkeeper.en.yml
349
- - spec/dummy/config/routes.rb
350
- - spec/dummy/db/migrate/20111122132257_create_users.rb
351
- - spec/dummy/db/migrate/20120312140401_add_password_to_users.rb
352
- - spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb
353
- - spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
354
- - spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb
355
- - spec/dummy/db/migrate/20170822064514_enable_pkce.rb
356
- - spec/dummy/db/migrate/20180210183654_add_confidential_to_applications.rb
357
- - spec/dummy/db/schema.rb
358
- - spec/dummy/public/404.html
359
- - spec/dummy/public/422.html
360
- - spec/dummy/public/500.html
361
- - spec/dummy/public/favicon.ico
362
- - spec/dummy/script/rails
363
- - spec/factories.rb
364
- - spec/generators/application_owner_generator_spec.rb
365
- - spec/generators/confidential_applications_generator_spec.rb
366
- - spec/generators/install_generator_spec.rb
367
- - spec/generators/migration_generator_spec.rb
368
- - spec/generators/pkce_generator_spec.rb
369
- - spec/generators/previous_refresh_token_generator_spec.rb
370
- - spec/generators/templates/routes.rb
371
- - spec/generators/views_generator_spec.rb
372
- - spec/grape/grape_integration_spec.rb
373
- - spec/helpers/doorkeeper/dashboard_helper_spec.rb
374
- - spec/lib/config_spec.rb
375
- - spec/lib/doorkeeper_spec.rb
376
- - spec/lib/models/expirable_spec.rb
377
- - spec/lib/models/reusable_spec.rb
378
- - spec/lib/models/revocable_spec.rb
379
- - spec/lib/models/scopes_spec.rb
380
- - spec/lib/models/secret_storable_spec.rb
381
- - spec/lib/oauth/authorization/uri_builder_spec.rb
382
- - spec/lib/oauth/authorization_code_request_spec.rb
383
- - spec/lib/oauth/base_request_spec.rb
384
- - spec/lib/oauth/base_response_spec.rb
385
- - spec/lib/oauth/client/credentials_spec.rb
386
- - spec/lib/oauth/client_credentials/creator_spec.rb
387
- - spec/lib/oauth/client_credentials/issuer_spec.rb
388
- - spec/lib/oauth/client_credentials/validation_spec.rb
389
- - spec/lib/oauth/client_credentials_integration_spec.rb
390
- - spec/lib/oauth/client_credentials_request_spec.rb
391
- - spec/lib/oauth/client_spec.rb
392
- - spec/lib/oauth/code_request_spec.rb
393
- - spec/lib/oauth/code_response_spec.rb
394
- - spec/lib/oauth/error_response_spec.rb
395
- - spec/lib/oauth/error_spec.rb
396
- - spec/lib/oauth/forbidden_token_response_spec.rb
397
- - spec/lib/oauth/helpers/scope_checker_spec.rb
398
- - spec/lib/oauth/helpers/unique_token_spec.rb
399
- - spec/lib/oauth/helpers/uri_checker_spec.rb
400
- - spec/lib/oauth/invalid_request_response_spec.rb
401
- - spec/lib/oauth/invalid_token_response_spec.rb
402
- - spec/lib/oauth/password_access_token_request_spec.rb
403
- - spec/lib/oauth/pre_authorization_spec.rb
404
- - spec/lib/oauth/refresh_token_request_spec.rb
405
- - spec/lib/oauth/scopes_spec.rb
406
- - spec/lib/oauth/token_request_spec.rb
407
- - spec/lib/oauth/token_response_spec.rb
408
- - spec/lib/oauth/token_spec.rb
409
- - spec/lib/request/strategy_spec.rb
410
- - spec/lib/secret_storing/base_spec.rb
411
- - spec/lib/secret_storing/bcrypt_spec.rb
412
- - spec/lib/secret_storing/plain_spec.rb
413
- - spec/lib/secret_storing/sha256_hash_spec.rb
414
- - spec/lib/server_spec.rb
415
- - spec/lib/stale_records_cleaner_spec.rb
416
- - spec/models/doorkeeper/access_grant_spec.rb
417
- - spec/models/doorkeeper/access_token_spec.rb
418
- - spec/models/doorkeeper/application_spec.rb
419
- - spec/requests/applications/applications_request_spec.rb
420
- - spec/requests/applications/authorized_applications_spec.rb
421
- - spec/requests/endpoints/authorization_spec.rb
422
- - spec/requests/endpoints/token_spec.rb
423
- - spec/requests/flows/authorization_code_errors_spec.rb
424
- - spec/requests/flows/authorization_code_spec.rb
425
- - spec/requests/flows/client_credentials_spec.rb
426
- - spec/requests/flows/implicit_grant_errors_spec.rb
427
- - spec/requests/flows/implicit_grant_spec.rb
428
- - spec/requests/flows/password_spec.rb
429
- - spec/requests/flows/refresh_token_spec.rb
430
- - spec/requests/flows/revoke_token_spec.rb
431
- - spec/requests/flows/skip_authorization_spec.rb
432
- - spec/requests/protected_resources/metal_spec.rb
433
- - spec/requests/protected_resources/private_api_spec.rb
434
- - spec/routing/custom_controller_routes_spec.rb
435
- - spec/routing/default_routes_spec.rb
436
- - spec/routing/scoped_routes_spec.rb
437
- - spec/spec_helper.rb
438
- - spec/spec_helper_integration.rb
439
- - spec/support/dependencies/factory_bot.rb
440
- - spec/support/doorkeeper_rspec.rb
441
- - spec/support/helpers/access_token_request_helper.rb
442
- - spec/support/helpers/authorization_request_helper.rb
443
- - spec/support/helpers/config_helper.rb
444
- - spec/support/helpers/model_helper.rb
445
- - spec/support/helpers/request_spec_helper.rb
446
- - spec/support/helpers/url_helper.rb
447
- - spec/support/http_method_shim.rb
448
- - spec/support/orm/active_record.rb
449
- - spec/support/shared/controllers_shared_context.rb
450
- - spec/support/shared/hashing_shared_context.rb
451
- - spec/support/shared/models_shared_examples.rb
452
- - spec/validators/redirect_uri_validator_spec.rb
453
- - spec/version/version_spec.rb
454
315
  - vendor/assets/stylesheets/doorkeeper/bootstrap.min.css
455
316
  homepage: https://github.com/doorkeeper-gem/doorkeeper
456
317
  licenses:
457
318
  - MIT
458
319
  metadata:
459
320
  homepage_uri: https://github.com/doorkeeper-gem/doorkeeper
460
- changelog_uri: https://github.com/doorkeeper-gem/doorkeeper/blob/master/CHANGELOG.md
321
+ changelog_uri: https://github.com/doorkeeper-gem/doorkeeper/blob/main/CHANGELOG.md
461
322
  source_code_uri: https://github.com/doorkeeper-gem/doorkeeper
462
323
  bug_tracker_uri: https://github.com/doorkeeper-gem/doorkeeper/issues
463
324
  documentation_uri: https://doorkeeper.gitbook.io/guides/
464
- post_install_message:
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."
465
333
  rdoc_options: []
466
334
  require_paths:
467
335
  - lib
@@ -469,152 +337,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
469
337
  requirements:
470
338
  - - ">="
471
339
  - !ruby/object:Gem::Version
472
- version: '2.4'
340
+ version: '2.5'
473
341
  required_rubygems_version: !ruby/object:Gem::Requirement
474
342
  requirements:
475
343
  - - ">="
476
344
  - !ruby/object:Gem::Version
477
345
  version: '0'
478
346
  requirements: []
479
- rubygems_version: 3.0.2
347
+ rubygems_version: 3.1.2
480
348
  signing_key:
481
349
  specification_version: 4
482
350
  summary: OAuth 2 provider for Rails and Grape
483
- test_files:
484
- - spec/controllers/application_metal_controller_spec.rb
485
- - spec/controllers/applications_controller_spec.rb
486
- - spec/controllers/authorizations_controller_spec.rb
487
- - spec/controllers/protected_resources_controller_spec.rb
488
- - spec/controllers/token_info_controller_spec.rb
489
- - spec/controllers/tokens_controller_spec.rb
490
- - spec/dummy/Rakefile
491
- - spec/dummy/app/assets/config/manifest.js
492
- - spec/dummy/app/controllers/application_controller.rb
493
- - spec/dummy/app/controllers/custom_authorizations_controller.rb
494
- - spec/dummy/app/controllers/full_protected_resources_controller.rb
495
- - spec/dummy/app/controllers/home_controller.rb
496
- - spec/dummy/app/controllers/metal_controller.rb
497
- - spec/dummy/app/controllers/semi_protected_resources_controller.rb
498
- - spec/dummy/app/helpers/application_helper.rb
499
- - spec/dummy/app/models/user.rb
500
- - spec/dummy/app/views/home/index.html.erb
501
- - spec/dummy/app/views/layouts/application.html.erb
502
- - spec/dummy/config.ru
503
- - spec/dummy/config/application.rb
504
- - spec/dummy/config/boot.rb
505
- - spec/dummy/config/database.yml
506
- - spec/dummy/config/environment.rb
507
- - spec/dummy/config/environments/development.rb
508
- - spec/dummy/config/environments/production.rb
509
- - spec/dummy/config/environments/test.rb
510
- - spec/dummy/config/initializers/backtrace_silencers.rb
511
- - spec/dummy/config/initializers/doorkeeper.rb
512
- - spec/dummy/config/initializers/secret_token.rb
513
- - spec/dummy/config/initializers/session_store.rb
514
- - spec/dummy/config/initializers/wrap_parameters.rb
515
- - spec/dummy/config/locales/doorkeeper.en.yml
516
- - spec/dummy/config/routes.rb
517
- - spec/dummy/db/migrate/20111122132257_create_users.rb
518
- - spec/dummy/db/migrate/20120312140401_add_password_to_users.rb
519
- - spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb
520
- - spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
521
- - spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb
522
- - spec/dummy/db/migrate/20170822064514_enable_pkce.rb
523
- - spec/dummy/db/migrate/20180210183654_add_confidential_to_applications.rb
524
- - spec/dummy/db/schema.rb
525
- - spec/dummy/public/404.html
526
- - spec/dummy/public/422.html
527
- - spec/dummy/public/500.html
528
- - spec/dummy/public/favicon.ico
529
- - spec/dummy/script/rails
530
- - spec/factories.rb
531
- - spec/generators/application_owner_generator_spec.rb
532
- - spec/generators/confidential_applications_generator_spec.rb
533
- - spec/generators/install_generator_spec.rb
534
- - spec/generators/migration_generator_spec.rb
535
- - spec/generators/pkce_generator_spec.rb
536
- - spec/generators/previous_refresh_token_generator_spec.rb
537
- - spec/generators/templates/routes.rb
538
- - spec/generators/views_generator_spec.rb
539
- - spec/grape/grape_integration_spec.rb
540
- - spec/helpers/doorkeeper/dashboard_helper_spec.rb
541
- - spec/lib/config_spec.rb
542
- - spec/lib/doorkeeper_spec.rb
543
- - spec/lib/models/expirable_spec.rb
544
- - spec/lib/models/reusable_spec.rb
545
- - spec/lib/models/revocable_spec.rb
546
- - spec/lib/models/scopes_spec.rb
547
- - spec/lib/models/secret_storable_spec.rb
548
- - spec/lib/oauth/authorization/uri_builder_spec.rb
549
- - spec/lib/oauth/authorization_code_request_spec.rb
550
- - spec/lib/oauth/base_request_spec.rb
551
- - spec/lib/oauth/base_response_spec.rb
552
- - spec/lib/oauth/client/credentials_spec.rb
553
- - spec/lib/oauth/client_credentials/creator_spec.rb
554
- - spec/lib/oauth/client_credentials/issuer_spec.rb
555
- - spec/lib/oauth/client_credentials/validation_spec.rb
556
- - spec/lib/oauth/client_credentials_integration_spec.rb
557
- - spec/lib/oauth/client_credentials_request_spec.rb
558
- - spec/lib/oauth/client_spec.rb
559
- - spec/lib/oauth/code_request_spec.rb
560
- - spec/lib/oauth/code_response_spec.rb
561
- - spec/lib/oauth/error_response_spec.rb
562
- - spec/lib/oauth/error_spec.rb
563
- - spec/lib/oauth/forbidden_token_response_spec.rb
564
- - spec/lib/oauth/helpers/scope_checker_spec.rb
565
- - spec/lib/oauth/helpers/unique_token_spec.rb
566
- - spec/lib/oauth/helpers/uri_checker_spec.rb
567
- - spec/lib/oauth/invalid_request_response_spec.rb
568
- - spec/lib/oauth/invalid_token_response_spec.rb
569
- - spec/lib/oauth/password_access_token_request_spec.rb
570
- - spec/lib/oauth/pre_authorization_spec.rb
571
- - spec/lib/oauth/refresh_token_request_spec.rb
572
- - spec/lib/oauth/scopes_spec.rb
573
- - spec/lib/oauth/token_request_spec.rb
574
- - spec/lib/oauth/token_response_spec.rb
575
- - spec/lib/oauth/token_spec.rb
576
- - spec/lib/request/strategy_spec.rb
577
- - spec/lib/secret_storing/base_spec.rb
578
- - spec/lib/secret_storing/bcrypt_spec.rb
579
- - spec/lib/secret_storing/plain_spec.rb
580
- - spec/lib/secret_storing/sha256_hash_spec.rb
581
- - spec/lib/server_spec.rb
582
- - spec/lib/stale_records_cleaner_spec.rb
583
- - spec/models/doorkeeper/access_grant_spec.rb
584
- - spec/models/doorkeeper/access_token_spec.rb
585
- - spec/models/doorkeeper/application_spec.rb
586
- - spec/requests/applications/applications_request_spec.rb
587
- - spec/requests/applications/authorized_applications_spec.rb
588
- - spec/requests/endpoints/authorization_spec.rb
589
- - spec/requests/endpoints/token_spec.rb
590
- - spec/requests/flows/authorization_code_errors_spec.rb
591
- - spec/requests/flows/authorization_code_spec.rb
592
- - spec/requests/flows/client_credentials_spec.rb
593
- - spec/requests/flows/implicit_grant_errors_spec.rb
594
- - spec/requests/flows/implicit_grant_spec.rb
595
- - spec/requests/flows/password_spec.rb
596
- - spec/requests/flows/refresh_token_spec.rb
597
- - spec/requests/flows/revoke_token_spec.rb
598
- - spec/requests/flows/skip_authorization_spec.rb
599
- - spec/requests/protected_resources/metal_spec.rb
600
- - spec/requests/protected_resources/private_api_spec.rb
601
- - spec/routing/custom_controller_routes_spec.rb
602
- - spec/routing/default_routes_spec.rb
603
- - spec/routing/scoped_routes_spec.rb
604
- - spec/spec_helper.rb
605
- - spec/spec_helper_integration.rb
606
- - spec/support/dependencies/factory_bot.rb
607
- - spec/support/doorkeeper_rspec.rb
608
- - spec/support/helpers/access_token_request_helper.rb
609
- - spec/support/helpers/authorization_request_helper.rb
610
- - spec/support/helpers/config_helper.rb
611
- - spec/support/helpers/model_helper.rb
612
- - spec/support/helpers/request_spec_helper.rb
613
- - spec/support/helpers/url_helper.rb
614
- - spec/support/http_method_shim.rb
615
- - spec/support/orm/active_record.rb
616
- - spec/support/shared/controllers_shared_context.rb
617
- - spec/support/shared/hashing_shared_context.rb
618
- - spec/support/shared/models_shared_examples.rb
619
- - spec/validators/redirect_uri_validator_spec.rb
620
- - spec/version/version_spec.rb
351
+ 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-dev"
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-dev"
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!