doorkeeper 4.4.0 → 5.6.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (284) hide show
  1. checksums.yaml +5 -5
  2. data/{NEWS.md → CHANGELOG.md} +471 -16
  3. data/README.md +108 -403
  4. data/app/assets/stylesheets/doorkeeper/admin/application.css +2 -2
  5. data/app/controllers/doorkeeper/application_controller.rb +8 -5
  6. data/app/controllers/doorkeeper/application_metal_controller.rb +7 -11
  7. data/app/controllers/doorkeeper/applications_controller.rb +62 -27
  8. data/app/controllers/doorkeeper/authorizations_controller.rb +112 -18
  9. data/app/controllers/doorkeeper/authorized_applications_controller.rb +22 -3
  10. data/app/controllers/doorkeeper/token_info_controller.rb +16 -4
  11. data/app/controllers/doorkeeper/tokens_controller.rb +104 -35
  12. data/app/helpers/doorkeeper/dashboard_helper.rb +9 -7
  13. data/app/views/doorkeeper/applications/_delete_form.html.erb +3 -1
  14. data/app/views/doorkeeper/applications/_form.html.erb +27 -26
  15. data/app/views/doorkeeper/applications/edit.html.erb +1 -1
  16. data/app/views/doorkeeper/applications/index.html.erb +17 -7
  17. data/app/views/doorkeeper/applications/new.html.erb +1 -1
  18. data/app/views/doorkeeper/applications/show.html.erb +38 -17
  19. data/app/views/doorkeeper/authorizations/error.html.erb +4 -2
  20. data/app/views/doorkeeper/authorizations/form_post.html.erb +15 -0
  21. data/app/views/doorkeeper/authorizations/new.html.erb +16 -10
  22. data/app/views/layouts/doorkeeper/admin.html.erb +16 -14
  23. data/config/locales/en.yml +28 -5
  24. data/lib/doorkeeper/config/abstract_builder.rb +28 -0
  25. data/lib/doorkeeper/config/option.rb +82 -0
  26. data/lib/doorkeeper/config/validations.rb +53 -0
  27. data/lib/doorkeeper/config.rb +477 -142
  28. data/lib/doorkeeper/engine.rb +17 -4
  29. data/lib/doorkeeper/errors.rb +25 -16
  30. data/lib/doorkeeper/grant_flow/fallback_flow.rb +15 -0
  31. data/lib/doorkeeper/grant_flow/flow.rb +44 -0
  32. data/lib/doorkeeper/grant_flow/registry.rb +50 -0
  33. data/lib/doorkeeper/grant_flow.rb +45 -0
  34. data/lib/doorkeeper/grape/authorization_decorator.rb +6 -4
  35. data/lib/doorkeeper/grape/helpers.rb +13 -7
  36. data/lib/doorkeeper/helpers/controller.rb +43 -10
  37. data/lib/doorkeeper/models/access_grant_mixin.rb +97 -3
  38. data/lib/doorkeeper/models/access_token_mixin.rb +273 -67
  39. data/lib/doorkeeper/models/application_mixin.rb +50 -5
  40. data/lib/doorkeeper/models/concerns/accessible.rb +2 -0
  41. data/lib/doorkeeper/models/concerns/expirable.rb +7 -3
  42. data/lib/doorkeeper/models/concerns/expiration_time_sql_math.rb +88 -0
  43. data/lib/doorkeeper/models/concerns/orderable.rb +2 -0
  44. data/lib/doorkeeper/models/concerns/ownership.rb +4 -7
  45. data/lib/doorkeeper/models/concerns/polymorphic_resource_owner.rb +30 -0
  46. data/lib/doorkeeper/models/concerns/resource_ownerable.rb +47 -0
  47. data/lib/doorkeeper/models/concerns/reusable.rb +19 -0
  48. data/lib/doorkeeper/models/concerns/revocable.rb +3 -27
  49. data/lib/doorkeeper/models/concerns/scopes.rb +12 -2
  50. data/lib/doorkeeper/models/concerns/secret_storable.rb +106 -0
  51. data/lib/doorkeeper/oauth/authorization/code.rb +54 -12
  52. data/lib/doorkeeper/oauth/authorization/context.rb +17 -0
  53. data/lib/doorkeeper/oauth/authorization/token.rb +64 -24
  54. data/lib/doorkeeper/oauth/authorization/uri_builder.rb +7 -5
  55. data/lib/doorkeeper/oauth/authorization_code_request.rb +69 -11
  56. data/lib/doorkeeper/oauth/base_request.rb +36 -24
  57. data/lib/doorkeeper/oauth/base_response.rb +2 -0
  58. data/lib/doorkeeper/oauth/client/credentials.rb +5 -5
  59. data/lib/doorkeeper/oauth/client.rb +10 -11
  60. data/lib/doorkeeper/oauth/client_credentials/creator.rb +44 -4
  61. data/lib/doorkeeper/oauth/client_credentials/issuer.rb +16 -9
  62. data/lib/doorkeeper/oauth/client_credentials/validator.rb +55 -0
  63. data/lib/doorkeeper/oauth/client_credentials_request.rb +10 -11
  64. data/lib/doorkeeper/oauth/code_request.rb +8 -12
  65. data/lib/doorkeeper/oauth/code_response.rb +27 -15
  66. data/lib/doorkeeper/oauth/error.rb +3 -1
  67. data/lib/doorkeeper/oauth/error_response.rb +34 -14
  68. data/lib/doorkeeper/oauth/forbidden_token_response.rb +11 -3
  69. data/lib/doorkeeper/oauth/helpers/scope_checker.rb +23 -18
  70. data/lib/doorkeeper/oauth/helpers/unique_token.rb +20 -3
  71. data/lib/doorkeeper/oauth/helpers/uri_checker.rb +42 -6
  72. data/lib/doorkeeper/oauth/hooks/context.rb +21 -0
  73. data/lib/doorkeeper/oauth/invalid_request_response.rb +43 -0
  74. data/lib/doorkeeper/oauth/invalid_token_response.rb +29 -4
  75. data/lib/doorkeeper/oauth/nonstandard.rb +39 -0
  76. data/lib/doorkeeper/oauth/password_access_token_request.rb +43 -10
  77. data/lib/doorkeeper/oauth/pre_authorization.rb +136 -26
  78. data/lib/doorkeeper/oauth/refresh_token_request.rb +67 -31
  79. data/lib/doorkeeper/oauth/scopes.rb +8 -4
  80. data/lib/doorkeeper/oauth/token.rb +12 -8
  81. data/lib/doorkeeper/oauth/token_introspection.rb +99 -25
  82. data/lib/doorkeeper/oauth/token_request.rb +8 -20
  83. data/lib/doorkeeper/oauth/token_response.rb +13 -10
  84. data/lib/doorkeeper/oauth.rb +13 -0
  85. data/lib/doorkeeper/orm/active_record/access_grant.rb +5 -30
  86. data/lib/doorkeeper/orm/active_record/access_token.rb +5 -43
  87. data/lib/doorkeeper/orm/active_record/application.rb +6 -57
  88. data/lib/doorkeeper/orm/active_record/mixins/access_grant.rb +63 -0
  89. data/lib/doorkeeper/orm/active_record/mixins/access_token.rb +77 -0
  90. data/lib/doorkeeper/orm/active_record/mixins/application.rb +210 -0
  91. data/lib/doorkeeper/orm/active_record/redirect_uri_validator.rb +66 -0
  92. data/lib/doorkeeper/orm/active_record/stale_records_cleaner.rb +36 -0
  93. data/lib/doorkeeper/orm/active_record.rb +31 -20
  94. data/lib/doorkeeper/rails/helpers.rb +10 -8
  95. data/lib/doorkeeper/rails/routes/abstract_router.rb +35 -0
  96. data/lib/doorkeeper/rails/routes/mapper.rb +4 -2
  97. data/lib/doorkeeper/rails/routes/mapping.rb +9 -7
  98. data/lib/doorkeeper/rails/routes/registry.rb +45 -0
  99. data/lib/doorkeeper/rails/routes.rb +45 -25
  100. data/lib/doorkeeper/rake/db.rake +40 -0
  101. data/lib/doorkeeper/rake/setup.rake +6 -0
  102. data/lib/doorkeeper/rake.rb +14 -0
  103. data/lib/doorkeeper/request/authorization_code.rb +6 -4
  104. data/lib/doorkeeper/request/client_credentials.rb +3 -3
  105. data/lib/doorkeeper/request/code.rb +1 -1
  106. data/lib/doorkeeper/request/password.rb +4 -3
  107. data/lib/doorkeeper/request/refresh_token.rb +6 -5
  108. data/lib/doorkeeper/request/strategy.rb +4 -2
  109. data/lib/doorkeeper/request/token.rb +1 -1
  110. data/lib/doorkeeper/request.rb +61 -34
  111. data/lib/doorkeeper/secret_storing/base.rb +64 -0
  112. data/lib/doorkeeper/secret_storing/bcrypt.rb +60 -0
  113. data/lib/doorkeeper/secret_storing/plain.rb +33 -0
  114. data/lib/doorkeeper/secret_storing/sha256_hash.rb +26 -0
  115. data/lib/doorkeeper/server.rb +9 -11
  116. data/lib/doorkeeper/stale_records_cleaner.rb +24 -0
  117. data/lib/doorkeeper/validations.rb +2 -0
  118. data/lib/doorkeeper/version.rb +7 -29
  119. data/lib/doorkeeper.rb +180 -65
  120. data/lib/generators/doorkeeper/application_owner_generator.rb +24 -18
  121. data/lib/generators/doorkeeper/confidential_applications_generator.rb +33 -0
  122. data/lib/generators/doorkeeper/enable_polymorphic_resource_owner_generator.rb +39 -0
  123. data/lib/generators/doorkeeper/install_generator.rb +19 -9
  124. data/lib/generators/doorkeeper/migration_generator.rb +23 -18
  125. data/lib/generators/doorkeeper/pkce_generator.rb +33 -0
  126. data/lib/generators/doorkeeper/previous_refresh_token_generator.rb +28 -22
  127. data/{spec/dummy/db/migrate/20180210183654_add_confidential_to_application.rb → lib/generators/doorkeeper/templates/add_confidential_to_applications.rb.erb} +2 -2
  128. data/lib/generators/doorkeeper/templates/add_owner_to_application_migration.rb.erb +3 -1
  129. data/lib/generators/doorkeeper/templates/add_previous_refresh_token_to_access_tokens.rb.erb +2 -0
  130. data/lib/generators/doorkeeper/templates/enable_pkce_migration.rb.erb +8 -0
  131. data/lib/generators/doorkeeper/templates/enable_polymorphic_resource_owner_migration.rb.erb +17 -0
  132. data/lib/generators/doorkeeper/templates/initializer.rb +402 -32
  133. data/lib/generators/doorkeeper/templates/migration.rb.erb +47 -18
  134. data/lib/generators/doorkeeper/views_generator.rb +8 -4
  135. data/vendor/assets/stylesheets/doorkeeper/bootstrap.min.css +4 -5
  136. metadata +97 -309
  137. data/.coveralls.yml +0 -1
  138. data/.github/ISSUE_TEMPLATE.md +0 -25
  139. data/.github/PULL_REQUEST_TEMPLATE.md +0 -17
  140. data/.gitignore +0 -19
  141. data/.hound.yml +0 -2
  142. data/.rspec +0 -1
  143. data/.rubocop.yml +0 -17
  144. data/.travis.yml +0 -38
  145. data/Appraisals +0 -18
  146. data/CODE_OF_CONDUCT.md +0 -46
  147. data/CONTRIBUTING.md +0 -47
  148. data/Gemfile +0 -10
  149. data/RELEASING.md +0 -10
  150. data/Rakefile +0 -20
  151. data/SECURITY.md +0 -15
  152. data/app/validators/redirect_uri_validator.rb +0 -44
  153. data/doorkeeper.gemspec +0 -32
  154. data/gemfiles/rails_4_2.gemfile +0 -13
  155. data/gemfiles/rails_5_0.gemfile +0 -12
  156. data/gemfiles/rails_5_1.gemfile +0 -12
  157. data/gemfiles/rails_5_2.gemfile +0 -12
  158. data/gemfiles/rails_master.gemfile +0 -14
  159. data/lib/doorkeeper/oauth/client_credentials/validation.rb +0 -45
  160. data/lib/generators/doorkeeper/add_client_confidentiality_generator.rb +0 -31
  161. data/lib/generators/doorkeeper/templates/add_confidential_to_application_migration.rb.erb +0 -11
  162. data/spec/controllers/application_metal_controller.rb +0 -10
  163. data/spec/controllers/applications_controller_spec.rb +0 -69
  164. data/spec/controllers/authorizations_controller_spec.rb +0 -218
  165. data/spec/controllers/protected_resources_controller_spec.rb +0 -309
  166. data/spec/controllers/token_info_controller_spec.rb +0 -56
  167. data/spec/controllers/tokens_controller_spec.rb +0 -274
  168. data/spec/dummy/Rakefile +0 -7
  169. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  170. data/spec/dummy/app/controllers/custom_authorizations_controller.rb +0 -7
  171. data/spec/dummy/app/controllers/full_protected_resources_controller.rb +0 -12
  172. data/spec/dummy/app/controllers/home_controller.rb +0 -17
  173. data/spec/dummy/app/controllers/metal_controller.rb +0 -11
  174. data/spec/dummy/app/controllers/semi_protected_resources_controller.rb +0 -11
  175. data/spec/dummy/app/helpers/application_helper.rb +0 -5
  176. data/spec/dummy/app/models/user.rb +0 -5
  177. data/spec/dummy/app/views/home/index.html.erb +0 -0
  178. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  179. data/spec/dummy/config/application.rb +0 -23
  180. data/spec/dummy/config/boot.rb +0 -9
  181. data/spec/dummy/config/database.yml +0 -15
  182. data/spec/dummy/config/environment.rb +0 -5
  183. data/spec/dummy/config/environments/development.rb +0 -29
  184. data/spec/dummy/config/environments/production.rb +0 -62
  185. data/spec/dummy/config/environments/test.rb +0 -44
  186. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  187. data/spec/dummy/config/initializers/doorkeeper.rb +0 -107
  188. data/spec/dummy/config/initializers/new_framework_defaults.rb +0 -6
  189. data/spec/dummy/config/initializers/secret_token.rb +0 -8
  190. data/spec/dummy/config/initializers/session_store.rb +0 -8
  191. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  192. data/spec/dummy/config/locales/doorkeeper.en.yml +0 -5
  193. data/spec/dummy/config/routes.rb +0 -52
  194. data/spec/dummy/config.ru +0 -4
  195. data/spec/dummy/db/migrate/20111122132257_create_users.rb +0 -11
  196. data/spec/dummy/db/migrate/20120312140401_add_password_to_users.rb +0 -7
  197. data/spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb +0 -62
  198. data/spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb +0 -9
  199. data/spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb +0 -13
  200. data/spec/dummy/db/schema.rb +0 -68
  201. data/spec/dummy/public/404.html +0 -26
  202. data/spec/dummy/public/422.html +0 -26
  203. data/spec/dummy/public/500.html +0 -26
  204. data/spec/dummy/public/favicon.ico +0 -0
  205. data/spec/dummy/script/rails +0 -6
  206. data/spec/factories.rb +0 -28
  207. data/spec/generators/application_owner_generator_spec.rb +0 -41
  208. data/spec/generators/install_generator_spec.rb +0 -31
  209. data/spec/generators/migration_generator_spec.rb +0 -41
  210. data/spec/generators/previous_refresh_token_generator_spec.rb +0 -57
  211. data/spec/generators/templates/routes.rb +0 -3
  212. data/spec/generators/views_generator_spec.rb +0 -27
  213. data/spec/grape/grape_integration_spec.rb +0 -135
  214. data/spec/helpers/doorkeeper/dashboard_helper_spec.rb +0 -24
  215. data/spec/lib/config_spec.rb +0 -437
  216. data/spec/lib/doorkeeper_spec.rb +0 -150
  217. data/spec/lib/models/expirable_spec.rb +0 -50
  218. data/spec/lib/models/revocable_spec.rb +0 -59
  219. data/spec/lib/models/scopes_spec.rb +0 -43
  220. data/spec/lib/oauth/authorization/uri_builder_spec.rb +0 -41
  221. data/spec/lib/oauth/authorization_code_request_spec.rb +0 -108
  222. data/spec/lib/oauth/base_request_spec.rb +0 -155
  223. data/spec/lib/oauth/base_response_spec.rb +0 -45
  224. data/spec/lib/oauth/client/credentials_spec.rb +0 -90
  225. data/spec/lib/oauth/client_credentials/creator_spec.rb +0 -44
  226. data/spec/lib/oauth/client_credentials/issuer_spec.rb +0 -86
  227. data/spec/lib/oauth/client_credentials/validation_spec.rb +0 -54
  228. data/spec/lib/oauth/client_credentials_integration_spec.rb +0 -27
  229. data/spec/lib/oauth/client_credentials_request_spec.rb +0 -105
  230. data/spec/lib/oauth/client_spec.rb +0 -39
  231. data/spec/lib/oauth/code_request_spec.rb +0 -43
  232. data/spec/lib/oauth/code_response_spec.rb +0 -34
  233. data/spec/lib/oauth/error_response_spec.rb +0 -61
  234. data/spec/lib/oauth/error_spec.rb +0 -23
  235. data/spec/lib/oauth/forbidden_token_response_spec.rb +0 -23
  236. data/spec/lib/oauth/helpers/scope_checker_spec.rb +0 -64
  237. data/spec/lib/oauth/helpers/unique_token_spec.rb +0 -20
  238. data/spec/lib/oauth/helpers/uri_checker_spec.rb +0 -213
  239. data/spec/lib/oauth/invalid_token_response_spec.rb +0 -56
  240. data/spec/lib/oauth/password_access_token_request_spec.rb +0 -96
  241. data/spec/lib/oauth/pre_authorization_spec.rb +0 -155
  242. data/spec/lib/oauth/refresh_token_request_spec.rb +0 -166
  243. data/spec/lib/oauth/scopes_spec.rb +0 -149
  244. data/spec/lib/oauth/token_request_spec.rb +0 -96
  245. data/spec/lib/oauth/token_response_spec.rb +0 -85
  246. data/spec/lib/oauth/token_spec.rb +0 -116
  247. data/spec/lib/request/strategy_spec.rb +0 -53
  248. data/spec/lib/server_spec.rb +0 -59
  249. data/spec/models/doorkeeper/access_grant_spec.rb +0 -36
  250. data/spec/models/doorkeeper/access_token_spec.rb +0 -418
  251. data/spec/models/doorkeeper/application_spec.rb +0 -286
  252. data/spec/requests/applications/applications_request_spec.rb +0 -94
  253. data/spec/requests/applications/authorized_applications_spec.rb +0 -30
  254. data/spec/requests/endpoints/authorization_spec.rb +0 -71
  255. data/spec/requests/endpoints/token_spec.rb +0 -71
  256. data/spec/requests/flows/authorization_code_errors_spec.rb +0 -76
  257. data/spec/requests/flows/authorization_code_spec.rb +0 -149
  258. data/spec/requests/flows/client_credentials_spec.rb +0 -86
  259. data/spec/requests/flows/implicit_grant_errors_spec.rb +0 -32
  260. data/spec/requests/flows/implicit_grant_spec.rb +0 -61
  261. data/spec/requests/flows/password_spec.rb +0 -197
  262. data/spec/requests/flows/refresh_token_spec.rb +0 -174
  263. data/spec/requests/flows/revoke_token_spec.rb +0 -157
  264. data/spec/requests/flows/skip_authorization_spec.rb +0 -59
  265. data/spec/requests/protected_resources/metal_spec.rb +0 -14
  266. data/spec/requests/protected_resources/private_api_spec.rb +0 -81
  267. data/spec/routing/custom_controller_routes_spec.rb +0 -75
  268. data/spec/routing/default_routes_spec.rb +0 -39
  269. data/spec/routing/scoped_routes_spec.rb +0 -31
  270. data/spec/spec_helper.rb +0 -4
  271. data/spec/spec_helper_integration.rb +0 -74
  272. data/spec/support/dependencies/factory_girl.rb +0 -2
  273. data/spec/support/helpers/access_token_request_helper.rb +0 -11
  274. data/spec/support/helpers/authorization_request_helper.rb +0 -41
  275. data/spec/support/helpers/config_helper.rb +0 -9
  276. data/spec/support/helpers/model_helper.rb +0 -72
  277. data/spec/support/helpers/request_spec_helper.rb +0 -88
  278. data/spec/support/helpers/url_helper.rb +0 -56
  279. data/spec/support/http_method_shim.rb +0 -38
  280. data/spec/support/orm/active_record.rb +0 -3
  281. data/spec/support/shared/controllers_shared_context.rb +0 -65
  282. data/spec/support/shared/models_shared_examples.rb +0 -52
  283. data/spec/validators/redirect_uri_validator_spec.rb +0 -123
  284. data/spec/version/version_spec.rb +0 -15
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: 4.4.0
4
+ version: 5.6.6
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: 2018-07-17 00:00:00.000000000 Z
14
+ date: 2023-03-29 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: railties
@@ -19,16 +19,16 @@ dependencies:
19
19
  requirements:
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: '4.2'
22
+ version: '5'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '4.2'
29
+ version: '5'
30
30
  - !ruby/object:Gem::Dependency
