Sha256: f73a55cb4a7f7fcb023f69e695753b8aa4135d4cb86bd81108f86b1489c36d66

Contents?: true

Size: 379 Bytes

Versions: 15

Compression:

Stored size: 379 Bytes

Contents

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
doorkeeper-1.0.0.rc1 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-0.7.4 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-0.7.3 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-0.7.2 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-0.7.1 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-0.7.0 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-0.6.7 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-0.6.6 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-0.6.5 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-0.6.4 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-0.6.3 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-0.6.2 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-0.6.1 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-0.6.0 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-0.6.0.rc1 app/controllers/doorkeeper/token_info_controller.rb