Sha256: 238599482d8e4ff1dc949387ac035556e6625c6b867eb006e7689c0bd3836575

Contents?: true

Size: 314 Bytes

Versions: 2

Compression:

Stored size: 314 Bytes

Contents

class Doorkeeper::TokensController < Doorkeeper::ApplicationController
  def create
    if token.authorize
      render :json => token.authorization
    else
      render :json => token.error_response
    end
  end

  private

  def token
    @token ||= Doorkeeper::OAuth::AccessTokenRequest.new(params)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
doorkeeper-0.1.1 app/controllers/doorkeeper/tokens_controller.rb
doorkeeper-0.1.0 app/controllers/doorkeeper/tokens_controller.rb