31
- name: capybara
31
+ name: appraisal
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
34
  - - ">="
@@ -42,7 +42,7 @@ dependencies:
42
42
  - !ruby/object:Gem::Version
43
43
  version: '0'
44
44
  - !ruby/object:Gem::Dependency
45
- name: coveralls
45
+ name: capybara
46
46
  requirement: !ruby/object:Gem::Requirement
47
47
  requirements:
48
48
  - - ">="
@@ -56,7 +56,7 @@ dependencies:
56
56
  - !ruby/object:Gem::Version
57
57
  version: '0'
58
58
  - !ruby/object:Gem::Dependency
59
- name: grape
59
+ name: coveralls_reborn
60
60
  requirement: !ruby/object:Gem::Requirement
61
61
  requirements:
62
62
  - - ">="
@@ -75,28 +75,28 @@ dependencies:
75
75
  requirements:
76
76
  - - "~>"
77
77
  - !ruby/object:Gem::Version
78
- version: '1.6'
78
+ version: '2.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: '1.6'
85
+ version: '2.0'
86
86
  - !ruby/object:Gem::Dependency
87
87
  name: factory_bot
88
88
  requirement: !ruby/object:Gem::Requirement
89
89
  requirements:
90
90
  - - "~>"
91
91
  - !ruby/object:Gem::Version
