Skip to content

Commit

Permalink
[ci skip] News entry
Browse files Browse the repository at this point in the history
  • Loading branch information
nbulaj committed Oct 4, 2018
1 parent c65ea3a commit f6b65b4
Show file tree
Hide file tree
Showing 61 changed files with 121 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ User-visible changes worth mentioning.
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.
- [#1154] Refactor `StaleRecordsCleaner` to be ORM agnostic.

## 5.0.0

Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/errors.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module Errors
class DoorkeeperError < StandardError
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/grape/authorization_decorator.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module Grape
class AuthorizationDecorator < SimpleDelegator
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/grape/helpers.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'doorkeeper/grape/authorization_decorator'

module Doorkeeper
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/helpers/controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# Define methods that can be called in any controller that inherits from
# Doorkeeper::ApplicationMetalController or Doorkeeper::ApplicationController
module Doorkeeper
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/models/access_grant_mixin.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module AccessGrantMixin
extend ActiveSupport::Concern
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/models/access_token_mixin.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module AccessTokenMixin
extend ActiveSupport::Concern
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/models/application_mixin.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module ApplicationMixin
extend ActiveSupport::Concern
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/models/concerns/accessible.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module Models
module Accessible
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/models/concerns/expirable.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module Models
module Expirable
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/models/concerns/orderable.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module Models
module Orderable
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/models/concerns/ownership.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module Models
module Ownership
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/models/concerns/revocable.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module Models
module Revocable
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/models/concerns/scopes.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module Models
module Scopes
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/authorization/code.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
module Authorization
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/authorization/context.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
module Authorization
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/authorization/token.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
module Authorization
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/authorization/uri_builder.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rack/utils'

module Doorkeeper
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/authorization_code_request.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
class AuthorizationCodeRequest < BaseRequest
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/base_request.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
class BaseRequest
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/base_response.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
class BaseResponse
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/client.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
class Client
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/client/credentials.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
class Client
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/client_credentials/creator.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
class ClientCredentialsRequest < BaseRequest
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/client_credentials/issuer.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
class ClientCredentialsRequest < BaseRequest
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/client_credentials/validation.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
class ClientCredentialsRequest < BaseRequest
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/client_credentials_request.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
class ClientCredentialsRequest < BaseRequest
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/code_request.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
class CodeRequest
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/code_response.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
class CodeResponse < BaseResponse
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/error.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
Error = Struct.new(:name, :state) do
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/error_response.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
class ErrorResponse < BaseResponse
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/forbidden_token_response.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
class ForbiddenTokenResponse < ErrorResponse
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/helpers/scope_checker.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
module Helpers
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/helpers/unique_token.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
module Helpers
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/helpers/uri_checker.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
module Helpers
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/invalid_token_response.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
class InvalidTokenResponse < ErrorResponse
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/password_access_token_request.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
class PasswordAccessTokenRequest < BaseRequest
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/pre_authorization.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
class PreAuthorization
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/refresh_token_request.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
class RefreshTokenRequest < BaseRequest
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/scopes.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
class Scopes
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/token.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
class Token
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/token_introspection.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
# RFC7662 OAuth 2.0 Token Introspection
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/token_request.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
class TokenRequest
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/oauth/token_response.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module OAuth
class TokenResponse
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/orm/active_record.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'active_support/lazy_load_hooks'

require 'doorkeeper/orm/active_record/stale_records_cleaner'
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/rails/helpers.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module Rails
module Helpers
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/rails/routes.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'doorkeeper/rails/routes/mapping'
require 'doorkeeper/rails/routes/mapper'

Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/rails/routes/mapper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module Rails
class Routes # :nodoc:
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/rails/routes/mapping.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module Rails
class Routes # :nodoc:
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/request.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module Request
class << self
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/request/authorization_code.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module Request
class AuthorizationCode < Strategy
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/request/client_credentials.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module Request
class ClientCredentials < Strategy
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/request/code.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module Request
class Code < Strategy
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/request/password.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module Request
class Password < Strategy
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/request/refresh_token.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module Request
class RefreshToken < Strategy
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/request/strategy.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module Request
class Strategy
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/request/token.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module Request
class Token < Strategy
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/server.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
class Server
attr_accessor :context
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/stale_records_cleaner.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
class StaleRecordsCleaner
CLEANER_CLASS = 'StaleRecordsCleaner'.freeze
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/validations.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
module Validations
extend ActiveSupport::Concern
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Doorkeeper
def self.gem_version
Gem::Version.new VERSION::STRING
Expand Down

0 comments on commit f6b65b4

Please sign in to comment.