doorkeeper 4.4.3 → 5.5.2

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 (282) hide show
  1. checksums.yaml +5 -5
  2. data/{NEWS.md → CHANGELOG.md} +393 -19
  3. data/README.md +97 -393
  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 +97 -17
  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 +98 -32
  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 +1 -1
  20. data/app/views/doorkeeper/authorizations/form_post.html.erb +15 -0
  21. data/app/views/doorkeeper/authorizations/new.html.erb +6 -0
  22. data/app/views/layouts/doorkeeper/admin.html.erb +16 -14
  23. data/config/locales/en.yml +23 -3
  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 +471 -140
  28. data/lib/doorkeeper/engine.rb +8 -2
  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 +272 -66
  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/orderable.rb +2 -0
  43. data/lib/doorkeeper/models/concerns/ownership.rb +4 -7
  44. data/lib/doorkeeper/models/concerns/resource_ownerable.rb +47 -0
  45. data/lib/doorkeeper/models/concerns/reusable.rb +19 -0
  46. data/lib/doorkeeper/models/concerns/revocable.rb +3 -27
  47. data/lib/doorkeeper/models/concerns/scopes.rb +12 -2
  48. data/lib/doorkeeper/models/concerns/secret_storable.rb +106 -0
  49. data/lib/doorkeeper/oauth/authorization/code.rb +48 -12
  50. data/lib/doorkeeper/oauth/authorization/context.rb +17 -0
  51. data/lib/doorkeeper/oauth/authorization/token.rb +58 -24
  52. data/lib/doorkeeper/oauth/authorization/uri_builder.rb +7 -5
  53. data/lib/doorkeeper/oauth/authorization_code_request.rb +58 -10
  54. data/lib/doorkeeper/oauth/base_request.rb +35 -24
  55. data/lib/doorkeeper/oauth/base_response.rb +2 -0
  56. data/lib/doorkeeper/oauth/client/credentials.rb +5 -5
  57. data/lib/doorkeeper/oauth/client.rb +10 -11
  58. data/lib/doorkeeper/oauth/client_credentials/creator.rb +47 -4
  59. data/lib/doorkeeper/oauth/client_credentials/issuer.rb +16 -9
  60. data/lib/doorkeeper/oauth/client_credentials/validator.rb +56 -0
  61. data/lib/doorkeeper/oauth/client_credentials_request.rb +10 -11
  62. data/lib/doorkeeper/oauth/code_request.rb +8 -12
  63. data/lib/doorkeeper/oauth/code_response.rb +27 -15
  64. data/lib/doorkeeper/oauth/error.rb +3 -1
  65. data/lib/doorkeeper/oauth/error_response.rb +35 -14
  66. data/lib/doorkeeper/oauth/forbidden_token_response.rb +10 -3
  67. data/lib/doorkeeper/oauth/helpers/scope_checker.rb +23 -18
  68. data/lib/doorkeeper/oauth/helpers/unique_token.rb +20 -3
  69. data/lib/doorkeeper/oauth/helpers/uri_checker.rb +42 -7
  70. data/lib/doorkeeper/oauth/hooks/context.rb +21 -0
  71. data/lib/doorkeeper/oauth/invalid_request_response.rb +43 -0
  72. data/lib/doorkeeper/oauth/invalid_token_response.rb +29 -4
  73. data/lib/doorkeeper/oauth/nonstandard.rb +39 -0
  74. data/lib/doorkeeper/oauth/password_access_token_request.rb +43 -10
  75. data/lib/doorkeeper/oauth/pre_authorization.rb +133 -26
  76. data/lib/doorkeeper/oauth/refresh_token_request.rb +59 -31
  77. data/lib/doorkeeper/oauth/scopes.rb +8 -4
  78. data/lib/doorkeeper/oauth/token.rb +12 -8
  79. data/lib/doorkeeper/oauth/token_introspection.rb +97 -23
  80. data/lib/doorkeeper/oauth/token_request.rb +8 -20
  81. data/lib/doorkeeper/oauth/token_response.rb +14 -10
  82. data/lib/doorkeeper/oauth.rb +13 -0
  83. data/lib/doorkeeper/orm/active_record/access_grant.rb +5 -30
  84. data/lib/doorkeeper/orm/active_record/access_token.rb +5 -43
  85. data/lib/doorkeeper/orm/active_record/application.rb +6 -57
  86. data/lib/doorkeeper/orm/active_record/mixins/access_grant.rb +68 -0
  87. data/lib/doorkeeper/orm/active_record/mixins/access_token.rb +59 -0
  88. data/lib/doorkeeper/orm/active_record/mixins/application.rb +198 -0
  89. data/lib/doorkeeper/orm/active_record/redirect_uri_validator.rb +66 -0
  90. data/lib/doorkeeper/orm/active_record/stale_records_cleaner.rb +33 -0
  91. data/lib/doorkeeper/orm/active_record.rb +27 -9
  92. data/lib/doorkeeper/rails/helpers.rb +10 -8
  93. data/lib/doorkeeper/rails/routes/abstract_router.rb +35 -0
  94. data/lib/doorkeeper/rails/routes/mapper.rb +4 -2
  95. data/lib/doorkeeper/rails/routes/mapping.rb +9 -7
  96. data/lib/doorkeeper/rails/routes/registry.rb +45 -0
  97. data/lib/doorkeeper/rails/routes.rb +37 -30
  98. data/lib/doorkeeper/rake/db.rake +40 -0
  99. data/lib/doorkeeper/rake/setup.rake +11 -0
  100. data/lib/doorkeeper/rake.rb +14 -0
  101. data/lib/doorkeeper/request/authorization_code.rb +6 -4
  102. data/lib/doorkeeper/request/client_credentials.rb +3 -3
  103. data/lib/doorkeeper/request/code.rb +1 -1
  104. data/lib/doorkeeper/request/password.rb +4 -3
  105. data/lib/doorkeeper/request/refresh_token.rb +6 -5
  106. data/lib/doorkeeper/request/strategy.rb +4 -2
  107. data/lib/doorkeeper/request/token.rb +1 -1
  108. data/lib/doorkeeper/request.rb +61 -34
  109. data/lib/doorkeeper/secret_storing/base.rb +64 -0
  110. data/lib/doorkeeper/secret_storing/bcrypt.rb +60 -0
  111. data/lib/doorkeeper/secret_storing/plain.rb +33 -0
  112. data/lib/doorkeeper/secret_storing/sha256_hash.rb +26 -0
  113. data/lib/doorkeeper/server.rb +9 -11
  114. data/lib/doorkeeper/stale_records_cleaner.rb +24 -0
  115. data/lib/doorkeeper/validations.rb +2 -0
  116. data/lib/doorkeeper/version.rb +7 -29
  117. data/lib/doorkeeper.rb +111 -64
  118. data/lib/generators/doorkeeper/application_owner_generator.rb +24 -18
  119. data/lib/generators/doorkeeper/confidential_applications_generator.rb +33 -0
  120. data/lib/generators/doorkeeper/enable_polymorphic_resource_owner_generator.rb +39 -0
  121. data/lib/generators/doorkeeper/install_generator.rb +19 -9
  122. data/lib/generators/doorkeeper/migration_generator.rb +23 -18
  123. data/lib/generators/doorkeeper/pkce_generator.rb +33 -0
  124. data/lib/generators/doorkeeper/previous_refresh_token_generator.rb +28 -22
  125. data/{spec/dummy/db/migrate/20180210183654_add_confidential_to_application.rb → lib/generators/doorkeeper/templates/add_confidential_to_applications.rb.erb} +2 -2
  126. data/lib/generators/doorkeeper/templates/add_owner_to_application_migration.rb.erb +3 -1
  127. data/lib/generators/doorkeeper/templates/add_previous_refresh_token_to_access_tokens.rb.erb +2 -0
  128. data/lib/generators/doorkeeper/templates/enable_pkce_migration.rb.erb +8 -0
  129. data/lib/generators/doorkeeper/templates/enable_polymorphic_resource_owner_migration.rb.erb +17 -0
  130. data/lib/generators/doorkeeper/templates/initializer.rb +382 -30
  131. data/lib/generators/doorkeeper/templates/migration.rb.erb +35 -16
  132. data/lib/generators/doorkeeper/views_generator.rb +8 -4
  133. data/vendor/assets/stylesheets/doorkeeper/bootstrap.min.css +4 -5
  134. metadata +95 -309
  135. data/.coveralls.yml +0 -1
  136. data/.github/ISSUE_TEMPLATE.md +0 -25
  137. data/.github/PULL_REQUEST_TEMPLATE.md +0 -17
  138. data/.gitignore +0 -19
  139. data/.hound.yml +0 -2
  140. data/.rspec +0 -1
  141. data/.rubocop.yml +0 -17
  142. data/.travis.yml +0 -38
  143. data/Appraisals +0 -18
  144. data/CODE_OF_CONDUCT.md +0 -46
  145. data/CONTRIBUTING.md +0 -47
  146. data/Gemfile +0 -10
  147. data/RELEASING.md +0 -10
  148. data/Rakefile +0 -20
  149. data/SECURITY.md +0 -15
  150. data/app/validators/redirect_uri_validator.rb +0 -44
  151. data/doorkeeper.gemspec +0 -32
  152. data/gemfiles/rails_4_2.gemfile +0 -13
  153. data/gemfiles/rails_5_0.gemfile +0 -12
  154. data/gemfiles/rails_5_1.gemfile +0 -12
  155. data/gemfiles/rails_5_2.gemfile +0 -12
  156. data/gemfiles/rails_master.gemfile +0 -14
  157. data/lib/doorkeeper/oauth/client_credentials/validation.rb +0 -45
  158. data/lib/generators/doorkeeper/add_client_confidentiality_generator.rb +0 -31
  159. data/lib/generators/doorkeeper/templates/add_confidential_to_application_migration.rb.erb +0 -11
  160. data/spec/controllers/application_metal_controller.rb +0 -10
  161. data/spec/controllers/applications_controller_spec.rb +0 -69
  162. data/spec/controllers/authorizations_controller_spec.rb +0 -250
  163. data/spec/controllers/protected_resources_controller_spec.rb +0 -309
  164. data/spec/controllers/token_info_controller_spec.rb +0 -56
  165. data/spec/controllers/tokens_controller_spec.rb +0 -274
  166. data/spec/dummy/Rakefile +0 -7
  167. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  168. data/spec/dummy/app/controllers/custom_authorizations_controller.rb +0 -7
  169. data/spec/dummy/app/controllers/full_protected_resources_controller.rb +0 -12
  170. data/spec/dummy/app/controllers/home_controller.rb +0 -17
  171. data/spec/dummy/app/controllers/metal_controller.rb +0 -11
  172. data/spec/dummy/app/controllers/semi_protected_resources_controller.rb +0 -11
  173. data/spec/dummy/app/helpers/application_helper.rb +0 -5
  174. data/spec/dummy/app/models/user.rb +0 -5
  175. data/spec/dummy/app/views/home/index.html.erb +0 -0
  176. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  177. data/spec/dummy/config/application.rb +0 -23
  178. data/spec/dummy/config/boot.rb +0 -9
  179. data/spec/dummy/config/database.yml +0 -15
  180. data/spec/dummy/config/environment.rb +0 -5
  181. data/spec/dummy/config/environments/development.rb +0 -29
  182. data/spec/dummy/config/environments/production.rb +0 -62
  183. data/spec/dummy/config/environments/test.rb +0 -44
  184. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  185. data/spec/dummy/config/initializers/doorkeeper.rb +0 -112
  186. data/spec/dummy/config/initializers/new_framework_defaults.rb +0 -6
  187. data/spec/dummy/config/initializers/secret_token.rb +0 -8
  188. data/spec/dummy/config/initializers/session_store.rb +0 -8
  189. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  190. data/spec/dummy/config/locales/doorkeeper.en.yml +0 -5
  191. data/spec/dummy/config/routes.rb +0 -52
  192. data/spec/dummy/config.ru +0 -4
  193. data/spec/dummy/db/migrate/20111122132257_create_users.rb +0 -11
  194. data/spec/dummy/db/migrate/20120312140401_add_password_to_users.rb +0 -7
  195. data/spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb +0 -62
  196. data/spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb +0 -9
  197. data/spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb +0 -13
  198. data/spec/dummy/db/schema.rb +0 -68
  199. data/spec/dummy/public/404.html +0 -26
  200. data/spec/dummy/public/422.html +0 -26
  201. data/spec/dummy/public/500.html +0 -26
  202. data/spec/dummy/public/favicon.ico +0 -0
  203. data/spec/dummy/script/rails +0 -6
  204. data/spec/factories.rb +0 -28
  205. data/spec/generators/application_owner_generator_spec.rb +0 -41
  206. data/spec/generators/install_generator_spec.rb +0 -31
  207. data/spec/generators/migration_generator_spec.rb +0 -41
  208. data/spec/generators/previous_refresh_token_generator_spec.rb +0 -57
  209. data/spec/generators/templates/routes.rb +0 -3
  210. data/spec/generators/views_generator_spec.rb +0 -27
  211. data/spec/grape/grape_integration_spec.rb +0 -135
  212. data/spec/helpers/doorkeeper/dashboard_helper_spec.rb +0 -24
  213. data/spec/lib/config_spec.rb +0 -462
  214. data/spec/lib/doorkeeper_spec.rb +0 -150
  215. data/spec/lib/models/expirable_spec.rb +0 -50
  216. data/spec/lib/models/revocable_spec.rb +0 -59
  217. data/spec/lib/models/scopes_spec.rb +0 -43
  218. data/spec/lib/oauth/authorization/uri_builder_spec.rb +0 -41
  219. data/spec/lib/oauth/authorization_code_request_spec.rb +0 -123
  220. data/spec/lib/oauth/base_request_spec.rb +0 -155
  221. data/spec/lib/oauth/base_response_spec.rb +0 -45
  222. data/spec/lib/oauth/client/credentials_spec.rb +0 -90
  223. data/spec/lib/oauth/client_credentials/creator_spec.rb +0 -44
  224. data/spec/lib/oauth/client_credentials/issuer_spec.rb +0 -86
  225. data/spec/lib/oauth/client_credentials/validation_spec.rb +0 -54
  226. data/spec/lib/oauth/client_credentials_integration_spec.rb +0 -27
  227. data/spec/lib/oauth/client_credentials_request_spec.rb +0 -105
  228. data/spec/lib/oauth/client_spec.rb +0 -39
  229. data/spec/lib/oauth/code_request_spec.rb +0 -43
  230. data/spec/lib/oauth/code_response_spec.rb +0 -34
  231. data/spec/lib/oauth/error_response_spec.rb +0 -61
  232. data/spec/lib/oauth/error_spec.rb +0 -23
  233. data/spec/lib/oauth/forbidden_token_response_spec.rb +0 -23
  234. data/spec/lib/oauth/helpers/scope_checker_spec.rb +0 -64
  235. data/spec/lib/oauth/helpers/unique_token_spec.rb +0 -20
  236. data/spec/lib/oauth/helpers/uri_checker_spec.rb +0 -218
  237. data/spec/lib/oauth/invalid_token_response_spec.rb +0 -56
  238. data/spec/lib/oauth/password_access_token_request_spec.rb +0 -96
  239. data/spec/lib/oauth/pre_authorization_spec.rb +0 -160
  240. data/spec/lib/oauth/refresh_token_request_spec.rb +0 -166
  241. data/spec/lib/oauth/scopes_spec.rb +0 -149
  242. data/spec/lib/oauth/token_request_spec.rb +0 -96
  243. data/spec/lib/oauth/token_response_spec.rb +0 -85
  244. data/spec/lib/oauth/token_spec.rb +0 -116
  245. data/spec/lib/request/strategy_spec.rb +0 -53
  246. data/spec/lib/server_spec.rb +0 -59
  247. data/spec/models/doorkeeper/access_grant_spec.rb +0 -36
  248. data/spec/models/doorkeeper/access_token_spec.rb +0 -418
  249. data/spec/models/doorkeeper/application_spec.rb +0 -303
  250. data/spec/requests/applications/applications_request_spec.rb +0 -94
  251. data/spec/requests/applications/authorized_applications_spec.rb +0 -30
  252. data/spec/requests/endpoints/authorization_spec.rb +0 -71
  253. data/spec/requests/endpoints/token_spec.rb +0 -71
  254. data/spec/requests/flows/authorization_code_errors_spec.rb +0 -76
  255. data/spec/requests/flows/authorization_code_spec.rb +0 -149
  256. data/spec/requests/flows/client_credentials_spec.rb +0 -86
  257. data/spec/requests/flows/implicit_grant_errors_spec.rb +0 -32
  258. data/spec/requests/flows/implicit_grant_spec.rb +0 -61
  259. data/spec/requests/flows/password_spec.rb +0 -197
  260. data/spec/requests/flows/refresh_token_spec.rb +0 -174
  261. data/spec/requests/flows/revoke_token_spec.rb +0 -157
  262. data/spec/requests/flows/skip_authorization_spec.rb +0 -59
  263. data/spec/requests/protected_resources/metal_spec.rb +0 -14
  264. data/spec/requests/protected_resources/private_api_spec.rb +0 -81
  265. data/spec/routing/custom_controller_routes_spec.rb +0 -75
  266. data/spec/routing/default_routes_spec.rb +0 -39
  267. data/spec/routing/scoped_routes_spec.rb +0 -31
  268. data/spec/spec_helper.rb +0 -4
  269. data/spec/spec_helper_integration.rb +0 -74
  270. data/spec/support/dependencies/factory_girl.rb +0 -2
  271. data/spec/support/helpers/access_token_request_helper.rb +0 -11
  272. data/spec/support/helpers/authorization_request_helper.rb +0 -41
  273. data/spec/support/helpers/config_helper.rb +0 -9
  274. data/spec/support/helpers/model_helper.rb +0 -72
  275. data/spec/support/helpers/request_spec_helper.rb +0 -88
  276. data/spec/support/helpers/url_helper.rb +0 -56
  277. data/spec/support/http_method_shim.rb +0 -38
  278. data/spec/support/orm/active_record.rb +0 -3
  279. data/spec/support/shared/controllers_shared_context.rb +0 -65
  280. data/spec/support/shared/models_shared_examples.rb +0 -52
  281. data/spec/validators/redirect_uri_validator_spec.rb +0 -123
  282. data/spec/version/version_spec.rb +0 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8d8d3550d8406d4abb224c4960d1d6e8a0c4c706