92
- version: '4.8'
92
+ version: '6.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: '4.8'
99
+ version: '6.0'
100
100
  - !ruby/object:Gem::Dependency
101
101
  name: generator_spec
102
102
  requirement: !ruby/object:Gem::Requirement
@@ -111,6 +111,20 @@ dependencies:
111
111
  - - "~>"
112
112
  - !ruby/object:Gem::Version
113
113
  version: 0.9.3
114
+ - !ruby/object:Gem::Dependency
115
+ name: grape
116
+ requirement: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ type: :development
122
+ prerelease: false
123
+ version_requirements: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ version: '0'
114
128
  - !ruby/object:Gem::Dependency
115
129
  name: rake
116
130
  requirement: !ruby/object:Gem::Requirement
@@ -139,6 +153,20 @@ dependencies:
139
153
  - - ">="
140
154
  - !ruby/object:Gem::Version
141
155
  version: '0'
156
+ - !ruby/object:Gem::Dependency
157
+ name: timecop
158
+ requirement: !ruby/object:Gem::Requirement
159
+ requirements:
160
+ - - ">="
161
+ - !ruby/object:Gem::Version
162
+ version: '0'
163
+ type: :development
164
+ prerelease: false
165
+ version_requirements: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - ">="
168
+ - !ruby/object:Gem::Version
169
+ version: '0'
142
170
  description: Doorkeeper is an OAuth 2 provider for Rails and Grape.
