Sha256: fac39952967f4248d23472a95c3a2507377c2ab953146faabc4594143483dacd
Contents?: true
Size: 475 Bytes
Versions: 14
Compression:
Stored size: 475 Bytes
Contents
module Doorkeeper class TokensController < ActionController::Metal include Helpers::Controller def create response = strategy.authorize self.headers.merge! response.headers self.response_body = response.body.to_json self.status = response.status rescue Errors::DoorkeeperError => e handle_token_exception e end private def strategy @strategy ||= server.token_request params[:grant_type] end end end
Version data entries
14 entries across 14 versions & 1 rubygems