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