143
171
  email:
144
172
  - bulaj.nikita@gmail.com
@@ -146,24 +174,9 @@ executables: []
146
174
  extensions: []
147
175
  extra_rdoc_files: []
148
176
  files:
149
- - ".coveralls.yml"
150
- - ".github/ISSUE_TEMPLATE.md"
151
- - ".github/PULL_REQUEST_TEMPLATE.md"
152
- - ".gitignore"
153
- - ".hound.yml"
154
- - ".rspec"
155
- - ".rubocop.yml"
156
- - ".travis.yml"
157
- - Appraisals
158
- - CODE_OF_CONDUCT.md
159
- - CONTRIBUTING.md
160
- - Gemfile
177
+ - CHANGELOG.md
161
178
  - MIT-LICENSE
162
- - NEWS.md
163
179
  - README.md
164
- - RELEASING.md
165
- - Rakefile
166
- - SECURITY.md
167
180
  - app/assets/stylesheets/doorkeeper/admin/application.css
168
181
  - app/assets/stylesheets/doorkeeper/application.css
169
182
  - app/controllers/doorkeeper/application_controller.rb
@@ -174,7 +187,6 @@ files:
174
187
  - app/controllers/doorkeeper/token_info_controller.rb
175
188
  - app/controllers/doorkeeper/tokens_controller.rb
176
189
  - app/helpers/doorkeeper/dashboard_helper.rb
177
- - app/validators/redirect_uri_validator.rb
178
190
  - app/views/doorkeeper/applications/_delete_form.html.erb
179
191
  - app/views/doorkeeper/applications/_form.html.erb
