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-4.4.3 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-5.0.0 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-4.4.2 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-4.4.1 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-5.0.0.rc2 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-4.4.0 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-5.0.0.rc1 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-4.3.2 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-4.3.1 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-4.3.0 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-4.2.6 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-4.2.5 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-4.2.0 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-4.1.0 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-4.0.0 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-4.0.0.rc4 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-4.0.0.rc3 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-4.0.0.rc2 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-4.0.0.rc1 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-3.1.0 app/controllers/doorkeeper/token_info_controller.rb