4
- data.tar.gz: b12408cb8b0dc2b14ee69b57798943b5c1bfaa30
2
+ SHA256:
3
+ metadata.gz: 9b8f700b4b7e5e40df07c8679ec477db21fe96ed05d70a5e6cb50c62cac886c2
4
+ data.tar.gz: cc34f22bd2800620f9b901a0025f569a0299a1105a7350ba95b62b34b7f5cdad
5
5
  SHA512:
6
- metadata.gz: 0674af950f6070d6457e09f73fc89736b092ae6595e484ca6e67e7f126912ea007509d9249fdc4eb01e66bf981c1e49da33712203d8428d10401a43faabd1cfd
7
- data.tar.gz: e447513c202dfde4c622b898da2a98dff64272193136fe399b890bb97488e7915156a2588caa6de3566db411f4c7dfa89e88be3a8b8d0a76511251f2f980c382
6
+ metadata.gz: 27d0ae20071180742cb735351165d808d8d3a6f0571ce12fc741f572fb9f69c789d760c299fa5a31814790611474e3eed12fb2a8ab4902151c21a847855fa8d3
7
+ data.tar.gz: 64e39c64aa61cf27ee0418be14880b9bb1ce23159a6ee61af4d32b1a187ddcb32f70402799bb9f673a1d3a1efe1abd2e9b940564d05e161a7aee737497af1d54
@@ -1,15 +1,387 @@
1
- # News
1
+ # Changelog
2
+
3
+ See https://github.com/doorkeeper-gem/doorkeeper/wiki/Migration-from-old-versions for
4
+ upgrade guides.
2
5
 
