Sha256: d98fbb03603f7634b004241e46790b9ab7fd8fe36a357244fe5e592070f05c1c
Contents?: true
Size: 411 Bytes
Versions: 3
Compression:
Stored size: 411 Bytes
Contents
module Doorkeeper class TokenInfoController < ::Doorkeeper::ApplicationController 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
3 entries across 3 versions & 1 rubygems