180
192
  - app/views/doorkeeper/applications/edit.html.erb
@@ -182,6 +194,7 @@ files:
182
194
  - app/views/doorkeeper/applications/new.html.erb
183
195
  - app/views/doorkeeper/applications/show.html.erb
184
196
  - app/views/doorkeeper/authorizations/error.html.erb
197
+ - app/views/doorkeeper/authorizations/form_post.html.erb
185
198
  - app/views/doorkeeper/authorizations/new.html.erb
186
199
  - app/views/doorkeeper/authorizations/show.html.erb
187
200
  - app/views/doorkeeper/authorized_applications/_delete_form.html.erb
@@ -189,16 +202,17 @@ files:
189
202
  - app/views/layouts/doorkeeper/admin.html.erb
190
203
  - app/views/layouts/doorkeeper/application.html.erb
191
204
  - config/locales/en.yml
192
- - doorkeeper.gemspec
193
- - gemfiles/rails_4_2.gemfile
194
- - gemfiles/rails_5_0.gemfile
195
- - gemfiles/rails_5_1.gemfile
196
- - gemfiles/rails_5_2.gemfile
197
- - gemfiles/rails_master.gemfile
198
205
  - lib/doorkeeper.rb
199
206
  - lib/doorkeeper/config.rb
207
+ - lib/doorkeeper/config/abstract_builder.rb
208
+ - lib/doorkeeper/config/option.rb
209
+ - lib/doorkeeper/config/validations.rb
200
210
  - lib/doorkeeper/engine.rb
201
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
202
216
  - lib/doorkeeper/grape/authorization_decorator.rb
203
217
  - lib/doorkeeper/grape/helpers.rb
204
218
  - lib/doorkeeper/helpers/controller.rb
@@ -207,11 +221,18 @@ files:
207
221
  - lib/doorkeeper/models/application_mixin.rb
208
222
  - lib/doorkeeper/models/concerns/accessible.rb
209
223
  - lib/doorkeeper/models/concerns/expirable.rb
224
+ - lib/doorkeeper/models/concerns/expiration_time_sql_math.rb
210
225
  - lib/doorkeeper/models/concerns/orderable.rb
211
226
  - lib/doorkeeper/models/concerns/ownership.rb
227
+ - lib/doorkeeper/models/concerns/polymorphic_resource_owner.rb
228
+ - lib/doorkeeper/models/concerns/resource_ownerable.rb
229
+ - lib/doorkeeper/models/concerns/reusable.rb
212
230
  - lib/doorkeeper/models/concerns/revocable.rb
213
231
  - lib/doorkeeper/models/concerns/scopes.rb
232
+ - lib/doorkeeper/models/concerns/secret_storable.rb
233
+ - lib/doorkeeper/oauth.rb
214
234
  - lib/doorkeeper/oauth/authorization/code.rb
235
+ - lib/doorkeeper/oauth/authorization/context.rb
215
236
  - lib/doorkeeper/oauth/authorization/token.rb
216
237
  - lib/doorkeeper/oauth/authorization/uri_builder.rb
217
238
  - lib/doorkeeper/oauth/authorization_code_request.rb
@@ -221,7 +242,7 @@ files:
221
242
  - lib/doorkeeper/oauth/client/credentials.rb
222
243
  - lib/doorkeeper/oauth/client_credentials/creator.rb
223
244
  - lib/doorkeeper/oauth/client_credentials/issuer.rb
224
- - lib/doorkeeper/oauth/client_credentials/validation.rb
245
+ - lib/doorkeeper/oauth/client_credentials/validator.rb
225
246
  - lib/doorkeeper/oauth/client_credentials_request.rb
226
247
  - lib/doorkeeper/oauth/code_request.rb
227
248
  - lib/doorkeeper/oauth/code_response.rb
@@ -231,7 +252,10 @@ files:
231
252
  - lib/doorkeeper/oauth/helpers/scope_checker.rb
232
253
  - lib/doorkeeper/oauth/helpers/unique_token.rb
233
254
  - lib/doorkeeper/oauth/helpers/uri_checker.rb
255
+ - lib/doorkeeper/oauth/hooks/context.rb
256
+ - lib/doorkeeper/oauth/invalid_request_response.rb
234
257
  - lib/doorkeeper/oauth/invalid_token_response.rb
258
+ - lib/doorkeeper/oauth/nonstandard.rb
235
259
  - lib/doorkeeper/oauth/password_access_token_request.rb
236
260
  - lib/doorkeeper/oauth/pre_authorization.rb
237
261
  - lib/doorkeeper/oauth/refresh_token_request.rb
@@ -244,10 +268,20 @@ files:
244
268
  - lib/doorkeeper/orm/active_record/access_grant.rb
245
269
  - lib/doorkeeper/orm/active_record/access_token.rb
246
270
  - lib/doorkeeper/orm/active_record/application.rb
271
+ - lib/doorkeeper/orm/active_record/mixins/access_grant.rb
272
+ - lib/doorkeeper/orm/active_record/mixins/access_token.rb
273
+ - lib/doorkeeper/orm/active_record/mixins/application.rb
274
+ - lib/doorkeeper/orm/active_record/redirect_uri_validator.rb
275
+ - lib/doorkeeper/orm/active_record/stale_records_cleaner.rb
247
276
  - lib/doorkeeper/rails/helpers.rb
248
277
  - lib/doorkeeper/rails/routes.rb
278
+ - lib/doorkeeper/rails/routes/abstract_router.rb
249
279
  - lib/doorkeeper/rails/routes/mapper.rb
250
280
  - lib/doorkeeper/rails/routes/mapping.rb
281
+ - lib/doorkeeper/rails/routes/registry.rb
282
+ - lib/doorkeeper/rake.rb
283
+ - lib/doorkeeper/rake/db.rake
284
+ - lib/doorkeeper/rake/setup.rake
251
285
  - lib/doorkeeper/request.rb
252
286
  - lib/doorkeeper/request/authorization_code.rb
253
287
  - lib/doorkeeper/request/client_credentials.rb
@@ -256,169 +290,48 @@ files:
256
290
  - lib/doorkeeper/request/refresh_token.rb
257
291
  - lib/doorkeeper/request/strategy.rb
258
292
  - lib/doorkeeper/request/token.rb
293
+ - lib/doorkeeper/secret_storing/base.rb
294
+ - lib/doorkeeper/secret_storing/bcrypt.rb
295
+ - lib/doorkeeper/secret_storing/plain.rb
296
+ - lib/doorkeeper/secret_storing/sha256_hash.rb
259
297
  - lib/doorkeeper/server.rb
