doorkeeper 5.1.2 → 5.2.6

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