doorkeeper 4.2.6 → 5.5.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of doorkeeper might be problematic. Click here for more details.

Files changed (274) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +1049 -0
  3. data/README.md +110 -353
  4. data/app/assets/stylesheets/doorkeeper/admin/application.css +2 -2
  5. data/app/controllers/doorkeeper/application_controller.rb +6 -7
  6. data/app/controllers/doorkeeper/application_metal_controller.rb +7 -11
  7. data/app/controllers/doorkeeper/applications_controller.rb +65 -16
  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 +115 -38
  12. data/app/helpers/doorkeeper/dashboard_helper.rb +10 -6
  13. data/app/views/doorkeeper/applications/_delete_form.html.erb +3 -1
  14. data/app/views/doorkeeper/applications/_form.html.erb +33 -21
  15. data/app/views/doorkeeper/applications/edit.html.erb +1 -1
  16. data/app/views/doorkeeper/applications/index.html.erb +18 -6
  17. data/app/views/doorkeeper/applications/new.html.erb +1 -1
  18. data/app/views/doorkeeper/applications/show.html.erb +40 -16
  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/doorkeeper/authorized_applications/index.html.erb +0 -1
  23. data/app/views/layouts/doorkeeper/admin.html.erb +16 -14
  24. data/config/locales/en.yml +34 -7
  25. data/lib/doorkeeper/config/abstract_builder.rb +28 -0
  26. data/lib/doorkeeper/config/option.rb +82 -0
  27. data/lib/doorkeeper/config/validations.rb +53 -0
  28. data/lib/doorkeeper/config.rb +514 -167
  29. data/lib/doorkeeper/engine.rb +11 -5
  30. data/lib/doorkeeper/errors.rb +25 -16
  31. data/lib/doorkeeper/grant_flow/fallback_flow.rb +15 -0
  32. data/lib/doorkeeper/grant_flow/flow.rb +44 -0
  33. data/lib/doorkeeper/grant_flow/registry.rb +50 -0
  34. data/lib/doorkeeper/grant_flow.rb +45 -0
  35. data/lib/doorkeeper/grape/authorization_decorator.rb +6 -4
  36. data/lib/doorkeeper/grape/helpers.rb +23 -12
  37. data/lib/doorkeeper/helpers/controller.rb +51 -14
  38. data/lib/doorkeeper/models/access_grant_mixin.rb +94 -27
  39. data/lib/doorkeeper/models/access_token_mixin.rb +284 -96
  40. data/lib/doorkeeper/models/application_mixin.rb +58 -27
  41. data/lib/doorkeeper/models/concerns/accessible.rb +2 -0
  42. data/lib/doorkeeper/models/concerns/expirable.rb +12 -6
  43. data/lib/doorkeeper/models/concerns/orderable.rb +15 -0
  44. data/lib/doorkeeper/models/concerns/ownership.rb +4 -7
  45. data/lib/doorkeeper/models/concerns/resource_ownerable.rb +47 -0
  46. data/lib/doorkeeper/models/concerns/reusable.rb +19 -0
  47. data/lib/doorkeeper/models/concerns/revocable.rb +3 -27
  48. data/lib/doorkeeper/models/concerns/scopes.rb +12 -2
  49. data/lib/doorkeeper/models/concerns/secret_storable.rb +106 -0
  50. data/lib/doorkeeper/oauth/authorization/code.rb +48 -12
  51. data/lib/doorkeeper/oauth/authorization/context.rb +17 -0
  52. data/lib/doorkeeper/oauth/authorization/token.rb +66 -28
  53. data/lib/doorkeeper/oauth/authorization/uri_builder.rb +7 -5
  54. data/lib/doorkeeper/oauth/authorization_code_request.rb +63 -10
  55. data/lib/doorkeeper/oauth/base_request.rb +35 -19
  56. data/lib/doorkeeper/oauth/base_response.rb +2 -0
  57. data/lib/doorkeeper/oauth/client/credentials.rb +9 -7
  58. data/lib/doorkeeper/oauth/client.rb +10 -11
  59. data/lib/doorkeeper/oauth/client_credentials/creator.rb +47 -4
  60. data/lib/doorkeeper/oauth/client_credentials/issuer.rb +16 -9
  61. data/lib/doorkeeper/oauth/client_credentials/validator.rb +56 -0
  62. data/lib/doorkeeper/oauth/client_credentials_request.rb +10 -11
  63. data/lib/doorkeeper/oauth/code_request.rb +8 -12
  64. data/lib/doorkeeper/oauth/code_response.rb +27 -15
  65. data/lib/doorkeeper/oauth/error.rb +5 -3
  66. data/lib/doorkeeper/oauth/error_response.rb +35 -15
  67. data/lib/doorkeeper/oauth/forbidden_token_response.rb +11 -3
  68. data/lib/doorkeeper/oauth/helpers/scope_checker.rb +23 -18
  69. data/lib/doorkeeper/oauth/helpers/unique_token.rb +20 -3
  70. data/lib/doorkeeper/oauth/helpers/uri_checker.rb +53 -3
  71. data/lib/doorkeeper/oauth/hooks/context.rb +21 -0
  72. data/lib/doorkeeper/oauth/invalid_request_response.rb +43 -0
  73. data/lib/doorkeeper/oauth/invalid_token_response.rb +29 -5
  74. data/lib/doorkeeper/oauth/nonstandard.rb +39 -0
  75. data/lib/doorkeeper/oauth/password_access_token_request.rb +44 -10
  76. data/lib/doorkeeper/oauth/pre_authorization.rb +135 -26
  77. data/lib/doorkeeper/oauth/refresh_token_request.rb +60 -31
  78. data/lib/doorkeeper/oauth/scopes.rb +26 -12
  79. data/lib/doorkeeper/oauth/token.rb +13 -9
  80. data/lib/doorkeeper/oauth/token_introspection.rb +202 -0
  81. data/lib/doorkeeper/oauth/token_request.rb +8 -20
  82. data/lib/doorkeeper/oauth/token_response.rb +14 -10
  83. data/lib/doorkeeper/oauth.rb +13 -0
  84. data/lib/doorkeeper/orm/active_record/access_grant.rb +6 -4
  85. data/lib/doorkeeper/orm/active_record/access_token.rb +5 -42
  86. data/lib/doorkeeper/orm/active_record/application.rb +6 -20
  87. data/lib/doorkeeper/orm/active_record/mixins/access_grant.rb +69 -0
  88. data/lib/doorkeeper/orm/active_record/mixins/access_token.rb +60 -0
  89. data/lib/doorkeeper/orm/active_record/mixins/application.rb +199 -0
  90. data/lib/doorkeeper/orm/active_record/redirect_uri_validator.rb +66 -0
  91. data/lib/doorkeeper/orm/active_record/stale_records_cleaner.rb +33 -0
  92. data/lib/doorkeeper/orm/active_record.rb +37 -8
  93. data/lib/doorkeeper/rails/helpers.rb +14 -13
  94. data/lib/doorkeeper/rails/routes/abstract_router.rb +35 -0
  95. data/lib/doorkeeper/rails/routes/mapper.rb +4 -2
  96. data/lib/doorkeeper/rails/routes/mapping.rb +9 -7
  97. data/lib/doorkeeper/rails/routes/registry.rb +45 -0
  98. data/lib/doorkeeper/rails/routes.rb +41 -28
  99. data/lib/doorkeeper/rake/db.rake +40 -0
  100. data/lib/doorkeeper/rake/setup.rake +11 -0
  101. data/lib/doorkeeper/rake.rb +14 -0
  102. data/lib/doorkeeper/request/authorization_code.rb +6 -4
  103. data/lib/doorkeeper/request/client_credentials.rb +3 -3
  104. data/lib/doorkeeper/request/code.rb +1 -1
  105. data/lib/doorkeeper/request/password.rb +5 -14
  106. data/lib/doorkeeper/request/refresh_token.rb +6 -5
  107. data/lib/doorkeeper/request/strategy.rb +4 -2
  108. data/lib/doorkeeper/request/token.rb +1 -1
  109. data/lib/doorkeeper/request.rb +62 -29
  110. data/lib/doorkeeper/secret_storing/base.rb +64 -0
  111. data/lib/doorkeeper/secret_storing/bcrypt.rb +60 -0
  112. data/lib/doorkeeper/secret_storing/plain.rb +33 -0
  113. data/lib/doorkeeper/secret_storing/sha256_hash.rb +26 -0
  114. data/lib/doorkeeper/server.rb +9 -11
  115. data/lib/doorkeeper/stale_records_cleaner.rb +24 -0
  116. data/lib/doorkeeper/validations.rb +5 -2
  117. data/lib/doorkeeper/version.rb +12 -1
  118. data/lib/doorkeeper.rb +111 -62
  119. data/lib/generators/doorkeeper/application_owner_generator.rb +28 -13
  120. data/lib/generators/doorkeeper/confidential_applications_generator.rb +33 -0
  121. data/lib/generators/doorkeeper/enable_polymorphic_resource_owner_generator.rb +39 -0
  122. data/lib/generators/doorkeeper/install_generator.rb +19 -9
  123. data/lib/generators/doorkeeper/migration_generator.rb +27 -10
  124. data/lib/generators/doorkeeper/pkce_generator.rb +33 -0
  125. data/lib/generators/doorkeeper/previous_refresh_token_generator.rb +31 -19
  126. data/lib/generators/doorkeeper/templates/add_confidential_to_applications.rb.erb +13 -0
  127. data/lib/generators/doorkeeper/templates/add_owner_to_application_migration.rb.erb +9 -0
  128. data/{spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb → lib/generators/doorkeeper/templates/add_previous_refresh_token_to_access_tokens.rb.erb} +3 -1
  129. data/lib/generators/doorkeeper/templates/enable_pkce_migration.rb.erb +8 -0
  130. data/lib/generators/doorkeeper/templates/enable_polymorphic_resource_owner_migration.rb.erb +17 -0
  131. data/lib/generators/doorkeeper/templates/initializer.rb +412 -33
  132. data/lib/generators/doorkeeper/templates/migration.rb.erb +88 -0
  133. data/lib/generators/doorkeeper/views_generator.rb +8 -4
  134. data/vendor/assets/stylesheets/doorkeeper/bootstrap.min.css +4 -5
  135. metadata +114 -276
  136. data/.coveralls.yml +0 -1
  137. data/.gitignore +0 -19
  138. data/.hound.yml +0 -13
  139. data/.rspec +0 -1
  140. data/.travis.yml +0 -26
  141. data/Appraisals +0 -14
  142. data/CONTRIBUTING.md +0 -47
  143. data/Gemfile +0 -10
  144. data/NEWS.md +0 -606
  145. data/RELEASING.md +0 -10
  146. data/Rakefile +0 -20
  147. data/app/validators/redirect_uri_validator.rb +0 -34
  148. data/doorkeeper.gemspec +0 -29
  149. data/gemfiles/rails_4_2.gemfile +0 -11
  150. data/gemfiles/rails_5_0.gemfile +0 -12
  151. data/gemfiles/rails_5_1.gemfile +0 -13
  152. data/lib/doorkeeper/oauth/client_credentials/validation.rb +0 -45
  153. data/lib/generators/doorkeeper/templates/add_owner_to_application_migration.rb +0 -7
  154. data/lib/generators/doorkeeper/templates/add_previous_refresh_token_to_access_tokens.rb +0 -11
  155. data/lib/generators/doorkeeper/templates/migration.rb +0 -68
  156. data/spec/controllers/application_metal_controller.rb +0 -10
  157. data/spec/controllers/applications_controller_spec.rb +0 -58
  158. data/spec/controllers/authorizations_controller_spec.rb +0 -218
  159. data/spec/controllers/protected_resources_controller_spec.rb +0 -300
  160. data/spec/controllers/token_info_controller_spec.rb +0 -52
  161. data/spec/controllers/tokens_controller_spec.rb +0 -88
  162. data/spec/dummy/Rakefile +0 -7
  163. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  164. data/spec/dummy/app/controllers/custom_authorizations_controller.rb +0 -7
  165. data/spec/dummy/app/controllers/full_protected_resources_controller.rb +0 -12
  166. data/spec/dummy/app/controllers/home_controller.rb +0 -17
  167. data/spec/dummy/app/controllers/metal_controller.rb +0 -11
  168. data/spec/dummy/app/controllers/semi_protected_resources_controller.rb +0 -11
  169. data/spec/dummy/app/helpers/application_helper.rb +0 -5
  170. data/spec/dummy/app/models/user.rb +0 -5
  171. data/spec/dummy/app/views/home/index.html.erb +0 -0
  172. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  173. data/spec/dummy/config/application.rb +0 -23
  174. data/spec/dummy/config/boot.rb +0 -9
  175. data/spec/dummy/config/database.yml +0 -15
  176. data/spec/dummy/config/environment.rb +0 -5
  177. data/spec/dummy/config/environments/development.rb +0 -29
  178. data/spec/dummy/config/environments/production.rb +0 -62
  179. data/spec/dummy/config/environments/test.rb +0 -44
  180. data/spec/dummy/config/initializers/active_record_belongs_to_required_by_default.rb +0 -6
  181. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  182. data/spec/dummy/config/initializers/doorkeeper.rb +0 -96
  183. data/spec/dummy/config/initializers/secret_token.rb +0 -9
  184. data/spec/dummy/config/initializers/session_store.rb +0 -8
  185. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  186. data/spec/dummy/config/locales/doorkeeper.en.yml +0 -5
  187. data/spec/dummy/config/routes.rb +0 -52
  188. data/spec/dummy/config.ru +0 -4
  189. data/spec/dummy/db/migrate/20111122132257_create_users.rb +0 -9
  190. data/spec/dummy/db/migrate/20120312140401_add_password_to_users.rb +0 -5
  191. data/spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb +0 -60
  192. data/spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb +0 -7
  193. data/spec/dummy/db/schema.rb +0 -67
  194. data/spec/dummy/public/404.html +0 -26
  195. data/spec/dummy/public/422.html +0 -26
  196. data/spec/dummy/public/500.html +0 -26
  197. data/spec/dummy/public/favicon.ico +0 -0
  198. data/spec/dummy/script/rails +0 -6
  199. data/spec/factories.rb +0 -28
  200. data/spec/generators/application_owner_generator_spec.rb +0 -22
  201. data/spec/generators/install_generator_spec.rb +0 -31
  202. data/spec/generators/migration_generator_spec.rb +0 -20
  203. data/spec/generators/templates/routes.rb +0 -3
  204. data/spec/generators/views_generator_spec.rb +0 -27
  205. data/spec/helpers/doorkeeper/dashboard_helper_spec.rb +0 -24
  206. data/spec/lib/config_spec.rb +0 -334
  207. data/spec/lib/doorkeeper_spec.rb +0 -150
  208. data/spec/lib/models/expirable_spec.rb +0 -50
  209. data/spec/lib/models/revocable_spec.rb +0 -59
  210. data/spec/lib/models/scopes_spec.rb +0 -43
  211. data/spec/lib/oauth/authorization/uri_builder_spec.rb +0 -41
  212. data/spec/lib/oauth/authorization_code_request_spec.rb +0 -80
  213. data/spec/lib/oauth/base_request_spec.rb +0 -160
  214. data/spec/lib/oauth/base_response_spec.rb +0 -45
  215. data/spec/lib/oauth/client/credentials_spec.rb +0 -88
  216. data/spec/lib/oauth/client_credentials/creator_spec.rb +0 -44
  217. data/spec/lib/oauth/client_credentials/issuer_spec.rb +0 -86
  218. data/spec/lib/oauth/client_credentials/validation_spec.rb +0 -54
  219. data/spec/lib/oauth/client_credentials_integration_spec.rb +0 -27
  220. data/spec/lib/oauth/client_credentials_request_spec.rb +0 -104
  221. data/spec/lib/oauth/client_spec.rb +0 -39
  222. data/spec/lib/oauth/code_request_spec.rb +0 -45
  223. data/spec/lib/oauth/code_response_spec.rb +0 -34
  224. data/spec/lib/oauth/error_response_spec.rb +0 -61
  225. data/spec/lib/oauth/error_spec.rb +0 -23
  226. data/spec/lib/oauth/forbidden_token_response_spec.rb +0 -23
  227. data/spec/lib/oauth/helpers/scope_checker_spec.rb +0 -64
  228. data/spec/lib/oauth/helpers/unique_token_spec.rb +0 -20
  229. data/spec/lib/oauth/helpers/uri_checker_spec.rb +0 -104
  230. data/spec/lib/oauth/invalid_token_response_spec.rb +0 -56
  231. data/spec/lib/oauth/password_access_token_request_spec.rb +0 -90
  232. data/spec/lib/oauth/pre_authorization_spec.rb +0 -155
  233. data/spec/lib/oauth/refresh_token_request_spec.rb +0 -154
  234. data/spec/lib/oauth/scopes_spec.rb +0 -122
  235. data/spec/lib/oauth/token_request_spec.rb +0 -98
  236. data/spec/lib/oauth/token_response_spec.rb +0 -85
  237. data/spec/lib/oauth/token_spec.rb +0 -116
  238. data/spec/lib/request/strategy_spec.rb +0 -53
  239. data/spec/lib/server_spec.rb +0 -49
  240. data/spec/models/doorkeeper/access_grant_spec.rb +0 -36
  241. data/spec/models/doorkeeper/access_token_spec.rb +0 -394
  242. data/spec/models/doorkeeper/application_spec.rb +0 -179
  243. data/spec/requests/applications/applications_request_spec.rb +0 -94
  244. data/spec/requests/applications/authorized_applications_spec.rb +0 -30
  245. data/spec/requests/endpoints/authorization_spec.rb +0 -71
  246. data/spec/requests/endpoints/token_spec.rb +0 -64
  247. data/spec/requests/flows/authorization_code_errors_spec.rb +0 -76
  248. data/spec/requests/flows/authorization_code_spec.rb +0 -148
  249. data/spec/requests/flows/client_credentials_spec.rb +0 -58
  250. data/spec/requests/flows/implicit_grant_errors_spec.rb +0 -32
  251. data/spec/requests/flows/implicit_grant_spec.rb +0 -61
  252. data/spec/requests/flows/password_spec.rb +0 -115
  253. data/spec/requests/flows/refresh_token_spec.rb +0 -174
  254. data/spec/requests/flows/revoke_token_spec.rb +0 -157
  255. data/spec/requests/flows/skip_authorization_spec.rb +0 -59
  256. data/spec/requests/protected_resources/metal_spec.rb +0 -14
  257. data/spec/requests/protected_resources/private_api_spec.rb +0 -81
  258. data/spec/routing/custom_controller_routes_spec.rb +0 -71
  259. data/spec/routing/default_routes_spec.rb +0 -35
  260. data/spec/routing/scoped_routes_spec.rb +0 -31
  261. data/spec/spec_helper.rb +0 -4
  262. data/spec/spec_helper_integration.rb +0 -63
  263. data/spec/support/dependencies/factory_girl.rb +0 -2
  264. data/spec/support/helpers/access_token_request_helper.rb +0 -11
  265. data/spec/support/helpers/authorization_request_helper.rb +0 -41
  266. data/spec/support/helpers/config_helper.rb +0 -9
  267. data/spec/support/helpers/model_helper.rb +0 -67
  268. data/spec/support/helpers/request_spec_helper.rb +0 -84
  269. data/spec/support/helpers/url_helper.rb +0 -55
  270. data/spec/support/http_method_shim.rb +0 -38
  271. data/spec/support/orm/active_record.rb +0 -3
  272. data/spec/support/shared/controllers_shared_context.rb +0 -69
  273. data/spec/support/shared/models_shared_examples.rb +0 -52
  274. data/spec/validators/redirect_uri_validator_spec.rb +0 -78
