Sha256: 55d4e32b23531289dd5981432688ffcc5fe5a5a8e36fba63d3fc8b552a887361

Contents?: true

Size: 414 Bytes

Versions: 40

Compression:

Stored size: 414 Bytes

Contents

module Doorkeeper
  class TokenInfoController < Doorkeeper::ApplicationMetalController
    def show
      if doorkeeper_token && doorkeeper_token.accessible?
        render json: doorkeeper_token, status: :ok
      else
        error = OAuth::ErrorResponse.new(name: :invalid_request)
        response.headers.merge!(error.headers)
        render json: error.body, status: error.status
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
doorkeeper-3.0.1 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-2.2.2 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-3.0.0 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-3.0.0.rc2 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-3.0.0.rc1 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-2.2.1 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-2.2.0 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-2.1.4 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-1.4.2 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-2.1.3 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-2.1.2 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-2.1.1 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-2.1.0 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-2.0.1 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-1.4.1 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-2.0.0 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-2.0.0.rc3 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-2.0.0.rc2 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-2.0.0.alpha1 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-1.4.0 app/controllers/doorkeeper/token_info_controller.rb