Sha256: 14bc839751a0a6ec3c688d79de3a41da6ae0d1cee9cc2f4fceef8dce88a71ca9

Contents?: true

Size: 338 Bytes

Versions: 2

Compression:

Stored size: 338 Bytes

Contents

class Doorkeeper::TokenInfoController < Doorkeeper::ApplicationController

  def show
    if doorkeeper_token && doorkeeper_token.accessible?
      render :json => doorkeeper_token, :status => :ok
    else
      render :json => Doorkeeper::OAuth::ErrorResponse.new(:name => :invalid_request), :status => :unauthorized
    end 
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
doorkeeper-0.5.0 app/controllers/doorkeeper/token_info_controller.rb
doorkeeper-0.5.0.rc1 app/controllers/doorkeeper/token_info_controller.rb