Skip to content

@nbulaj nbulaj released this Jun 17, 2019 · 3 commits to master since this release

  • [#1270] Find matching tokens in batches for reuse_access_token option (fix #1193).
  • [#1271] Reintroduce existing token revocation for client credentials.
  • [#1269] Update initializer template documentation.
  • [#1266] Use strong parameters within pre-authorization.
  • [#1264] Add :before_successful_authorization and :after_successful_authorization hooks in TokensController
  • [#1263] Response properly when introspection fails and fix configurations's user guide.
Assets 2

@nbulaj nbulaj released this May 23, 2019 · 20 commits to master since this release

  • [#1260], [#1262] Improve Token Introspection configuration option (access to tokens, client).
  • [#1257] Add constraint configuration when using client authentication on introspection endpoint.
  • [#1252] Returning unauthorized when the revocation of the token should not be performed due to wrong permissions.
  • [#1249] Specify case sensitive uniqueness to remove Rails 6 deprecation message
  • [#1248] Display the Application Secret in HTML after creating a new application even when hash_application_secrets is used.
  • [#1248] Return the unhashed Application Secret in the JSON response after creating new application even when hash_application_secrets is used.
  • [#1238] Better support for native app with support for custom scheme and localhost redirection.
Assets 2

@nbulaj nbulaj released this Apr 17, 2019 · 44 commits to master since this release

See Upgrade guides for migration to a new version.

  • [#1243]: Add nil check operator in token checking at token introspection.
  • [#1241] Explaining foreign key options for resource owner in a single place
  • [#1237] Allow to set blank redirect URI if Doorkeeper configured to use redirect URI-less grant flows.
  • [#1234] Fix StaleRecordsCleaner to properly work with big amount of records.
  • [#1228] Allow to explicitly set non-expiring tokens in custom_access_token_expires_in configuration
    option using Float::INIFINITY return value.
  • [#1224] Do not try to store token if not found by fallback hashing strategy.
  • [#1223] Update Hound/Rubocop rules, correct Doorkeeper codebase to follow style-guides.
  • [#1220] Drop Rails 4.2 & Ruby < 2.4 support.
Assets 2

@nbulaj nbulaj released this Mar 22, 2019 · 80 commits to master since this release

  • [#1208] Unify hashing implementation into secret storing strategies

    [IMPORTANT]: If you have been using the master branch of doorkeeper with bcrypt in your Gemfile.lock,
    your application secrets have been hashed using BCrypt. To restore this behavior, use the initializer option
    use_application_hashing using: 'Doorkeeper::SecretStoring::BCrypt.

  • [#1216] Add nil check to expires_at method.

  • [#1215] Fix deprecates for Rails 6.

  • [#1214] Scopes field accepts array.

  • [#1209] Fix tokens validation for Token Introspection request.

  • [#1202] Use correct HTTP status codes for error responses.

    [IMPORTANT]: this change might break your application if you were relying on the previous
    401 status codes, this is now a 400 by default, or a 401 for invalid_client and invalid_token errors.

  • [#1201] Fix custom TTL block client parameter to always be an Doorkeeper::Application instance.

    [IMPORTANT]: those who defined custom_access_token_expires_in configuration option need to check
    their block implementation: if you are using oauth_client.application to get Doorkeeper::Application
    instance, then you need to replace it with just oauth_client.

  • [#1200] Increase default Doorkeeper access token value complexity (urlsafe_base64 instead of just hex)
    matching RFC6749/RFC6750.

    [IMPORTANT]: this change have possible side-effects in case you have custom database constraints for
    access token value, application secrets, refresh tokens or you patched Doorkeeper models and introduced
    token value validations, or you are using database with case-insensitive WHERE clause like MySQL
    (you can face some collisions). Before this change access token value matched [a-f0-9] regex, and now
    it matches [a-zA-Z0-9\-_]. In case you have such restrictions and your don't use custom token generator
    please change configuration option default_generator_method to :hex.

  • [#1195] Allow to customize Token Introspection response (fixes #1194).

  • [#1189] Option to set token_reuse_limit.

  • [#1191] Try to load bcrypt for hashing of application secrets, but add fallback.

Assets 2

@nbulaj nbulaj released this Jan 17, 2019 · 117 commits to master since this release

  • [#1188] Use params instead of request.POST in tokens controller (fixes #1183).
  • [#1182] Fix loopback IP redirect URIs to conform with RFC8252, p. 7.3 (fixes #1170).
  • [#1179] Authorization Code Grant Flow without client id returns invalid_client error.
  • [#1177] Allow to limit scopes for certain grant_types
  • [#1176] Fix test factory support for factory_bot_rails
  • [#1175] Internal refactor: use scopes_string inside scopes.
  • [#1168] Allow optional hashing of tokens and secrets.
  • [#1164] Fix error when root_path is not defined.
  • [#1162] Fix enforce_content_type for requests without body.
Assets 2

@nbulaj nbulaj released this Oct 25, 2018 · 158 commits to master since this release

  • [#1158] Fix initializer template: change handle_auth_errors option
  • [#1157] Remove redundant index from migration template.
Assets 2

@nbulaj nbulaj released this Oct 10, 2018 · 164 commits to master since this release

  • [#1140] Allow rendering custom errors from exceptions (issue #844). Originally opened as [#944].
  • [#1138] Revert regression bug (check for token expiration in Authorizations controller so authorization
    triggers every time)
  • [#1149] Fix for URIChecker#valid_for_authorization? false negative when query is blank, but ? present.
  • [#1151] Fix Refresh Token strategy: add proper validation of client credentials both for Public & Private clients.
  • [#1152] Fix migration template: change resource owner data type from integer to Rails generic references
  • [#1154] Refactor StaleRecordsCleaner to be ORM agnostic.
Assets 2

@nbulaj nbulaj released this Sep 21, 2018

  • [#1143] Adds a config option opt_out_native_route_change to opt out of the breaking api changed introduced in #1003
Assets 2

@nbulaj nbulaj released this Aug 24, 2018 · 187 commits to master since this release

  • [#1127] Change the token_type initials of the Banner Token to uppercase to comply with the RFC6750 specification.
Assets 2

@nbulaj nbulaj released this Aug 20, 2018 · 2 commits to 4.4.0 since this release

  • [#1130] Backport fix for native redirect_uri from 5.x.
Assets 2
You can’t perform that action at this time.