Class: Doorkeeper::TokenInfoController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Doorkeeper::TokenInfoController
- Defined in:
- app/controllers/doorkeeper/token_info_controller.rb
Instance Method Summary collapse
Methods included from Helpers::Controller
#authenticate_admin!, #authenticate_resource_owner!, #current_resource_owner, #get_error_response_from_exception, #handle_token_exception, included, #resource_owner_from_credentials, #server, #skip_authorization?
Instance Method Details
#show ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'app/controllers/doorkeeper/token_info_controller.rb', line 3 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 |