Sha256: 55d4e32b23531289dd5981432688ffcc5fe5a5a8e36fba63d3fc8b552a887361
Contents?: true
Size: 414 Bytes
Versions: 40
Compression:
Stored size: 414 Bytes
Contents
module Doorkeeper class TokenInfoController < Doorkeeper::ApplicationMetalController def show if doorkeeper_token && doorkeeper_token.accessible? render json: doorkeeper_token, status: :ok else error = OAuth::ErrorResponse.new(name: :invalid_request) response.headers.merge!(error.headers) render json: error.body, status: error.status end end end end
Version data entries
40 entries across 40 versions & 1 rubygems