298
+ - lib/doorkeeper/stale_records_cleaner.rb
260
299
  - lib/doorkeeper/validations.rb
261
300
  - lib/doorkeeper/version.rb
262
- - lib/generators/doorkeeper/add_client_confidentiality_generator.rb
263
301
  - lib/generators/doorkeeper/application_owner_generator.rb
302
+ - lib/generators/doorkeeper/confidential_applications_generator.rb
303
+ - lib/generators/doorkeeper/enable_polymorphic_resource_owner_generator.rb
264
304
  - lib/generators/doorkeeper/install_generator.rb
265
305
  - lib/generators/doorkeeper/migration_generator.rb
306
+ - lib/generators/doorkeeper/pkce_generator.rb
266
307
  - lib/generators/doorkeeper/previous_refresh_token_generator.rb
267
308
  - lib/generators/doorkeeper/templates/README
268
- - lib/generators/doorkeeper/templates/add_confidential_to_application_migration.rb.erb
309
+ - lib/generators/doorkeeper/templates/add_confidential_to_applications.rb.erb
269
310
  - lib/generators/doorkeeper/templates/add_owner_to_application_migration.rb.erb
270
311
  - lib/generators/doorkeeper/templates/add_previous_refresh_token_to_access_tokens.rb.erb
312
+ - lib/generators/doorkeeper/templates/enable_pkce_migration.rb.erb
313
+ - lib/generators/doorkeeper/templates/enable_polymorphic_resource_owner_migration.rb.erb
271
314
  - lib/generators/doorkeeper/templates/initializer.rb
272
315
  - lib/generators/doorkeeper/templates/migration.rb.erb
273
316
  - lib/generators/doorkeeper/views_generator.rb
274
- - spec/controllers/application_metal_controller.rb
275
- - spec/controllers/applications_controller_spec.rb
276
- - spec/controllers/authorizations_controller_spec.rb
277
- - spec/controllers/protected_resources_controller_spec.rb
278
- - spec/controllers/token_info_controller_spec.rb
279
- - spec/controllers/tokens_controller_spec.rb
280
- - spec/dummy/Rakefile
281
- - spec/dummy/app/controllers/application_controller.rb
282
- - spec/dummy/app/controllers/custom_authorizations_controller.rb
283
- - spec/dummy/app/controllers/full_protected_resources_controller.rb
284
- - spec/dummy/app/controllers/home_controller.rb
285
- - spec/dummy/app/controllers/metal_controller.rb
286
- - spec/dummy/app/controllers/semi_protected_resources_controller.rb
287
- - spec/dummy/app/helpers/application_helper.rb
288
- - spec/dummy/app/models/user.rb
289
- - spec/dummy/app/views/home/index.html.erb
290
- - spec/dummy/app/views/layouts/application.html.erb
291
- - spec/dummy/config.ru
292
- - spec/dummy/config/application.rb
293
- - spec/dummy/config/boot.rb
294
- - spec/dummy/config/database.yml
295
- - spec/dummy/config/environment.rb
296
- - spec/dummy/config/environments/development.rb
297
- - spec/dummy/config/environments/production.rb
298
- - spec/dummy/config/environments/test.rb
299
- - spec/dummy/config/initializers/backtrace_silencers.rb
300
- - spec/dummy/config/initializers/doorkeeper.rb
301
- - spec/dummy/config/initializers/new_framework_defaults.rb
302
- - spec/dummy/config/initializers/secret_token.rb
303
- - spec/dummy/config/initializers/session_store.rb
304
- - spec/dummy/config/initializers/wrap_parameters.rb
305
- - spec/dummy/config/locales/doorkeeper.en.yml
306
- - spec/dummy/config/routes.rb
307
- - spec/dummy/db/migrate/20111122132257_create_users.rb
308
- - spec/dummy/db/migrate/20120312140401_add_password_to_users.rb
309
- - spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb
310
- - spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
311
- - spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb
312
- - spec/dummy/db/migrate/20180210183654_add_confidential_to_application.rb
313
- - spec/dummy/db/schema.rb
314
- - spec/dummy/public/404.html
315
- - spec/dummy/public/422.html
316
- - spec/dummy/public/500.html
317
- - spec/dummy/public/favicon.ico
318
- - spec/dummy/script/rails
319
- - spec/factories.rb
320
- - spec/generators/application_owner_generator_spec.rb
321
- - spec/generators/install_generator_spec.rb
322
- - spec/generators/migration_generator_spec.rb
323
- - spec/generators/previous_refresh_token_generator_spec.rb
324
- - spec/generators/templates/routes.rb
325
- - spec/generators/views_generator_spec.rb
326
- - spec/grape/grape_integration_spec.rb
327
- - spec/helpers/doorkeeper/dashboard_helper_spec.rb
328
- - spec/lib/config_spec.rb
329
- - spec/lib/doorkeeper_spec.rb
330
- - spec/lib/models/expirable_spec.rb
331
- - spec/lib/models/revocable_spec.rb
332
- - spec/lib/models/scopes_spec.rb
333
- - spec/lib/oauth/authorization/uri_builder_spec.rb
334
- - spec/lib/oauth/authorization_code_request_spec.rb
335
- - spec/lib/oauth/base_request_spec.rb
336
- - spec/lib/oauth/base_response_spec.rb
337
- - spec/lib/oauth/client/credentials_spec.rb
338
- - spec/lib/oauth/client_credentials/creator_spec.rb
339
- - spec/lib/oauth/client_credentials/issuer_spec.rb
340
- - spec/lib/oauth/client_credentials/validation_spec.rb
341
- - spec/lib/oauth/client_credentials_integration_spec.rb
342
- - spec/lib/oauth/client_credentials_request_spec.rb
343
- - spec/lib/oauth/client_spec.rb
344
- - spec/lib/oauth/code_request_spec.rb
345
- - spec/lib/oauth/code_response_spec.rb
346
- - spec/lib/oauth/error_response_spec.rb
347
- - spec/lib/oauth/error_spec.rb
348
- - spec/lib/oauth/forbidden_token_response_spec.rb
349
- - spec/lib/oauth/helpers/scope_checker_spec.rb
350
- - spec/lib/oauth/helpers/unique_token_spec.rb
351
- - spec/lib/oauth/helpers/uri_checker_spec.rb
352
- - spec/lib/oauth/invalid_token_response_spec.rb
353
- - spec/lib/oauth/password_access_token_request_spec.rb
354
- - spec/lib/oauth/pre_authorization_spec.rb
355
- - spec/lib/oauth/refresh_token_request_spec.rb
356
- - spec/lib/oauth/scopes_spec.rb
357
- - spec/lib/oauth/token_request_spec.rb
358
- - spec/lib/oauth/token_response_spec.rb
359
- - spec/lib/oauth/token_spec.rb
360
- - spec/lib/request/strategy_spec.rb
361
- - spec/lib/server_spec.rb
362
- - spec/models/doorkeeper/access_grant_spec.rb
363
- - spec/models/doorkeeper/access_token_spec.rb
364
- - spec/models/doorkeeper/application_spec.rb
365
- - spec/requests/applications/applications_request_spec.rb
366
- - spec/requests/applications/authorized_applications_spec.rb
367
- - spec/requests/endpoints/authorization_spec.rb
368
- - spec/requests/endpoints/token_spec.rb
369
- - spec/requests/flows/authorization_code_errors_spec.rb
370
- - spec/requests/flows/authorization_code_spec.rb
371
- - spec/requests/flows/client_credentials_spec.rb
372
- - spec/requests/flows/implicit_grant_errors_spec.rb
373
- - spec/requests/flows/implicit_grant_spec.rb
374
- - spec/requests/flows/password_spec.rb
375
- - spec/requests/flows/refresh_token_spec.rb
376
- - spec/requests/flows/revoke_token_spec.rb
377
- - spec/requests/flows/skip_authorization_spec.rb
378
- - spec/requests/protected_resources/metal_spec.rb
379
- - spec/requests/protected_resources/private_api_spec.rb
380
- - spec/routing/custom_controller_routes_spec.rb
381
- - spec/routing/default_routes_spec.rb
382
- - spec/routing/scoped_routes_spec.rb
383
- - spec/spec_helper.rb
384
- - spec/spec_helper_integration.rb
385
- - spec/support/dependencies/factory_girl.rb
386
- - spec/support/helpers/access_token_request_helper.rb
387
- - spec/support/helpers/authorization_request_helper.rb
388
- - spec/support/helpers/config_helper.rb
389
- - spec/support/helpers/model_helper.rb
390
- - spec/support/helpers/request_spec_helper.rb
391
- - spec/support/helpers/url_helper.rb
392
- - spec/support/http_method_shim.rb
393
- - spec/support/orm/active_record.rb
394
- - spec/support/shared/controllers_shared_context.rb
395
- - spec/support/shared/models_shared_examples.rb
396
- - spec/validators/redirect_uri_validator_spec.rb
397
- - spec/version/version_spec.rb
398
317
  - vendor/assets/stylesheets/doorkeeper/bootstrap.min.css
