Sha256: efb55674132398cabfc2fa37e1f13c80352f06afb6dc8d30aedeaa4eadb23f32
Contents?: true
Size: 428 Bytes
Versions: 1
Compression:
Stored size: 428 Bytes
Contents
# frozen_string_literal: true module Doorkeeper class TokenInfoController < Doorkeeper::ApplicationMetalController def show if doorkeeper_token && doorkeeper_token.accessible? render json: doorkeeper_token, status: :ok else error = OAuth::InvalidTokenResponse.new response.headers.merge!(error.headers) render json: error.body, status: error.status end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
doorkeeper-5.1.0.rc2 | app/controllers/doorkeeper/token_info_controller.rb |