class Doorkeeper::TokensController

def authorize_response

def authorize_response
  @authorize_response ||= begin
    before_successful_authorization
    auth = strategy.authorize
    context = build_context(auth: auth)
    after_successful_authorization(context) unless auth.is_a?(Doorkeeper::OAuth::ErrorResponse)
    auth
  end
end