399
318
  homepage: https://github.com/doorkeeper-gem/doorkeeper
400
319
  licenses:
401
320
  - MIT
402
- metadata: {}
403
- post_install_message: |2+
404
-
405
-
406
- WARNING: This is a security release that addresses token revocation not working for public apps (CVE-2018-1000211)
407
-
408
- There is no breaking change in this release, however to take advantage of the security fix you must:
409
-
410
- 1. Run `rails generate doorkeeper:add_client_confidentiality` for the migration
411
- 2. Review your OAuth apps and determine which ones exclusively use public grant flows (eg implicit)
412
- 3. Update their `confidential` column to `false` for those public apps
413
-
414
- This is a backported security release.
415
-
416
- For more information:
417
-
418
- * https://github.com/doorkeeper-gem/doorkeeper/pull/1119
419
- * https://github.com/doorkeeper-gem/doorkeeper/issues/891
420
-
421
-
321
+ metadata:
322
+ homepage_uri: https://github.com/doorkeeper-gem/doorkeeper
323
+ changelog_uri: https://github.com/doorkeeper-gem/doorkeeper/blob/main/CHANGELOG.md
324
+ source_code_uri: https://github.com/doorkeeper-gem/doorkeeper
325
+ bug_tracker_uri: https://github.com/doorkeeper-gem/doorkeeper/issues
326
+ documentation_uri: https://doorkeeper.gitbook.io/guides/
327
+ post_install_message: "Starting from 5.5.0 RC1 Doorkeeper requires client authentication
328
+ for Resource Owner Password Grant\nas stated in the OAuth RFC. You have to create
329
+ a new OAuth client (Doorkeeper::Application) if you didn't\nhave it before and use
330
+ client credentials in HTTP Basic auth if you previously used this grant flow without\nclient
331
+ authentication. \n\nTo opt out of this you could set the \"skip_client_authentication_for_password_grant\"
332
+ configuration option\nto \"true\", but note that this is in violation of the OAuth
333
+ spec and represents a security risk.\n\nRead https://github.com/doorkeeper-gem/doorkeeper/issues/561#issuecomment-612857163
334
+ for more details."
422
335
  rdoc_options: []
423
336
  require_paths:
424
337
  - lib
@@ -426,140 +339,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
426
339
  requirements:
427
340
  - - ">="
428
341
  - !ruby/object:Gem::Version
429
- version: '2.1'
342
+ version: '2.7'
430
343
  required_rubygems_version: !ruby/object:Gem::Requirement
431
344
  requirements:
432
345
  - - ">="
433
346
  - !ruby/object:Gem::Version
434
347
  version: '0'
435
348
  requirements: []
436
- rubyforge_project:
437
- rubygems_version: 2.6.11
349
+ rubygems_version: 3.1.6
438
350
  signing_key:
439
351
  specification_version: 4
440
352
  summary: OAuth 2 provider for Rails and Grape