data/CHANGELOG.md ADDED
@@ -0,0 +1,1049 @@
1
+ # Changelog
2
+
3
+ See https://github.com/doorkeeper-gem/doorkeeper/wiki/Migration-from-old-versions for
4
+ upgrade guides.
5
+
6
+ User-visible changes worth mentioning.
7
+
8
+ ## main
9
+
10
+ - [#ID] Add your PR description here.
11
+
12
+ ## 5.5.4
13
+
14
+ - [#1535] Revert changes introduced in #1528 to allow query params in `redirect_uri` as per the spec.
15
+
16
+ ## 5.5.3
17
+
18
+ - [#1528] Don't allow extra query params in redirect_uri.
19
+ - [#1525] I18n source for forbidden token error is now `doorkeeper.errors.messages.forbidden_token.missing_scope`.
20
+ - [#1531] Disable `strict-loading` for Doorkeeper models by default.
21
+ - [#1532] Add support for Rails 7.
22
+
23
+ ## 5.5.2
24
+
25
+ - [#1502] Drop support for Ruby 2.4 because of EOL.
26
+ - [#1504] Updated the url fragment in the comment for code documentation.
27
+ - [#1512] Fix form behavior when response mode is form_post.
28
+ - [#1511] Fix that authorization code is returned by fragment if response_mode is fragament.
29
+
30
+ ## 5.5.1
31
+
32
+ - [#1496] Revoke `old_refresh_token` if `previous_refresh_token` is present.
33
+ - [#1495] Fix `respond_to` undefined in API-only mode
34
+ - [#1488] Verify client authentication for Resource Owner Password Grant when
35
+ `config.skip_client_authentication_for_password_grant` is set and the client credentials
36
+ are sent in a HTTP Basic auth header.
37
+
38
+ ## 5.5.0
39
+
40
+ - [#1482] Simplify `TokenInfoController` to be overridable (extract response rendering).
41
+ - [#1478] Fix ownership association and Rake tasks when custom models configured.
42
+ - [#1477] Respect `ActiveRecord::Base.pluralize_table_names` for Doorkeeper table names.
43
+
44
+ ## 5.5.0.rc2
45
+
46
+ - [#1473] Enable `Applications` and `AuthorizedApplications` controllers in API mode.
47
+
48
+ **[IMPORTANT]** you can still skip these controllers using `skip_controllers` in
49
+ `use_doorkeeper` inside `routes.rb`. Please do it in case you don't need them.
50
+
51
+ - [#1472] Fix `establish_connection` configuration for custom defined models.
52
+ - [#1471] Add support for Ruby 3.0.
53
+ - [#1469] Check if `redirect_uri` exists.
54
+ - [#1465] Memoize nil doorkeeper_token.
55
+ - [#1459] Use built-in Ruby option to remove padding in PKCE code challenge value.
56
+ - [#1457] Make owner_id a bigint for newly-generated owner migrations
57
+ - [#1452] Empty previous_refresh_token only if present.
58
+ - [#1440] Validate empty host in redirect_uri.
59
+ - [#1438] Add form post response mode.
60
+ - [#1458] Make `config.skip_client_authentication_for_password_grant` a long term configuration option.
61
+
62
+ ## 5.5.0.rc1
63
+
64
+ - [#1435] Make error response not redirectable when client is unauthorized
65
+ - [#1426] Ensure ActiveRecord callbacks are executed on token revocation.
66
+ - [#1407] Remove redundant and complex to support helpers froms tests (`should_have_json`, etc).
67
+ - [#1416] Don't add introspection route if token introspection completely disabled.
68
+ - [#1410] Properly memoize `current_resource_owner` value (consider `nil` and `false` values).
69
+ - [#1415] Ignore PKCE params for non-PKCE grants.
70
+ - [#1418] Add ability to register custom OAuth Grant Flows.
71
+ - [#1420] Require client authentication for Resource Owner Password Grant as stated in OAuth RFC.
72
+
73
+ **[IMPORTANT]** you need to create a new OAuth client (`Doorkeeper::Application`) if you didn't
74
+ have it before and use client credentials in HTTP Basic auth if you previously used this grant
75
+ flow without client authentication. To opt out of this you could set the
76
+ `skip_client_authentication_for_password_grant` configuration option to `true`, but note that
77
+ this is in violation of the OAuth spec and represents a security risk.
78
+ All the users of your provider application now need to include client credentials when they use
79
+ this grant flow.
80
+
81
+ - [#1421] Add Resource Owner instance to authorization hook context for `custom_access_token_expires_in`
82
+ configuration option to allow resource owner based Access Tokens TTL.
83
+
84
+ ## 5.4.0
85
+
86
+ - [#1404] Make `Doorkeeper::Application#read_attribute_for_serialization` public.
87
+
88
+ ## 5.4.0.rc2
89
+
90
+ - [#1371] Add `#as_json` method and attributes serialization restriction for Application model.
91
+ Fixes information disclosure vulnerability (CVE-2020-10187).
92
+
93
+ **[IMPORTANT]** you need to re-implement `#as_json` method for Doorkeeper Application model
94
+ if you previously used `#to_json` serialization with custom options or attributes or rely on
95
+ JSON response from /oauth/applications.json or /oauth/authorized_applications.json. This change
96
+ is a breaking change which restricts serialized attributes to a very small set of columns.
97
+
98
+ - [#1395] Fix `NameError: uninitialized constant Doorkeeper::AccessToken` for Rake tasks.
99
+ - [#1397] Add `as: :doorkeeper_application` on Doorkeeper application form in order to support
100
+ custom configured application model.
101
+ - [#1400] Correctly yield the application instance to `allow_grant_flow_for_client?` config
102
+ option (fixes #1398).
103
+ - [#1402] Handle trying authorization with client credentials.
104
+
105
+ ## 5.4.0.rc1
106
+ - [#1366] Sets expiry of token generated using `refresh_token` to that of original token. (Fixes #1364)
107
+ - [#1354] Add `authorize_resource_owner_for_client` option to authorize the calling user to access an application.
108
+ - [#1355] Allow to enable polymorphic Resource Owner association for Access Token & Grant
109
+ models (`use_polymorphic_resource_owner` configuration option).
110
+
111
+ **[IMPORTANT]** Review your custom patches or extensions for Doorkeeper internals if you
112
+ have such - since now Doorkeeper passes Resource Owner instance to every objects and not
113
+ just it's ID. See PR description for details.
114
+
115
+ - [#1356] Remove duplicated scopes from Access Tokens and Grants on attribute assignment.
116
+ - [#1357] Fix `Doorkeeper::OAuth::PreAuthorization#as_json` method causing
117
+ `Stack level too deep` error with AMS (fix #1312).
118
+ - [#1358] Deprecate `active_record_options` configuration option.
119
+ - [#1359] Refactor Doorkeeper configuration options DSL to make it easy to reuse it
120
+ in external extensions.
121
+ - [#1360] Increase `matching_token_for` lookup size to 10 000 and make it configurable.
122
+ - [#1371] Fix controllers to use valid classes in case Doorkeeper has custom models configured.
123
+ - [#1370] Fix revocation response for invalid token and unauthorized requests to conform with RFC 7009 (fixes #1362).
124
+
125
+ **[IMPORTANT]** now fully according to RFC 7009 nobody can do a revocation request without `client_id`
126
+ (for public clients) and `client_secret` (for private clients). Please update your apps to include that
127
+ info in the revocation request payload.
128
+
129
+ - [#1373] Make Doorkeeper routes mapper reusable in extensions.
130
+ - [#1374] Revoke and issue client credentials token in a transaction with a row lock.
131
+ - [#1384] Add context object with auth/pre_auth and issued_token for authorization hooks.
132
+ - [#1387] Add `AccessToken#create_for` and use in `RefreshTokenRequest`.
133
+ - [#1392] Fix `enable_polymorphic_resource_owner` migration template to have proper index name.
134
+ - [#1393] Improve Applications #show page with more informative data on client secret and scopes.
135
+ - [#1394] Use Ruby `autoload` feature to load Doorkeeper files.
136
+
137
+ ## 5.3.3
138
+
139
+ - [#1404] Backport: Make `Doorkeeper::Application#read_attribute_for_serialization` public.
140
+
141
+ ## 5.3.2
142
+
143
+ - [#1371] Backport: add `#as_json` method and attributes serialization restriction for Application model.
144
+ Fixes information disclosure vulnerability (CVE-2020-10187).
145
+
146
+ ## 5.3.1
147
+
148
+ - [#1360] Backport: Increase `matching_token_for` batch lookup size to 10 000 and make it configurable.
149
+
150
+ ## 5.3.0
151
+
152
+ - [#1339] Validate Resource Owner in `PasswordAccessTokenRequest` against `nil` and `false` values.
153
+ - [#1341] Fix `refresh_token_revoked_on_use` with `hash_token_secrets` enabled.
154
+ - [#1343] Fix ruby 2.7 kwargs warning in InvalidTokenResponse.
155
+ - [#1345] Allow to set custom classes for Doorkeeper models, extract reusable AR mixins.
156
+ - [#1346] Refactor `Doorkeeper::Application#to_json` into convenient `#as_json` (fix #1344).
157
+ - [#1349] Fix `Doorkeeper::Application` AR associations using an incorrect foreign key name when using a custom class.
158
+ - [#1318] Make existing token revocation for client credentials optional and disable it by default.
159
+
160
+ **[IMPORTANT]** This is a change compared to the behaviour of version 5.2.
161
+ If you were relying on access tokens being revoked once the same client
162
+ requested a new access token, reenable it with `revoke_previous_client_credentials_token` in Doorkeeper
163
+ initialization file.
164
+
165
+ ## 5.2.6
166
+
167
+ - [#1404] Backport: Make `Doorkeeper::Application#read_attribute_for_serialization` public.
168
+
169
+ ## 5.2.5
170
+
171
+ - [#1371] Backport: add `#as_json` method and attributes serialization restriction for Application model.
172
+ Fixes information disclosure vulnerability (CVE-2020-10187).
173
+
174
+ ## 5.2.4
175
+
176
+ - [#1360] Backport: Increase `matching_token_for` batch lookup size to 10 000 and make it configurable.
177
+
178
+ ## 5.2.3
179
+
180
+ - [#1334] Remove `application_secret` flash helper and `redirect_to` keyword.
181
+ - [#1331] Move redirect_uri_validator to where it is used (`Application` model).
182
+ - [#1326] Move response_type check in pre_authorization to a method to be easily to override.
183
+ - [#1329] Fix `find_in_batches` order warning.
184
+
185
+ ## 5.2.2
186
+
187
+ - [#1320] Call configured `authenticate_resource_owner` method once per request.
188
+ - [#1315] Allow generation of new secret with `Doorkeeper::Application#renew_secret`.
189
+ - [#1309] Allow `Doorkeeper::Application#to_json` to work without arguments.
190
+
191
+ ## 5.2.1
192
+
193
+ - [#1308] Fix flash types for `api_only` mode (no flashes for `ActionController::API`).
194
+ - [#1306] Fix interpolation of `missing_param` I18n.
195
+
196
+ ## 5.2.0
197
+
198
+ - [#1305] Make `Doorkeeper::ApplicationController` to inherit from `ActionController::API` in cases
199
+ when `api_mode` enabled (fixes #1302).
200
+
201
+ ## 5.2.0.rc3
202
+
203
+ - [#1298] Slice strong params so doesn't error with Rails forms.
204
+ - [#1300] Limiting access to attributes of pre_authorization.
205
+ - [#1296] Adding client_id to strong parameters.
206
+
207
+ **[IMPORTANT]** `Doorkeeper::Server#client_via_uid` was removed.
208
+
209
+ - [#1293] Move ar specific redirect uri validator to ar orm directory.
210
+ - [#1288] Allow to pass attributes to the `Doorkeeper::OAuth::PreAuthorization#as_json` method to customize
211
+ the PreAuthorization response.
212
+ - [#1286] Add ability to customize grant flows per application (OAuth client) (#1245 , #1207)
213
+ - [#1283] Allow to customize base class for `Doorkeeper::ApplicationMetalController` (new configuration
214
+ option called `base_metal_controller` (fix #1273).
215
+ - [#1277] Prevent requested scope be empty on authorization request, handle and add description for invalid request.
216
+
217
+ ## 5.2.0.rc2
218
+
219
+ - [#1270] Find matching tokens in batches for `reuse_access_token` option (fix #1193).
220
+ - [#1271] Reintroduce existing token revocation for client credentials.
221
+
222
+ **[IMPORTANT]** If you rely on being able to fetch multiple access tokens from the same
223
+ client using client credentials flow, you should skip to version 5.3, where this behaviour
224
+ is deactivated by default.
225
+
226
+ - [#1269] Update initializer template documentation.
227
+ - [#1266] Use strong parameters within pre-authorization.
228
+ - [#1264] Add :before_successful_authorization and :after_successful_authorization hooks in TokensController
229
+ - [#1263] Response properly when introspection fails and fix configurations's user guide.
230
+
231
+ ## 5.2.0.rc1
232
+
233
+ - [#1260], [#1262] Improve Token Introspection configuration option (access to tokens, client).
234
+ - [#1257] Add constraint configuration when using client authentication on introspection endpoint.
235
+ - [#1252] Returning `unauthorized` when the revocation of the token should not be performed due to wrong permissions.
236
+ - [#1249] Specify case sensitive uniqueness to remove Rails 6 deprecation message
237
+ - [#1248] Display the Application Secret in HTML after creating a new application even when `hash_application_secrets` is used.
238
+ - [#1248] Return the unhashed Application Secret in the JSON response after creating new application even when `hash_application_secrets` is used.
239
+ - [#1238] Better support for native app with support for custom scheme and localhost redirection.
240
+
241
+ ## 5.1.2
242
+
243
+ - [#1404] Backport: Make `Doorkeeper::Application#read_attribute_for_serialization` public.
244
+
245
+ ## 5.1.1
246
+
247
+ - [#1371] Backport: add `#as_json` method and attributes serialization restriction for Application model.
248
+ Fixes information disclosure vulnerability (CVE-2020-10187).
249
+
250
+ ## 5.1.0
251
+
252
+ - [#1243] Add nil check operator in token checking at token introspection.
253
+ - [#1241] Explaining foreign key options for resource owner in a single place
254
+ - [#1237] Allow to set blank redirect URI if Doorkeeper configured to use redirect URI-less grant flows.
255
+ - [#1234] Fix `StaleRecordsCleaner` to properly work with big amount of records.
256
+ - [#1228] Allow to explicitly set non-expiring tokens in `custom_access_token_expires_in` configuration
257
+ option using `Float::INIFINITY` return value.
258
+ - [#1224] Do not try to store token if not found by fallback hashing strategy.
259
+ - [#1223] Update Hound/Rubocop rules, correct Doorkeeper codebase to follow style-guides.
260
+ - [#1220] Drop Rails 4.2 & Ruby < 2.4 support.
261
+
262
+ ## 5.1.0.rc2
263
+
264
+ - [#1208] Unify hashing implementation into secret storing strategies
265
+
266
+ **[IMPORTANT]** If you have been using the master branch of doorkeeper with bcrypt in your Gemfile.lock,
267
+ your application secrets have been hashed using BCrypt. To restore this behavior, use the initializer option
268
+ `hash_application_secrets using: 'Doorkeeper::SecretStoring::BCrypt`.
269
+
270
+ - [#1216] Add nil check to `expires_at` method.
271
+ - [#1215] Fix deprecates for Rails 6.
272
+ - [#1214] Scopes field accepts array.
273
+ - [#1209] Fix tokens validation for Token Introspection request.
274
+ - [#1202] Use correct HTTP status codes for error responses.
275
+
276
+ **[IMPORTANT]**: this change might break your application if you were relying on the previous
277
+ 401 status codes, this is now a 400 by default, or a 401 for `invalid_client` and `invalid_token` errors.
278
+
279
+ - [#1201] Fix custom TTL block `client` parameter to always be an `Doorkeeper::Application` instance.
280
+
281
+ **[IMPORTANT]**: those who defined `custom_access_token_expires_in` configuration option need to check
282
+ their block implementation: if you are using `oauth_client.application` to get `Doorkeeper::Application`
283
+ instance, then you need to replace it with just `oauth_client`.
284
+
285
+ - [#1200] Increase default Doorkeeper access token value complexity (`urlsafe_base64` instead of just `hex`)
286
+ matching RFC6749/RFC6750.
287
+
288
+ **[IMPORTANT]**: this change have possible side-effects in case you have custom database constraints for
289
+ access token value, application secrets, refresh tokens or you patched Doorkeeper models and introduced
290
+ token value validations, or you are using database with case-insensitive WHERE clause like MySQL
291
+ (you can face some collisions). Before this change access token value matched `[a-f0-9]` regex, and now
292
+ it matches `[a-zA-Z0-9\-_]`. In case you have such restrictions and your don't use custom token generator
293
+ please change configuration option `default_generator_method` to `:hex`.
294
+
295
+ - [#1195] Allow to customize Token Introspection response (fixes #1194).
296
+ - [#1189] Option to set `token_reuse_limit`.
297
+ - [#1191] Try to load bcrypt for hashing of application secrets, but add fallback.
298
+
299
+ ## 5.1.0.rc1
300
+
301
+ - [#1188] Use `params` instead of `request.POST` in tokens controller (fixes #1183).
302
+ - [#1182] Fix loopback IP redirect URIs to conform with RFC8252, p. 7.3 (fixes #1170).
303
+ - [#1179] Authorization Code Grant Flow without client id returns invalid_client error.
304
+ - [#1177] Allow to limit `scopes` for certain `grant_types`
305
+ - [#1176] Fix test factory support for `factory_bot_rails`
306
+ - [#1175] Internal refactor: use `scopes_string` inside `scopes`.
307
+ - [#1168] Allow optional hashing of tokens and secrets.
308
+ - [#1164] Fix error when `root_path` is not defined.
309
+ - [#1162] Fix `enforce_content_type` for requests without body.
310
+
311
+ ## 5.0.3
312
+
313
+ - [#1371] Backport: add `#as_json` method and attributes serialization restriction for Application model.
314
+ Fixes information disclosure vulnerability (CVE-2020-10187).
315
+
316
+ ## 5.0.2
317
+
318
+ - [#1158] Fix initializer template: change `handle_auth_errors` option
319
+ - [#1157] Remove redundant index from migration template.
320
+
321
+ ## 5.0.1
322
+
323
+ - [#1154] Refactor `StaleRecordsCleaner` to be ORM agnostic.
324
+ - [#1152] Fix migration template: change resource owner data type from integer to Rails generic `references`
325
+ - [#1151] Fix Refresh Token strategy: add proper validation of client credentials both for Public & Private clients.
326
+ - [#1149] Fix for `URIChecker#valid_for_authorization?` false negative when query is blank, but `?` present.
327
+ - [#1140] Allow rendering custom errors from exceptions (issue #844). Originally opened as [#944].
328
+ - [#1138] Revert regression bug (check for token expiration in Authorizations controller so authorization
329
+ triggers every time)
330
+
331
+ ## 5.0.0
332
+
333
+ - [#1127] Change the token_type initials of the Banner Token to uppercase to comply with the RFC6750 specification.
334
+
335
+ ## 5.0.0.rc2
336
+
337
+ - [#1122] Fix AuthorizationsController#new error response to be in JSON format
338
+ - [#1119] Fix token revocation for OAuth apps using "implicit" grant flow
339
+ - [#1116] `AccessGrant`s will now be revoked along with `AccessToken`s when
340
+ hitting the `AuthorizedApplicationController#destroy` route.
341
+ - [#1114] Make token info endpoint's attributes consistent with token creation
342
+ - [#1108] Simple formating of callback URLs when listing oauth applications
343
+ - [#1106] Restrict access to AdminController with 'Forbidden 403' if admin_authenticator is not
344
+ configured by developers.
345
+
346
+ ## 5.0.0.rc1
347
+
348
+ - [#1103] Allow customizing use_refresh_token
349
+ - [#1089] Removed enable_pkce_without_secret configuration option
350
+ - [#1102] Expiration time based on scopes
351
+ - [#1099] All the configuration variables in `Doorkeeper.configuration` now
352
+ always return a non-nil value (`true` or `false`)
353
+ - [#1099] ORM / Query optimization: Do not revoke the refresh token if it is not enabled
354
+ in `doorkeeper.rb`
355
+ - [#996] Expiration Time Base On Grant Type
356
+ - [#997] Allow PKCE authorization_code flow as specified in RFC7636
357
+ - [#907] Fix lookup for matching tokens in certain edge-cases
358
+ - [#992] Add API option to use Doorkeeper without management views for API only
359
+ Rails applications (`api_only`)
360
+ - [#1045] Validate redirect_uri as the native URI when making authorization code requests
361
+ - [#1048] Remove deprecated `Doorkeeper#configured?`, `Doorkeeper#database_installed?`, and
362
+ `Doorkeeper#installed?` method
363
+ - [#1031] Allow public clients to authenticate without `client_secret`. Define an app as
364
+ either public or private/confidential
365
+
366
+ **[IMPORTANT]**: all the applications (clients) now are considered as private by default.
367
+ You need to manually change `confidential` column to `false` if you are using public clients,
368
+ in other case your mobile (or other) applications will not be able to authorize.
369
+ See [#1142](https://github.com/doorkeeper-gem/doorkeeper/issues/1142) for more details.
370
+
371
+ - [#1010] Add configuration to enforce configured scopes (`default_scopes` and
372
+ `optional_scopes`) for applications
373
+ - [#1060] Ensure that the native redirect_uri parameter matches with redirect_uri of the client
374
+ - [#1064] Add :before_successful_authorization and :after_successful_authorization hooks
375
+ - [#1069] Upgrade Bootstrap to 4 for Admin
376
+ - [#1068] Add rake task to cleanup databases that can become large over time
377
+ - [#1072] AuthorizationsController: Memoize strategy.authorize_response result to enable
378
+ subclasses to use the response object.
379
+ - [#1075] Call `before_successful_authorization` and `after_successful_authorization` hooks
380
+ on `create` action as well as `new`
381
+ - [#1082] Fix #916: remember routes mapping and use it required places (fix error with
382
+ customized Token Info route).
383
+ - [#1086, #1088] Fix bug with receiving default scopes in the token even if they are
384
+ not present in the application scopes (use scopes intersection).
385
+ - [#1076] Add config to enforce content type to application/x-www-form-urlencoded
386
+ - Fix bug with `force_ssl_in_redirect_uri` when it breaks existing applications with an
387
+ SSL redirect_uri.
388
+
389
+ ## 4.4.3
390
+
391
+ - [#1143] Adds a config option `opt_out_native_route_change` to opt out of the breaking api
392
+ changed introduced in https://github.com/doorkeeper-gem/doorkeeper/pull/1003
393
+
394
+ ## 4.4.2
395
+
396
+ - [#1130] Backport fix for native redirect_uri from 5.x.
397
+
398
+ ## 4.4.1
399
+
400
+ - [#1127] Backport token type to comply with the RFC6750 specification.
401
+ - [#1125] Backport Quote surround I18n yes/no keys
402
+
403
+ ## 4.4.0
404
+
405
+ - [#1120] Backport security fix from 5.x for token revocation when using public clients
406
+
407
+ **[IMPORTANT]**: all the applications (clients) now are considered as private by default.
408
+ You need to manually change `confidential` column to `false` if you are using public clients,
409
+ in other case your mobile (or other) applications will not be able to authorize.
410
+ See [#1142](https://github.com/doorkeeper-gem/doorkeeper/issues/1142) for more details.
411
+
412
+ ## 4.3.2
413
+
414
+ - [#1053] Support authorizing with query params in the request `redirect_uri` if explicitly present in app's `Application#redirect_uri`
415
+
416
+ ## 4.3.1
417
+
418
+ - Remove `BaseRecord` and introduce additional concern for ordering methods to fix
419
+ braking changes for Doorkeeper models.
420
+ - [#1032] Refactor BaseRequest callbacks into configurable lambdas
421
+ - [#1040] Clear mixins from ActiveRecord DSL and save only overridable API. It
422
+ allows to use this mixins in Doorkeeper ORM extensions with minimum code boilerplate.
423
+
424
+ ## 4.3.0
425
+
426
+ - [#976] Fix to invalidate the second redirect URI when the first URI is the native URI
427
+ - [#1035] Allow `Application#redirect_uri=` to handle array of URIs.
428
+ - [#1036] Allow to forbid Application redirect URI's with specific rules.
429
+ - [#1029] Deprecate `order_method` and introduce `ordered_by`. Sort applications
430
+ by `created_at` in index action.
431
+ - [#1033] Allow Doorkeeper configuration option #force_ssl_in_redirect_uri to be a callable object.
432
+ - Fix Grape integration & add specs for it
433
+ - [#913] Deferred ORM (ActiveRecord) models loading
434
+ - [#943] Fix Access Token token generation when certain errors occur in custom token generators
435
+ - [#1026] Implement RFC7662 - OAuth 2.0 Token Introspection
436
+ - [#985] Generate valid migration files for Rails >= 5
437
+ - [#972] Replace Struct subclassing with block-form initialization
438
+ - [#1003] Use URL query param to pass through native redirect auth code so automated apps can find it.
439
+
440
+ **[IMPORTANT]**: Previously authorization code response route was `/oauth/authorize/<code>`,
441
+ now it is `oauth/authorize/native?code=<code>` (in order to help applications to automatically find the code value).
442
+
443
+ - [#868] `Scopes#&` and `Scopes#+` now take an array or any other enumerable
444
+ object.
445
+ - [#1019] Remove translation not in use: `invalid_resource_owner`.
446
+ - Use Ruby 2 hash style syntax (min required Ruby version = 2.1)
447
+ - [#948] Make Scopes.<=> work with any "other" value.
448
+ - [#974] Redirect URI is checked without query params within AuthorizationCodeRequest.
449
+ - [#1004] More explicit help text for `native_redirect_uri`.
450
+ - [#1023] Update Ruby versions and test against 2.5.0 on Travis CI.
451
+ - [#1024] Migrate from FactoryGirl to FactoryBot.
452
+ - [#1025] Improve documentation for adding foreign keys
453
+ - [#1028] Make it possible to have composite strategy names.
454
+
455
+ ## 4.2.6
456
+
457
+ - [#970] Escape certain attributes in authorization forms.
458
+
459
+ ## 4.2.5
460
+
461
+ - [#936] Deprecate `Doorkeeper#configured?`, `Doorkeeper#database_installed?`, and
462
+ `Doorkeeper#installed?`
463
+ - [#909] Add `InvalidTokenResponse#reason` reader method to allow read the kind
464
+ of invalid token error.
465
+ - [#928] Test against more recent Ruby versions
466
+ - Small refactorings within the codebase
467
+ - [#921] Switch to Appraisal, and test against Rails master
468
+ - [#892] Add minimum Ruby version requirement
469
+
470
+ ## 4.2.0
471
+
472
+ - Security fix: Address CVE-2016-6582, implement token revocation according to
473
+ spec (tokens might not be revoked if client follows the spec).
474
+ - [#873] Add hooks to Doorkeeper::ApplicationMetalController
475
+ - [#871] Allow downstream users to better utilize doorkeeper spec factories by
476
+ eliminating name conflict on `:user` factory.
477
+
478
+ ## 4.1.0
479
+
480
+ - [#845] Allow customising the `Doorkeeper::ApplicationController` base
481
+ controller
482
+
483
+ ## 4.0.0
484
+
485
+ - [#834] Fix AssetNotPrecompiled error with Sprockets 4
486
+ - [#843] Revert "Fix validation error messages"
487
+ - [#847] Specify Null option to timestamps
488
+
489
+ ## 4.0.0.rc4
490
+
491
+ - [#777] Add support for public client in password grant flow
492
+ - [#823] Make configuration and specs ORM independent
493
+ - [#745] Add created_at timestamp to token generation options
494
+ - [#838] Drop `Application#scopes` generator and warning, introduced for
495
+ upgrading doorkeeper from v2 to v3.
496
+ - [#801] Fix Rails 5 warning messages
497
+ - Test against Rails 5 RC1
498
+
499
+ ## 4.0.0.rc3
500
+
501
+ - [#769] Revoke refresh token on access token use. To make use of the new config
502
+ add `previous_refresh_token` column to `oauth_access_tokens`:
503
+
504
+ ```
505
+ rails generate doorkeeper:previous_refresh_token
506
+ ```
507
+
508
+ - [#811] Toughen parameters filter with exact match
509
+ - [#813] Applications admin bugfix
510
+ - [#799] Fix Ruby Warnings
511
+ - Drop `attr_accessible` from models
512
+
513
+ ### Backward incompatible changes
514
+
515
+ - [#730] Force all timezones to use UTC to prevent comparison issues.
516
+ - [#802] Remove `config.i18n.fallbacks` from engine
517
+
518
+ ## 4.0.0.rc2
519
+
520
+ - Fix optional belongs_to for Rails 5
521
+ - Fix Ruby warnings
522
+
523
+ ## 4.0.0.rc1
524
+
525
+ ### Backward incompatible changes
526
+
527
+ - Drops support for Rails 4.1 and earlier
528
+ - Drops support for Ruby 2.0
529
+ - [#778] Bug fix: use the remaining time that a token is still valid when
530
+ building the redirect URI for the implicit grant flow
531
+
532
+ ### Other changes
533
+
534
+ - [#771] Validation error messages fixes
535
+ - Adds foreign key constraints in generated migrations between tokens and
536
+ grants, and applications
537
+ - Support Rails 5
538
+
539
+ ## 3.1.0
540
+
541
+ - [#736] Existing valid tokens are now reused in client_credentials flow
542
+ - [#749] Allow user to raise authorization error with custom messages.
543
+ Under `resource_owner_authenticator` block a user can
544
+ `raise Doorkeeper::Errors::DoorkeeperError.new('custom_message')`
545
+ - [#762] Check doesn’t abort the actual migration, so it runs
546
+ - [#722] `doorkeeper_forbidden_render_options` now supports returning a 404 by
547
+ specifying `respond_not_found_when_forbidden: true` in the
548
+ `doorkeeper_forbidden_render_options` method.
549
+ - [#734] Simplify and remove duplication in request strategy classes
550
+
551
+ ## 3.0.1
552
+
553
+ - [#712] Wrap exchange of grant token for access token and access token refresh
554
+ in transactions
555
+ - [#704] Allow applications scopes to be mass assigned
556
+ - [#707] Fixed order of Mixin inclusion and table_name configuration in models
557
+ - [#712] Wrap access token and refresh grants in transactions
558
+ - Adds JRuby support
559
+ - Specs, views and documentation adjustments
560
+
561
+ ## 3.0.0
562
+
563
+ ### Other changes
564
+
565
+ - [#693] Updates `en.yml`.
566
+
567
+ ## 3.0.0 (rc2)
568
+
569
+ ### Backward incompatible changes
570
+
571
+ - [#678] Change application-specific scopes to take precedence over server-wide
572
+ scopes. This removes the previous behavior where the intersection between
573
+ application and server scopes was used.
574
+
575
+ ### Other changes
576
+
577
+ - [#671] Fixes `NoMethodError - undefined method 'getlocal'` when calling
578
+ the /oauth/token path. Switch from using a DateTime object to update
579
+ AR to using a Time object. (Issue #668)
580
+ - [#677] Support editing application-specific scopes via the standard forms
581
+ - [#682] Pass error hash to Grape `error!`
582
+ - [#683] Generate application secret/UID if fields are blank strings
583
+
584
+ ## 3.0.0 (rc1)
585
+
586
+ ### Backward incompatible changes
587
+
588
+ - [#648] Extracts mongodb ORMs to
589
+ https://github.com/doorkeeper-gem/doorkeeper-mongodb. If you use ActiveRecord
590
+ you don’t need to do any change, otherwise you will need to install the new
591
+ plugin.
592
+ - [#665] `doorkeeper_unauthorized_render_options(error:)` and
593
+ `doorkeeper_forbidden_render_options(error:)` now accept `error` keyword
594
+ argument.
595
+
596
+ ### Removed deprecations
597
+
598
+ - Removes `doorkeeper_for` deprecation notice.
599
+ - Remove `applications.scopes` upgrade notice.
600
+
601
+ ## 2.2.2
602
+
603
+ - [#541] Fixed `undefined method attr_accessible` problem on Rails 4
604
+ (happens only when ProtectedAttributes gem is used) in #599
605
+
606
+ ## 2.2.1
607
+
608
+ - [#636] `custom_access_token_expires_in` bugfixes
609
+ - [#641] syntax error fix (Issue #612)
610
+ - [#633] Send extra details to Custom Token Generator
611
+ - [#628] Refactor: improve orm adapters to ease extension
612
+ - [#637] Upgrade to rspec to 3.2
613
+
614
+ ## 2.2.0 - 2015-04-19
615
+
616
+ - [#611] Allow custom access token generators to be used
617
+ - [#632] Properly fallback to `default_scopes` when no scope is specified
618
+ - [#622] Clarify that there is a logical OR between scopes for authorizing
619
+ - [#635] Upgrade to rspec 3
620
+ - [#627] i18n fallbacks to english
621
+ - Moved CHANGELOG to NEWS.md
622
+
623
+ ## 2.1.4 - 2015-03-27
624
+
625
+ - [#595] HTTP spec: Add `scope` for refresh token scope param
626
+ - [#596] Limit scopes in app scopes for client credentials
627
+ - [#567] Add Grape helpers for easier integration with Grape framework
628
+ - [#606] Add custom access token expiration support for Client Credentials flow
629
+
630
+ ## 2.1.3 - 2015-03-01
631
+
632
+ - [#588] Fixes scopes_match? bug that skipped authorization form in some cases
633
+
634
+ ## 2.1.2 - 2015-02-25
635
+
636
+ - [#574] Remove unused update authorization route.
637
+ - [#576] Filter out sensitive parameters from logs.
638
+ - [#582] The Authorization HTTP header fields are now case insensitive.
639
+ - [#583] Database connection bugfix in certain scenarios.
640
+ - Testing improvements
641
+
642
+ ## 2.1.1 - 2015-02-06
643
+
644
+ - Remove `wildcard_redirect_url` option
645
+ - [#481] Customize token flow OAuth expirations with a config lambda
646
+ - [#568] TokensController: Memoize strategy.authorize_response result to enable
647
+ subclasses to use the response object.
648
+ - [#571] Fix database initialization issues in some configurations.
649
+ - Documentation improvements
650
+
651
+ ## 2.1.0 - 2015-01-13
652
+
653
+ - [#540] Include `created_at` in response.
654
+ - [#538] Check application-level scopes in client_credentials and password flow.
655
+ - [5596227] Check application scopes in AccessToken when present. Fixes a bug in
656
+ doorkeeper 2.0.0 and 2.0.1 referring to application specific scopes.
657
+ - [#534] Internationalizes doorkeeper views.
658
+ - [#545] Ensure there is a connection to the database before checking for
659
+ missing columns
660
+ - [#546] Use `Doorkeeper::` prefix when referencing `Application` to avoid
661
+ possible application model name conflict.
662
+ - [#538] Test with Rails ~> 4.2.
663
+
664
+ ### Potentially backward incompatible changes
665
+
666
+ - Enable by default `authorization_code` and `client_credentials` grant flows.
667
+ Disables implicit and password grant flows by default.
668
+ - [#510, #544, 722113f] Revoked refresh token response bugfix.
669
+
670
+ ## 2.0.1 - 2014-12-17
671
+
672
+ - [#525, #526, #527] Fix `ActiveRecord::NoDatabaseError` on gem load.
673
+
674
+ ## 2.0.0 - 2014-12-16
675
+
676
+ ### Backward incompatible changes
677
+
678
+ - [#448] Removes `doorkeeper_for` helper. Now we use
679
+ `before_action :doorkeeper_authorize!`.
680
+ - [#469] Allow client applications to restrict the set of allowable scopes.
681
+ Fixes #317. `oauth_applications` relation needs a new `scopes` string column,
682
+ non nullable, which defaults to an empty string. To add the column run:
683
+
684
+ ```
685
+ rails generate doorkeeper:application_scopes
686
+ ```
687
+
688
+ If you’d rather do it by hand, your ActiveRecord migration should contain:
689
+
690
+ ```ruby
691
+ add_column :oauth_applications, :scopes, :string, null: false, default: ‘’
692
+ ```
693
+
694
+ ### Removed deprecations
695
+
696
+ - Removes `test_redirect_uri` option. It is now called `native_redirect_uri`.
697
+ - [#446] Removes `mount Doorkeeper::Engine`. Now we use `use_doorkeeper`.
698
+
699
+ ### Others
700
+
701
+ - [#484] Performance improvement - avoid performing order_by when not required.
702
+ - [#450] When password is invalid in Password Credentials Grant, Doorkeeper
703
+ returned 'invalid_resource_owner' instead of 'invalid_grant', as the spec
704
+ declares. Fixes #444.
705
+ - [#452] Allows `revoked_at` to be set in the future, for future expiry.
706
+ Rationale: https://github.com/doorkeeper-gem/doorkeeper/pull/452#issuecomment-51431459
707
+ - [#480] For Implicit grant flow, access tokens can now be reused. Fixes #421.
708
+ - [#491] Reworks of @jasl's #454 and #478. ORM refactor that allows doorkeeper
709
+ to be extended more easily with unsupported ORMs. It also marks the boundaries
710
+ between shared model code and ORM specifics inside of the gem.
711
+ - [#496] Tests with Rails 4.2.
712
+ - [#489] Adds `force_ssl_in_redirect_uri` to force the usage of the HTTPS
713
+ protocol in non-native redirect uris.
714
+ - [#516] SECURITY: Adds `protect_from_forgery` to `Doorkeeper::ApplicationController`
715
+ - [#518] Fix random failures in mongodb.
716
+
717
+ ---
718
+
719
+ ## 1.4.2 - 2015-03-02
720
+
721
+ - [#576] Filter out sensitive parameters from logs
722
+
723
+ ## 1.4.1 - 2014-12-17
724
+
725
+ - [#516] SECURITY: Adds `protect_from_forgery` to `Doorkeeper::ApplicationController`
726
+
727
+ ## 1.4.0 - 2014-07-31
728
+
729
+ - internals
730
+ - [#427] Adds specs expectations.
731
+ - [#428] Error response refactor.
732
+ - [#417] Moves token validation into Access Token class.
733
+ - [#439] Removes redundant module includes.
734
+ - [#443] TokensController and TokenInfoController inherit from ActionController::Metal
735
+ - bug
736
+ - [#418] fixes #243, requests with insufficient scope now respond 403 instead
737
+ of 401. (API change)
738
+ - [#438] fixes #398, native redirect for implicit token grant bug.
739
+ - [#440] namespace fixes
740
+ - enhancements
741
+ - [#432] Keeps query parameters
742
+
743
+ ## 1.3.1 - 2014-07-06
744
+
745
+ - enhancements
746
+ - [#405] Adds facade to more easily get the token from a request in a route
747
+ constraint.
748
+ - [#415] Extend Doorkeeper TokenResponse with an `after_successful_response`
749
+ callback that allows handling of `response` object.
750
+ - internals
751
+ - [#409] Deprecates `test_redirect_uri` in favor of `native_redirect_uri`.
752
+ See discussion in: [#351].
753
+ - [#411] Clean rspec deprecations. General test improvements.
754
+ - [#412] rspec line width can go longer than 80 (hound CI config).
755
+ - bug
756
+ - [#413] fixes #340, routing scope is now taken into account in redirect.
757
+ - [#401] and [#425] application is not required any longer for access_token.
758
+
759
+ ## 1.3.0 - 2014-05-23
760
+
761
+ - enhancements
762
+ - [#387] Adds reuse_access_token configuration option.
763
+
764
+ ## 1.2.0 - 2014-05-02
765
+
766
+ - enhancements
767
+ - [#376] Allow users to enable basic header authorization for access tokens.
768
+ - [#374] Token revocation implementation [RFC 7009]
769
+ - [#295] Only enable specific grant flows.
770
+ - internals
771
+ - [#381] Locale source fix.
772
+ - [#380] Renames `errors_for` to `doorkeeper_errors_for`.
773
+ - [#390] Style adjustments in accordance with Ruby Style Guide form
774
+ Thoughtbot.
775
+
776
+ ## 1.1.0 - 2014-03-29
777
+
778
+ - enhancements
779
+ - [#336] mongoid4 support.
780
+ - [#372] Allow users to set ActiveRecord table_name_prefix/suffix options
781
+ - internals
782
+ - [#343] separate OAuth's admin and user end-point to different layouts, upgrade theme to Bootstrap 3.1.
783
+ - [#348] Move render_options in filter after `@error` has been set
784
+
785
+ ## 1.0.0 - 2014-01-13
786
+
787
+ - bug (spec)
788
+ - [#228] token response `expires_in` value is now in seconds, relative to
789
+ request time
790
+ - [#296] client is optional for password grant type.
791
+ - [#319] If client credentials are present on password grant type they are validated
792
+ - [#326] If client credentials are present in refresh token they are validated
793
+ - [#326] If authenticated client does not match original client that
794
+ obtained a refresh token it responds `invalid_grant` instead of
795
+ `invalid_client`. Previous usage was invalid according to Section 5.2 of
796
+ the spec.
797
+ - [#329] access tokens' `scopes` string wa being compared against
798
+ `default_scopes` symbols, always unauthorizing.
799
+ - [#318] Include "WWW-Authenticate" header with Unauthorized responses
800
+ - enhancements
801
+ - [#293] Adds ActionController::Instrumentation in TokensController
802
+ - [#298] Support for multiple redirect_uris added.
803
+ - [#313] `AccessToken.revoke_all_for` actually revokes all non-revoked
804
+ tokens for an application/owner instead of deleting them.
805
+ - [#333] Rails 4.1 support
806
+ - internals
807
+ - Removes jQuery dependency [fixes #300][pr #312 is related]
808
+ - [#294] Client uid and secret will be generated only if not present.
809
+ - [#316] Test warnings addressed.
810
+ - [#338] Rspec 3 syntax.
811
+
812
+ ---
813
+
814
+ ## 0.7.4 - 2013-12-01
815
+
816
+ - bug
817
+ - Symbols instead of strings for user input.
818
+
819
+ ## 0.7.3 - 2013-10-04
820
+
821
+ - enhancements
822
+ - [#204] Allow to overwrite scope in routes
823
+ - internals
824
+ - Returns only present keys in Token Response (may imply a backwards
825
+ incompatible change). https://github.com/doorkeeper-gem/doorkeeper/issues/220
826
+ - bug
827
+ - [#290] Support for Rails 4 when 'protected_attributes' gem is present.
828
+
829
+ ## 0.7.2 - 2013-09-11
830
+
831
+ - enhancements
832
+ - [#272] Allow issuing multiple access_tokens for one user/application for multiple devices
833
+ - [#170] Increase length of allowed redirect URIs
834
+ - [#239] Do not try to load unavailable Request class for the current phase.
835
+ - [#273] Relax jquery-rails gem dependency
836
+
837
+ ## 0.7.1 - 2013-08-30
838
+
839
+ - bug
840
+ - [#269] Rails 3.2 raised `ActiveModel::MassAssignmentSecurity::Error`.
841
+
842
+ ## 0.7.0 - 2013-08-21
843
+
844
+ - enhancements
845
+ - [#229] Rails 4!
846
+ - internals
847
+ - [#203] Changing table name to be specific in column_names_with_table
848
+ - [#215] README update
849
+ - [#227] Use Rails.config.paths["config/routes"] instead of assuming "config/routes.rb" exists
850
+ - [#262] Add jquery as gem dependency
851
+ - [#263] Add a configuration for ActiveRecord.establish_connection
852
+ - Deprecation and Ruby warnings (PRs merged outside of GitHub).
853
+
854
+ ## 0.6.7 - 2013-01-13
855
+
856
+ - internals
857
+ - [#188] Add IDs to the show views for integration testing [@egtann](https://github.com/egtann)
858
+
859
+ ## 0.6.6 - 2013-01-04
860
+
861
+ - enhancements
862
+ - [#187] Raise error if configuration is not set
863
+
864
+ ## 0.6.5 - 2012-12-26
865
+
866
+ - enhancements
867
+ - [#184] Vendor the Bootstrap CSS [@tylerhunt](https://github.com/tylerhunt)
868
+
869
+ ## 0.6.4 - 2012-12-15
870
+
871
+ - bug
872
+ - [#180] Add localization to authorized_applications destroy notice [@aalvarado](https://github.com/aalvarado)
873
+
874
+ ## 0.6.3 - 2012-12-07
875
+
876
+ - bugfixes
877
+ - [#163] Error response content-type header should be application/json [@ggayan](https://github.com/ggayan)
878
+ - [#175] Make token.expires_in_seconds return nil when expires_in is nil [@miyagawa](https://github.com/miyagawa)
879
+ - enhancements
880
+ - [#166, #172, #174] Behavior to automatically authorize based on a configured proc
881
+ - internals
882
+ - [#168] Using expectation syntax for controller specs [@rdsoze](https://github.com/rdsoze)
883
+
884
+ ## 0.6.2 - 2012-11-10
885
+
886
+ - bugfixes
887
+ - [#162] Remove ownership columns from base migration template [@rdsoze](https://github.com/rdsoze)
888
+
889
+ ## 0.6.1 - 2012-11-07
890
+
891
+ - bugfixes
892
+ - [#160] Removed |routes| argument from initializer authenticator blocks
893
+ - documentation
894
+ - [#160] Fixed description of context of authenticator blocks
895
+
896
+ ## 0.6.0 - 2012-11-05
897
+
898
+ - enhancements
899
+ - Mongoid `orm` configuration accepts only :mongoid2 or :mongoid3
900
+ - Authorization endpoint does not redirect in #new action anymore. It wasn't specified by OAuth spec
901
+ - TokensController now inherits from ActionController::Metal. There might be performance upgrades
902
+ - Add link to authorization in Applications scaffold
903
+ - [#116] MongoMapper support [@carols10cents](https://github.com/carols10cents)
904
+ - [#122] Mongoid3 support [@petergoldstein](https://github.com/petergoldstein)
905
+ - [#150] Introduce test redirect uri for applications
906
+ - bugfixes
907
+ - [#157] Response token status should be `:ok`, not `:success` [@theycallmeswift](https://github.com/theycallmeswift)
908
+ - [#159] Remove ActionView::Base.field_error_proc override (fixes #145)
909
+ - internals
910
+ - Update development dependencies
911
+ - Several refactorings
912
+ - Rails/ORM are easily swichable with env vars (rails and orm)
913
+ - Travis now tests against Mongoid v2
914
+
915
+ ## 0.5.0 - 2012-10-20
916
+
917
+ Official support for rubinius was removed.
918
+
919
+ - enhancements
920
+ - Configure the way access token is retrieved from request (default to bearer header)
921
+ - Authorization Code expiration time is now configurable
922
+ - Add support for mongoid
923
+ - [#78, #128, #137, #138] Application Ownership
924
+ - [#92] Allow users to skip controllers
925
+ - [#99] Remove deprecated warnings for data-\* attributes [@towerhe](https://github.com/towerhe)
926
+ - [#101] Return existing access_token for PasswordAccessTokenRequest [@benoist](https://github.com/benoist)
927
+ - [#104] Changed access token scopes example code to default_scopes and optional_scopes [@amkirwan](https://github.com/amkirwan)
928
+ - [#107] Fix typos in initializer
929
+ - [#123] i18n for validator, flash messages [@petergoldstein](https://github.com/petergoldstein)
930
+ - [#140] ActiveRecord is the default value for the ORM [@petergoldstein](https://github.com/petergoldstein)
931
+ - internals
932
+ - [#112, #120] Replacing update_attribute with update_column to eliminate deprecation warnings [@rmoriz](https://github.com/rmoriz), [@petergoldstein](https://github.com/petergoldstein)
933
+ - [#121] Updating all development dependencies to recent versions. [@petergoldstein](https://github.com/petergoldstein)
934
+ - [#144] Adding MongoDB dependency to .travis.yml [@petergoldstein](https://github.com/petergoldstein)
935
+ - [#143] Displays errors for unconfigured error messages [@timgaleckas](https://github.com/timgaleckas)
936
+ - bugfixes
937
+ - [#102] Not returning 401 when access token generation fails [@cslew](https://github.com/cslew)
938
+ - [#125] Doorkeeper is using ActiveRecord version of as_json in ORM agnostic code [@petergoldstein](https://github.com/petergoldstein)
939
+ - [#142] Prevent double submission of password based authentication [@bdurand](https://github.com/bdurand)
940
+ - documentation
941
+ - [#141] Add rack-cors middleware to readme [@gottfrois](https://github.com/gottfrois)
942
+
943
+ ## 0.4.2 - 2012-06-05
944
+
945
+ - bugfixes:
946
+ - [#94] Uninitialized Constant in Password Flow
947
+
948
+ ## 0.4.1 - 2012-06-02
949
+
950
+ - enhancements:
951
+ - Backport: Move doorkeeper_for extension to Filter helper
952
+
953
+ ## 0.4.0 - 2012-05-26
954
+
955
+ - deprecation
956
+ - Deprecate authorization_scopes
957
+ - database changes
958
+ - AccessToken#resource_owner_id is not nullable
959
+ - enhancements
960
+ - [#83] Add Resource Owner Password Credentials flow [@jaimeiniesta](https://github.com/jaimeiniesta)
961
+ - [#76] Allow token expiration to be disabled [@mattgreen](https://github.com/mattgreen)
962
+ - [#89] Configure the way client credentials are retrieved from request
963
+ - [#b6470a] Add Client Credentials flow
964
+ - internals
965
+ - [#2ece8d, #f93778] Introduce Client and ErrorResponse classes
966
+
967
+ ## 0.3.4 - 2012-05-24
968
+
969
+ - Fix attr_accessible for rails 3.2.x
970
+
971
+ ## 0.3.3 - 2012-05-07
972
+
973
+ - [#86] shrink gem package size
974
+
975
+ ## 0.3.2 - 2012-04-29
976
+
977
+ - enhancements
978
+ - [#54] Ignore Authorization: headers that are not Bearer [@miyagawa](https://github.com/miyagawa)
979
+ - [#58, #64] Add destroy action to applications endpoint [@jaimeiniesta](https://github.com/jaimeiniesta), [@davidfrey](https://github.com/davidfrey)
980
+ - [#63] TokensController responds with `401 unauthorized` [@jaimeiniesta](https://github.com/jaimeiniesta)
981
+ - [#67, #72] Fix for mass-assignment [@cicloid](https://github.com/cicloid)
982
+ - internals
983
+ - [#49] Add Gemnasium status image to README [@laserlemon](https://github.com/laserlemon)
984
+ - [#50] Fix typos [@tomekw](https://github.com/tomekw)
985
+ - [#51] Updated the factory_girl_rails dependency, fix expires_in response which returned a float number instead of integer [@antekpiechnik](https://github.com/antekpiechnik)
986
+ - [#62] Typos, .gitignore [@jaimeiniesta](https://github.com/jaimeiniesta)
987
+ - [#65] Change \_path redirections to \_url redirections [@jaimeiniesta](https://github.com/jaimeiniesta)
988
+ - [#75] Fix unknown method #authenticate_admin! [@mattgreen](https://github.com/mattgreen)
989
+ - Remove application link in authorized app view
990
+
991
+ ## 0.3.1 - 2012-02-17
992
+
993
+ - enhancements
994
+ - [#48] Add if, else options to doorkeeper_for
995
+ - Add views generator
996
+ - internals
997
+ - Namespace models
998
+
999
+ ## 0.3.0 - 2012-02-11
1000
+
1001
+ - enhancements
1002
+ - [#17, #31] Add support for client credentials in basic auth header [@GoldsteinTechPartners](https://github.com/GoldsteinTechPartners)
1003
+ - [#28] Add indices to migration [@GoldsteinTechPartners](https://github.com/GoldsteinTechPartners)
1004
+ - [#29] Allow doorkeeper to run with rails 3.2 [@john-griffin](https://github.com/john-griffin)
1005
+ - [#30] Improve client's redirect uri validation [@GoldsteinTechPartners](https://github.com/GoldsteinTechPartners)
1006
+ - [#32] Add token (implicit grant) flow [@GoldsteinTechPartners](https://github.com/GoldsteinTechPartners)
1007
+ - [#34] Add support for custom unathorized responses [@GoldsteinTechPartners](https://github.com/GoldsteinTechPartners)
1008
+ - [#36] Remove repetitions from the Authorised Applications view [@carvil](https://github.com/carvil)
1009
+ - When user revoke an application, all tokens for that application are revoked
1010
+ - Error messages now can be translated
1011
+ - Install generator copies the error messages localization file
1012
+ - internals
1013
+ - Fix deprecation warnings in ActiveSupport::Base64
1014
+ - Remove deprecation in doorkeeper_for that handles hash arguments
1015
+ - Depends on railties instead of whole rails framework
1016
+ - CI now integrates with rails 3.1 and 3.2
1017
+
1018
+ ## 0.2.0 - 2011-12-17
1019
+
1020
+ - enhancements
1021
+ - [#4] Add authorized applications endpoint
1022
+ - [#5, #11] Add access token scopes
1023
+ - [#10] Add access token expiration by default
1024
+ - [#9, #12] Add refresh token flow
1025
+ - internals
1026
+ - [#7] Improve configuration options with :default
1027
+ - Improve configuration options with :builder
1028
+ - Refactor config class
1029
+ - Improve coverage of authorization request integration
1030
+ - bug fixes
1031
+ - [#6, #20] Fix access token response headers
1032
+ - Fix issue with state parameter
1033
+ - deprecation
1034
+ - deprecate :only and :except options in doorkeeper_for
1035
+
1036
+ ## 0.1.1 - 2011-11-30
1037
+
1038
+ - enhancements
1039
+ - [#3] Authorization code must be short lived and single use
1040
+ - [#2] Improve views provided by doorkeeper
1041
+ - [#1] Skips authorization form if the client has been authorized by the resource owner
1042
+ - Improve readme
1043
+ - bugfixes
1044
+ - Fix issue when creating the access token (wrong client id)
1045
+
1046
+ ## 0.1.0 - 2011-11-25
1047
+
1048
+ - Authorization Code flow
1049
+ - OAuth applications endpoint