3
6
  User-visible changes worth mentioning.
4
7
 
5
- ## master
8
+ ## main
9
+
10
+ - [#PR ID] Add your PR description here.
11
+
12
+ ## 5.5.2
13
+
14
+ - [#1502] Drop support for Ruby 2.4 because of EOL.
15
+ - [#1504] Updated the url fragment in the comment for code documentation.
16
+ - [#1512] Fix form behavior when response mode is form_post.
17
+ - [#1511] Fix that authorization code is returned by fragment if response_mode is fragament.
18
+
19
+ ## 5.5.1
20
+
21
+ - [#1496] Revoke `old_refresh_token` if `previous_refresh_token` is present.
22
+ - [#1495] Fix `respond_to` undefined in API-only mode
23
+ - [#1488] Verify client authentication for Resource Owner Password Grant when
24
+ `config.skip_client_authentication_for_password_grant` is set and the client credentials
25
+ are sent in a HTTP Basic auth header.
26
+
27
+ ## 5.5.0
28
+
29
+ - [#1482] Simplify `TokenInfoController` to be overridable (extract response rendering).
30
+ - [#1478] Fix ownership association and Rake tasks when custom models configured.
31
+ - [#1477] Respect `ActiveRecord::Base.pluralize_table_names` for Doorkeeper table names.
32
+
33
+ ## 5.5.0.rc2
34
+
35
+ - [#1473] Enable `Applications` and `AuthorizedApplications` controllers in API mode.
36
+
37
+ **[IMPORTANT]** you can still skip these controllers using `skip_controllers` in
38
+ `use_doorkeeper` inside `routes.rb`. Please do it in case you don't need them.
39
+
40
+ - [#1472] Fix `establish_connection` configuration for custom defined models.
41
+ - [#1471] Add support for Ruby 3.0.
42
+ - [#1469] Check if `redirect_uri` exists.
43
+ - [#1465] Memoize nil doorkeeper_token.
44
+ - [#1459] Use built-in Ruby option to remove padding in PKCE code challenge value.
45
+ - [#1457] Make owner_id a bigint for newly-generated owner migrations
46
+ - [#1452] Empty previous_refresh_token only if present.
47
+ - [#1440] Validate empty host in redirect_uri.
48
+ - [#1438] Add form post response mode.
49
+ - [#1458] Make `config.skip_client_authentication_for_password_grant` a long term configuration option.
50
+
51
+ ## 5.5.0.rc1
52
+
53
+ - [#1435] Make error response not redirectable when client is unauthorized
54
+ - [#1426] Ensure ActiveRecord callbacks are executed on token revocation.
55
+ - [#1407] Remove redundant and complex to support helpers froms tests (`should_have_json`, etc).
56
+ - [#1416] Don't add introspection route if token introspection completely disabled.
57
+ - [#1410] Properly memoize `current_resource_owner` value (consider `nil` and `false` values).
58
+ - [#1415] Ignore PKCE params for non-PKCE grants.
59
+ - [#1418] Add ability to register custom OAuth Grant Flows.
60
+ - [#1420] Require client authentication for Resource Owner Password Grant as stated in OAuth RFC.
61
+
62
+ **[IMPORTANT]** you need to create a new OAuth client (`Doorkeeper::Application`) if you didn't
63
+ have it before and use client credentials in HTTP Basic auth if you previously used this grant
64
+ flow without client authentication. To opt out of this you could set the
65
+ `skip_client_authentication_for_password_grant` configuration option to `true`, but note that
66
+ this is in violation of the OAuth spec and represents a security risk.
67
+ All the users of your provider application now need to include client credentials when they use
68
+ this grant flow.
69
+
70
+ - [#1421] Add Resource Owner instance to authorization hook context for `custom_access_token_expires_in`
71
+ configuration option to allow resource owner based Access Tokens TTL.
72
+
73
+ ## 5.4.0
74
+
75
+ - [#1404] Make `Doorkeeper::Application#read_attribute_for_serialization` public.
76
+
77
+ ## 5.4.0.rc2
78
+
79
+ - [#1371] Add `#as_json` method and attributes serialization restriction for Application model.
80
+ Fixes information disclosure vulnerability (CVE-2020-10187).
81
+
82
+ **[IMPORTANT]** you need to re-implement `#as_json` method for Doorkeeper Application model
83
+ if you previously used `#to_json` serialization with custom options or attributes or rely on
84
+ JSON response from /oauth/applications.json or /oauth/authorized_applications.json. This change
85
+ is a breaking change which restricts serialized attributes to a very small set of columns.
86
+
87
+ - [#1395] Fix `NameError: uninitialized constant Doorkeeper::AccessToken` for Rake tasks.
88
+ - [#1397] Add `as: :doorkeeper_application` on Doorkeeper application form in order to support
89
+ custom configured application model.
90
+ - [#1400] Correctly yield the application instance to `allow_grant_flow_for_client?` config
91
+ option (fixes #1398).
92
+ - [#1402] Handle trying authorization with client credentials.
93
+
94
+ ## 5.4.0.rc1
95
+ - [#1366] Sets expiry of token generated using `refresh_token` to that of original token. (Fixes #1364)
96
+ - [#1354] Add `authorize_resource_owner_for_client` option to authorize the calling user to access an application.
97
+ - [#1355] Allow to enable polymorphic Resource Owner association for Access Token & Grant
98
+ models (`use_polymorphic_resource_owner` configuration option).
99
+
100
+ **[IMPORTANT]** Review your custom patches or extensions for Doorkeeper internals if you
101
+ have such - since now Doorkeeper passes Resource Owner instance to every objects and not
102
+ just it's ID. See PR description for details.
103
+
104
+ - [#1356] Remove duplicated scopes from Access Tokens and Grants on attribute assignment.
105
+ - [#1357] Fix `Doorkeeper::OAuth::PreAuthorization#as_json` method causing
106
+ `Stack level too deep` error with AMS (fix #1312).
107
+ - [#1358] Deprecate `active_record_options` configuration option.
108
+ - [#1359] Refactor Doorkeeper configuration options DSL to make it easy to reuse it
109
+ in external extensions.
110
+ - [#1360] Increase `matching_token_for` lookup size to 10 000 and make it configurable.
111
+ - [#1371] Fix controllers to use valid classes in case Doorkeeper has custom models configured.
112
+ - [#1370] Fix revocation response for invalid token and unauthorized requests to conform with RFC 7009 (fixes #1362).
113
+
114
+ **[IMPORTANT]** now fully according to RFC 7009 nobody can do a revocation request without `client_id`
115
+ (for public clients) and `client_secret` (for private clients). Please update your apps to include that
116
+ info in the revocation request payload.
117
+
118
+ - [#1373] Make Doorkeeper routes mapper reusable in extensions.
119
+ - [#1374] Revoke and issue client credentials token in a transaction with a row lock.
120
+ - [#1384] Add context object with auth/pre_auth and issued_token for authorization hooks.
121
+ - [#1387] Add `AccessToken#create_for` and use in `RefreshTokenRequest`.
122
+ - [#1392] Fix `enable_polymorphic_resource_owner` migration template to have proper index name.
123
+ - [#1393] Improve Applications #show page with more informative data on client secret and scopes.
124
+ - [#1394] Use Ruby `autoload` feature to load Doorkeeper files.
125
+
126
+ ## 5.3.3
127
+
128
+ - [#1404] Backport: Make `Doorkeeper::Application#read_attribute_for_serialization` public.
129
+
130
+ ## 5.3.2
131
+
132
+ - [#1371] Backport: add `#as_json` method and attributes serialization restriction for Application model.
133
+ Fixes information disclosure vulnerability (CVE-2020-10187).
134
+
135
+ ## 5.3.1
136
+
137
+ - [#1360] Backport: Increase `matching_token_for` batch lookup size to 10 000 and make it configurable.
138
+
139
+ ## 5.3.0
140
+
141
+ - [#1339] Validate Resource Owner in `PasswordAccessTokenRequest` against `nil` and `false` values.
142
+ - [#1341] Fix `refresh_token_revoked_on_use` with `hash_token_secrets` enabled.
143
+ - [#1343] Fix ruby 2.7 kwargs warning in InvalidTokenResponse.
144
+ - [#1345] Allow to set custom classes for Doorkeeper models, extract reusable AR mixins.
145
+ - [#1346] Refactor `Doorkeeper::Application#to_json` into convenient `#as_json` (fix #1344).
146
+ - [#1349] Fix `Doorkeeper::Application` AR associations using an incorrect foreign key name when using a custom class.
147
+ - [#1318] Make existing token revocation for client credentials optional and disable it by default.
148
+
149
+ **[IMPORTANT]** This is a change compared to the behaviour of version 5.2.
150
+ If you were relying on access tokens being revoked once the same client
151
+ requested a new access token, reenable it with `revoke_previous_client_credentials_token` in Doorkeeper
152
+ initialization file.
153
+
154
+ ## 5.2.6
155
+
156
+ - [#1404] Backport: Make `Doorkeeper::Application#read_attribute_for_serialization` public.
157
+
158
+ ## 5.2.5
159
+
160
+ - [#1371] Backport: add `#as_json` method and attributes serialization restriction for Application model.
161
+ Fixes information disclosure vulnerability (CVE-2020-10187).
162
+
163
+ ## 5.2.4
164
+
165
+ - [#1360] Backport: Increase `matching_token_for` batch lookup size to 10 000 and make it configurable.
166
+
167
+ ## 5.2.3
168
+
169
+ - [#1334] Remove `application_secret` flash helper and `redirect_to` keyword.
170
+ - [#1331] Move redirect_uri_validator to where it is used (`Application` model).
171
+ - [#1326] Move response_type check in pre_authorization to a method to be easily to override.
172
+ - [#1329] Fix `find_in_batches` order warning.
173
+
174
+ ## 5.2.2
175
+
176
+ - [#1320] Call configured `authenticate_resource_owner` method once per request.
177
+ - [#1315] Allow generation of new secret with `Doorkeeper::Application#renew_secret`.
178
+ - [#1309] Allow `Doorkeeper::Application#to_json` to work without arguments.
179
+
180
+ ## 5.2.1
181
+
182
+ - [#1308] Fix flash types for `api_only` mode (no flashes for `ActionController::API`).
183
+ - [#1306] Fix interpolation of `missing_param` I18n.
184
+
185
+ ## 5.2.0
186
+
187
+ - [#1305] Make `Doorkeeper::ApplicationController` to inherit from `ActionController::API` in cases
188
+ when `api_mode` enabled (fixes #1302).
189
+
190
+ ## 5.2.0.rc3
191
+
192
+ - [#1298] Slice strong params so doesn't error with Rails forms.
193
+ - [#1300] Limiting access to attributes of pre_authorization.
194
+ - [#1296] Adding client_id to strong parameters.
195
+
196
+ **[IMPORTANT]** `Doorkeeper::Server#client_via_uid` was removed.
197
+
198
+ - [#1293] Move ar specific redirect uri validator to ar orm directory.
199
+ - [#1288] Allow to pass attributes to the `Doorkeeper::OAuth::PreAuthorization#as_json` method to customize
200
+ the PreAuthorization response.
201
+ - [#1286] Add ability to customize grant flows per application (OAuth client) (#1245 , #1207)
202
+ - [#1283] Allow to customize base class for `Doorkeeper::ApplicationMetalController` (new configuration
203
+ option called `base_metal_controller` (fix #1273).
204
+ - [#1277] Prevent requested scope be empty on authorization request, handle and add description for invalid request.
205
+
206
+ ## 5.2.0.rc2
207
+
208
+ - [#1270] Find matching tokens in batches for `reuse_access_token` option (fix #1193).
209
+ - [#1271] Reintroduce existing token revocation for client credentials.
210
+
211
+ **[IMPORTANT]** If you rely on being able to fetch multiple access tokens from the same
212
+ client using client credentials flow, you should skip to version 5.3, where this behaviour
213
+ is deactivated by default.
214
+
215
+ - [#1269] Update initializer template documentation.
216
+ - [#1266] Use strong parameters within pre-authorization.
217
+ - [#1264] Add :before_successful_authorization and :after_successful_authorization hooks in TokensController
218
+ - [#1263] Response properly when introspection fails and fix configurations's user guide.
219
+
220
+ ## 5.2.0.rc1
221
+
222
+ - [#1260], [#1262] Improve Token Introspection configuration option (access to tokens, client).
223
+ - [#1257] Add constraint configuration when using client authentication on introspection endpoint.
224
+ - [#1252] Returning `unauthorized` when the revocation of the token should not be performed due to wrong permissions.
225
+ - [#1249] Specify case sensitive uniqueness to remove Rails 6 deprecation message
226
+ - [#1248] Display the Application Secret in HTML after creating a new application even when `hash_application_secrets` is used.
227
+ - [#1248] Return the unhashed Application Secret in the JSON response after creating new application even when `hash_application_secrets` is used.
228
+ - [#1238] Better support for native app with support for custom scheme and localhost redirection.
229
+
230
+ ## 5.1.2
231
+
232
+ - [#1404] Backport: Make `Doorkeeper::Application#read_attribute_for_serialization` public.
233
+
234
+ ## 5.1.1
235
+
236
+ - [#1371] Backport: add `#as_json` method and attributes serialization restriction for Application model.
237
+ Fixes information disclosure vulnerability (CVE-2020-10187).
238
+
239
+ ## 5.1.0
240
+
241
+ - [#1243] Add nil check operator in token checking at token introspection.
242
+ - [#1241] Explaining foreign key options for resource owner in a single place
243
+ - [#1237] Allow to set blank redirect URI if Doorkeeper configured to use redirect URI-less grant flows.
244
+ - [#1234] Fix `StaleRecordsCleaner` to properly work with big amount of records.
245
+ - [#1228] Allow to explicitly set non-expiring tokens in `custom_access_token_expires_in` configuration
246
+ option using `Float::INIFINITY` return value.
247
+ - [#1224] Do not try to store token if not found by fallback hashing strategy.
248
+ - [#1223] Update Hound/Rubocop rules, correct Doorkeeper codebase to follow style-guides.
249
+ - [#1220] Drop Rails 4.2 & Ruby < 2.4 support.
250
+
251
+ ## 5.1.0.rc2
252
+
253
+ - [#1208] Unify hashing implementation into secret storing strategies
254
+
255
+ **[IMPORTANT]** If you have been using the master branch of doorkeeper with bcrypt in your Gemfile.lock,
256
+ your application secrets have been hashed using BCrypt. To restore this behavior, use the initializer option
257
+ `hash_application_secrets using: 'Doorkeeper::SecretStoring::BCrypt`.
258
+
259
+ - [#1216] Add nil check to `expires_at` method.
260
+ - [#1215] Fix deprecates for Rails 6.
261
+ - [#1214] Scopes field accepts array.
262
+ - [#1209] Fix tokens validation for Token Introspection request.
263
+ - [#1202] Use correct HTTP status codes for error responses.
264
+
265
+ **[IMPORTANT]**: this change might break your application if you were relying on the previous
266
+ 401 status codes, this is now a 400 by default, or a 401 for `invalid_client` and `invalid_token` errors.
267
+
268
+ - [#1201] Fix custom TTL block `client` parameter to always be an `Doorkeeper::Application` instance.
269
+
270
+ **[IMPORTANT]**: those who defined `custom_access_token_expires_in` configuration option need to check
271
+ their block implementation: if you are using `oauth_client.application` to get `Doorkeeper::Application`
272
+ instance, then you need to replace it with just `oauth_client`.
273
+
274
+ - [#1200] Increase default Doorkeeper access token value complexity (`urlsafe_base64` instead of just `hex`)
275
+ matching RFC6749/RFC6750.
276
+
277
+ **[IMPORTANT]**: this change have possible side-effects in case you have custom database constraints for
278
+ access token value, application secrets, refresh tokens or you patched Doorkeeper models and introduced
279
+ token value validations, or you are using database with case-insensitive WHERE clause like MySQL
280
+ (you can face some collisions). Before this change access token value matched `[a-f0-9]` regex, and now
281
+ it matches `[a-zA-Z0-9\-_]`. In case you have such restrictions and your don't use custom token generator
282
+ please change configuration option `default_generator_method` to `:hex`.
283
+
284
+ - [#1195] Allow to customize Token Introspection response (fixes #1194).
285
+ - [#1189] Option to set `token_reuse_limit`.
286
+ - [#1191] Try to load bcrypt for hashing of application secrets, but add fallback.
287
+
288
+ ## 5.1.0.rc1
289
+
290
+ - [#1188] Use `params` instead of `request.POST` in tokens controller (fixes #1183).
291
+ - [#1182] Fix loopback IP redirect URIs to conform with RFC8252, p. 7.3 (fixes #1170).
292
+ - [#1179] Authorization Code Grant Flow without client id returns invalid_client error.
293
+ - [#1177] Allow to limit `scopes` for certain `grant_types`
294
+ - [#1176] Fix test factory support for `factory_bot_rails`
295
+ - [#1175] Internal refactor: use `scopes_string` inside `scopes`.
296
+ - [#1168] Allow optional hashing of tokens and secrets.
297
+ - [#1164] Fix error when `root_path` is not defined.
298
+ - [#1162] Fix `enforce_content_type` for requests without body.
299
+
300
+ ## 5.0.3
301
+
302
+ - [#1371] Backport: add `#as_json` method and attributes serialization restriction for Application model.
303
+ Fixes information disclosure vulnerability (CVE-2020-10187).
304
+
305
+ ## 5.0.2
306
+
307
+ - [#1158] Fix initializer template: change `handle_auth_errors` option
308
+ - [#1157] Remove redundant index from migration template.
309
+
310
+ ## 5.0.1
311
+
312
+ - [#1154] Refactor `StaleRecordsCleaner` to be ORM agnostic.
313
+ - [#1152] Fix migration template: change resource owner data type from integer to Rails generic `references`
314
+ - [#1151] Fix Refresh Token strategy: add proper validation of client credentials both for Public & Private clients.
315
+ - [#1149] Fix for `URIChecker#valid_for_authorization?` false negative when query is blank, but `?` present.
316
+ - [#1140] Allow rendering custom errors from exceptions (issue #844). Originally opened as [#944].
317
+ - [#1138] Revert regression bug (check for token expiration in Authorizations controller so authorization
318
+ triggers every time)
319
+
320
+ ## 5.0.0
321
+
322
+ - [#1127] Change the token_type initials of the Banner Token to uppercase to comply with the RFC6750 specification.
323
+
324
+ ## 5.0.0.rc2
325
+
326
+ - [#1122] Fix AuthorizationsController#new error response to be in JSON format
327
+ - [#1119] Fix token revocation for OAuth apps using "implicit" grant flow
328
+ - [#1116] `AccessGrant`s will now be revoked along with `AccessToken`s when
329
+ hitting the `AuthorizedApplicationController#destroy` route.
330
+ - [#1114] Make token info endpoint's attributes consistent with token creation
331
+ - [#1108] Simple formating of callback URLs when listing oauth applications
332
+ - [#1106] Restrict access to AdminController with 'Forbidden 403' if admin_authenticator is not
333
+ configured by developers.
334
+
335
+ ## 5.0.0.rc1
336
+
337
+ - [#1103] Allow customizing use_refresh_token
338
+ - [#1089] Removed enable_pkce_without_secret configuration option
339
+ - [#1102] Expiration time based on scopes
340
+ - [#1099] All the configuration variables in `Doorkeeper.configuration` now
341
+ always return a non-nil value (`true` or `false`)
342
+ - [#1099] ORM / Query optimization: Do not revoke the refresh token if it is not enabled
343
+ in `doorkeeper.rb`
344
+ - [#996] Expiration Time Base On Grant Type
345
+ - [#997] Allow PKCE authorization_code flow as specified in RFC7636
346
+ - [#907] Fix lookup for matching tokens in certain edge-cases
347
+ - [#992] Add API option to use Doorkeeper without management views for API only
348
+ Rails applications (`api_only`)
349
+ - [#1045] Validate redirect_uri as the native URI when making authorization code requests
350
+ - [#1048] Remove deprecated `Doorkeeper#configured?`, `Doorkeeper#database_installed?`, and
351
+ `Doorkeeper#installed?` method
352
+ - [#1031] Allow public clients to authenticate without `client_secret`. Define an app as
353
+ either public or private/confidential
354
+
355
+ **[IMPORTANT]**: all the applications (clients) now are considered as private by default.
356
+ You need to manually change `confidential` column to `false` if you are using public clients,
357
+ in other case your mobile (or other) applications will not be able to authorize.
358
+ See [#1142](https://github.com/doorkeeper-gem/doorkeeper/issues/1142) for more details.
359
+
360
+ - [#1010] Add configuration to enforce configured scopes (`default_scopes` and
361
+ `optional_scopes`) for applications
362
+ - [#1060] Ensure that the native redirect_uri parameter matches with redirect_uri of the client
363
+ - [#1064] Add :before_successful_authorization and :after_successful_authorization hooks
364
+ - [#1069] Upgrade Bootstrap to 4 for Admin
365
+ - [#1068] Add rake task to cleanup databases that can become large over time
366
+ - [#1072] AuthorizationsController: Memoize strategy.authorize_response result to enable
367
+ subclasses to use the response object.
368
+ - [#1075] Call `before_successful_authorization` and `after_successful_authorization` hooks
369
+ on `create` action as well as `new`
370
+ - [#1082] Fix #916: remember routes mapping and use it required places (fix error with
371
+ customized Token Info route).
372
+ - [#1086, #1088] Fix bug with receiving default scopes in the token even if they are
373
+ not present in the application scopes (use scopes intersection).
374
+ - [#1076] Add config to enforce content type to application/x-www-form-urlencoded
375
+ - Fix bug with `force_ssl_in_redirect_uri` when it breaks existing applications with an
376
+ SSL redirect_uri.
6
377
 
7
378
  ## 4.4.3
8
- - [#1143] Adds a config option opt_out_native_route_change to opt out of the
9
- breaking api changed introduced in
10
- https://github.com/doorkeeper-gem/doorkeeper/pull/1003
379
+
380
+ - [#1143] Adds a config option `opt_out_native_route_change` to opt out of the breaking api
381
+ changed introduced in https://github.com/doorkeeper-gem/doorkeeper/pull/1003
11
382
 
12
383
  ## 4.4.2
384
+
13
385
  - [#1130] Backport fix for native redirect_uri from 5.x.
14
386
 
15
387
  ## 4.4.1
@@ -21,6 +393,11 @@ User-visible changes worth mentioning.
21
393
 
22
394
  - [#1120] Backport security fix from 5.x for token revocation when using public clients
23
395
 
396
+ **[IMPORTANT]**: all the applications (clients) now are considered as private by default.
397
+ You need to manually change `confidential` column to `false` if you are using public clients,
398
+ in other case your mobile (or other) applications will not be able to authorize.
399
+ See [#1142](https://github.com/doorkeeper-gem/doorkeeper/issues/1142) for more details.
400
+
24
401
  ## 4.3.2
25
402
 
26
403
  - [#1053] Support authorizing with query params in the request `redirect_uri` if explicitly present in app's `Application#redirect_uri`
@@ -48,6 +425,10 @@ User-visible changes worth mentioning.
48
425
  - [#985] Generate valid migration files for Rails >= 5
49
426
  - [#972] Replace Struct subclassing with block-form initialization
50
427
  - [#1003] Use URL query param to pass through native redirect auth code so automated apps can find it.
428
+
429
+ **[IMPORTANT]**: Previously authorization code response route was `/oauth/authorize/<code>`,
430
+ now it is `oauth/authorize/native?code=<code>` (in order to help applications to automatically find the code value).
431
+
51
432
  - [#868] `Scopes#&` and `Scopes#+` now take an array or any other enumerable
52
433
  object.
53
434
  - [#1019] Remove translation not in use: `invalid_resource_owner`.
@@ -78,7 +459,7 @@ User-visible changes worth mentioning.
78
459
  ## 4.2.0
79
460
 
80
461
  - Security fix: Address CVE-2016-6582, implement token revocation according to
81
- spec (tokens might not be revoked if client follows the spec).
462
+ spec (tokens might not be revoked if client follows the spec).
82
463
  - [#873] Add hooks to Doorkeeper::ApplicationMetalController
83
464
  - [#871] Allow downstream users to better utilize doorkeeper spec factories by
84
465
  eliminating name conflict on `:user` factory.
@@ -112,6 +493,7 @@ User-visible changes worth mentioning.
112
493
  ```
113
494
  rails generate doorkeeper:previous_refresh_token
114
495
  ```
496
+
115
497
  - [#811] Toughen parameters filter with exact match
116
498
  - [#813] Applications admin bugfix
117
499
  - [#799] Fix Ruby Warnings
@@ -205,11 +587,10 @@ User-visible changes worth mentioning.
205
587
  - Removes `doorkeeper_for` deprecation notice.
206
588
  - Remove `applications.scopes` upgrade notice.
207
589
 
208
-
209
590
  ## 2.2.2
210
591
 
211
592
  - [#541] Fixed `undefined method attr_accessible` problem on Rails 4
212
- (happens only when ProtectedAttributes gem is used) in #599
593
+ (happens only when ProtectedAttributes gem is used) in #599
213
594
 
214
595
  ## 2.2.1
215
596
 
@@ -228,7 +609,6 @@ User-visible changes worth mentioning.
228
609
  - [#627] i18n fallbacks to english
229
610
  - Moved CHANGELOG to NEWS.md
230
611
 
231
-
232
612
  ## 2.1.4 - 2015-03-27
233
613
 
234
614
  - [#595] HTTP spec: Add `scope` for refresh token scope param
@@ -236,12 +616,10 @@ User-visible changes worth mentioning.
236
616
  - [#567] Add Grape helpers for easier integration with Grape framework
237
617
  - [#606] Add custom access token expiration support for Client Credentials flow
238
618
 
239
-
240
619
  ## 2.1.3 - 2015-03-01
241
620
 
242
621
  - [#588] Fixes scopes_match? bug that skipped authorization form in some cases
243
622
 
244
-
245
623
  ## 2.1.2 - 2015-02-25
246
624
 
247
625
  - [#574] Remove unused update authorization route.
@@ -250,17 +628,15 @@ User-visible changes worth mentioning.
250
628
  - [#583] Database connection bugfix in certain scenarios.
251
629
  - Testing improvements
252
630
 
253
-
254
631
  ## 2.1.1 - 2015-02-06
255
632
 
256
633
  - Remove `wildcard_redirect_url` option
257
634
  - [#481] Customize token flow OAuth expirations with a config lambda
258
635
  - [#568] TokensController: Memoize strategy.authorize_response result to enable
259
- subclasses to use the response object.
636
+ subclasses to use the response object.
260
637
  - [#571] Fix database initialization issues in some configurations.
261
638
  - Documentation improvements
262
639
 
263
-
264
640
  ## 2.1.0 - 2015-01-13
265
641
 
266
642
  - [#540] Include `created_at` in response.
@@ -280,12 +656,10 @@ User-visible changes worth mentioning.
280
656
  Disables implicit and password grant flows by default.
281
657
  - [#510, #544, 722113f] Revoked refresh token response bugfix.
282
658
 
283
-
284
659
  ## 2.0.1 - 2014-12-17
285
660
 
286
661
  - [#525, #526, #527] Fix `ActiveRecord::NoDatabaseError` on gem load.
287
662
 
288
-
289
663
  ## 2.0.0 - 2014-12-16
290
664
 
291
665
  ### Backward incompatible changes
@@ -419,7 +793,7 @@ User-visible changes worth mentioning.
419
793
  tokens for an application/owner instead of deleting them.
420
794
  - [#333] Rails 4.1 support
421
795
  - internals
422
- - Removes jQuery dependency [fixes #300] [PR #312 is related]
796
+ - Removes jQuery dependency [fixes #300][pr #312 is related]
423
797
  - [#294] Client uid and secret will be generated only if not present.
424
798
  - [#316] Test warnings addressed.
425
799
  - [#338] Rspec 3 syntax.
@@ -537,7 +911,7 @@ Official support for rubinius was removed.
537
911
  - Add support for mongoid
538
912
  - [#78, #128, #137, #138] Application Ownership
539
913
  - [#92] Allow users to skip controllers
540
- - [#99] Remove deprecated warnings for data-* attributes [@towerhe](https://github.com/towerhe)
914
+ - [#99] Remove deprecated warnings for data-\* attributes [@towerhe](https://github.com/towerhe)
541
915
  - [#101] Return existing access_token for PasswordAccessTokenRequest [@benoist](https://github.com/benoist)
542
916
  - [#104] Changed access token scopes example code to default_scopes and optional_scopes [@amkirwan](https://github.com/amkirwan)
543
917
  - [#107] Fix typos in initializer
@@ -599,7 +973,7 @@ Official support for rubinius was removed.
599
973
  - [#50] Fix typos [@tomekw](https://github.com/tomekw)
600
974
  - [#51] Updated the factory_girl_rails dependency, fix expires_in response which returned a float number instead of integer [@antekpiechnik](https://github.com/antekpiechnik)
601
975
  - [#62] Typos, .gitignore [@jaimeiniesta](https://github.com/jaimeiniesta)
602
- - [#65] Change _path redirections to _url redirections [@jaimeiniesta](https://github.com/jaimeiniesta)
976
+ - [#65] Change \_path redirections to \_url redirections [@jaimeiniesta](https://github.com/jaimeiniesta)
603
977
  - [#75] Fix unknown method #authenticate_admin! [@mattgreen](https://github.com/mattgreen)
604
978
  - Remove application link in authorized app view
605
979