441
- test_files:
442
- - spec/controllers/application_metal_controller.rb
443
- - spec/controllers/applications_controller_spec.rb
444
- - spec/controllers/authorizations_controller_spec.rb
445
- - spec/controllers/protected_resources_controller_spec.rb
446
- - spec/controllers/token_info_controller_spec.rb
447
- - spec/controllers/tokens_controller_spec.rb
448
- - spec/dummy/Rakefile
449
- - spec/dummy/app/controllers/application_controller.rb
450
- - spec/dummy/app/controllers/custom_authorizations_controller.rb
451
- - spec/dummy/app/controllers/full_protected_resources_controller.rb
452
- - spec/dummy/app/controllers/home_controller.rb
453
- - spec/dummy/app/controllers/metal_controller.rb
454
- - spec/dummy/app/controllers/semi_protected_resources_controller.rb
455
- - spec/dummy/app/helpers/application_helper.rb
456
- - spec/dummy/app/models/user.rb
457
- - spec/dummy/app/views/home/index.html.erb
458
- - spec/dummy/app/views/layouts/application.html.erb
459
- - spec/dummy/config.ru
460
- - spec/dummy/config/application.rb
461
- - spec/dummy/config/boot.rb
462
- - spec/dummy/config/database.yml
463
- - spec/dummy/config/environment.rb
464
- - spec/dummy/config/environments/development.rb
465
- - spec/dummy/config/environments/production.rb
466
- - spec/dummy/config/environments/test.rb
467
- - spec/dummy/config/initializers/backtrace_silencers.rb
468
- - spec/dummy/config/initializers/doorkeeper.rb
469
- - spec/dummy/config/initializers/new_framework_defaults.rb
470
- - spec/dummy/config/initializers/secret_token.rb
471
- - spec/dummy/config/initializers/session_store.rb
472
- - spec/dummy/config/initializers/wrap_parameters.rb
473
- - spec/dummy/config/locales/doorkeeper.en.yml
474
- - spec/dummy/config/routes.rb
475
- - spec/dummy/db/migrate/20111122132257_create_users.rb
476
- - spec/dummy/db/migrate/20120312140401_add_password_to_users.rb
477
- - spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb
478
- - spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
479
- - spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb
480
- - spec/dummy/db/migrate/20180210183654_add_confidential_to_application.rb
481
- - spec/dummy/db/schema.rb
482
- - spec/dummy/public/404.html
483
- - spec/dummy/public/422.html
484
- - spec/dummy/public/500.html
485
- - spec/dummy/public/favicon.ico
486
- - spec/dummy/script/rails
487
- - spec/factories.rb
488
- - spec/generators/application_owner_generator_spec.rb
489
- - spec/generators/install_generator_spec.rb
490
- - spec/generators/migration_generator_spec.rb
491
- - spec/generators/previous_refresh_token_generator_spec.rb
492
- - spec/generators/templates/routes.rb
493
- - spec/generators/views_generator_spec.rb
494
- - spec/grape/grape_integration_spec.rb
495
- - spec/helpers/doorkeeper/dashboard_helper_spec.rb
496
- - spec/lib/config_spec.rb
497
- - spec/lib/doorkeeper_spec.rb
498
- - spec/lib/models/expirable_spec.rb
499
- - spec/lib/models/revocable_spec.rb
500
- - spec/lib/models/scopes_spec.rb
501
- - spec/lib/oauth/authorization/uri_builder_spec.rb
502
- - spec/lib/oauth/authorization_code_request_spec.rb
503
- - spec/lib/oauth/base_request_spec.rb
504
- - spec/lib/oauth/base_response_spec.rb
505
- - spec/lib/oauth/client/credentials_spec.rb
506
- - spec/lib/oauth/client_credentials/creator_spec.rb
507
- - spec/lib/oauth/client_credentials/issuer_spec.rb
508
- - spec/lib/oauth/client_credentials/validation_spec.rb
509
- - spec/lib/oauth/client_credentials_integration_spec.rb
510
- - spec/lib/oauth/client_credentials_request_spec.rb
511
- - spec/lib/oauth/client_spec.rb
512
- - spec/lib/oauth/code_request_spec.rb
513
- - spec/lib/oauth/code_response_spec.rb
514
- - spec/lib/oauth/error_response_spec.rb
515
- - spec/lib/oauth/error_spec.rb
516
- - spec/lib/oauth/forbidden_token_response_spec.rb
517
- - spec/lib/oauth/helpers/scope_checker_spec.rb
518
- - spec/lib/oauth/helpers/unique_token_spec.rb
519
- - spec/lib/oauth/helpers/uri_checker_spec.rb
520
- - spec/lib/oauth/invalid_token_response_spec.rb
521
- - spec/lib/oauth/password_access_token_request_spec.rb
522
- - spec/lib/oauth/pre_authorization_spec.rb
523
- - spec/lib/oauth/refresh_token_request_spec.rb
524
- - spec/lib/oauth/scopes_spec.rb
525
- - spec/lib/oauth/token_request_spec.rb
526
- - spec/lib/oauth/token_response_spec.rb
527
- - spec/lib/oauth/token_spec.rb
528
- - spec/lib/request/strategy_spec.rb
529
- - spec/lib/server_spec.rb
530
- - spec/models/doorkeeper/access_grant_spec.rb
531
- - spec/models/doorkeeper/access_token_spec.rb
532
- - spec/models/doorkeeper/application_spec.rb
533
- - spec/requests/applications/applications_request_spec.rb
534
- - spec/requests/applications/authorized_applications_spec.rb
535
- - spec/requests/endpoints/authorization_spec.rb
536
- - spec/requests/endpoints/token_spec.rb
537
- - spec/requests/flows/authorization_code_errors_spec.rb
538
- - spec/requests/flows/authorization_code_spec.rb
539
- - spec/requests/flows/client_credentials_spec.rb
540
- - spec/requests/flows/implicit_grant_errors_spec.rb
541
- - spec/requests/flows/implicit_grant_spec.rb
542
- - spec/requests/flows/password_spec.rb
543
- - spec/requests/flows/refresh_token_spec.rb
544
- - spec/requests/flows/revoke_token_spec.rb
545
- - spec/requests/flows/skip_authorization_spec.rb
546
- - spec/requests/protected_resources/metal_spec.rb
547
- - spec/requests/protected_resources/private_api_spec.rb
548
- - spec/routing/custom_controller_routes_spec.rb
549
- - spec/routing/default_routes_spec.rb
550
- - spec/routing/scoped_routes_spec.rb
551
- - spec/spec_helper.rb
552
- - spec/spec_helper_integration.rb
553
- - spec/support/dependencies/factory_girl.rb
554
- - spec/support/helpers/access_token_request_helper.rb
555
- - spec/support/helpers/authorization_request_helper.rb
556
- - spec/support/helpers/config_helper.rb
557
- - spec/support/helpers/model_helper.rb
558
- - spec/support/helpers/request_spec_helper.rb
559
- - spec/support/helpers/url_helper.rb
560
- - spec/support/http_method_shim.rb
561
- - spec/support/orm/active_record.rb
562
- - spec/support/shared/controllers_shared_context.rb
563
- - spec/support/shared/models_shared_examples.rb
564
- - spec/validators/redirect_uri_validator_spec.rb
565
- - spec/version/version_spec.rb
353
+ 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,19 +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
data/.hound.yml DELETED
@@ -1,2 +0,0 @@
1
- ruby:
2
- config_file: .rubocop.yml
data/.rspec DELETED
@@ -1 +0,0 @@
1
- --colour