Sha256: 2845d540f8e89e08b00d45c1512aab244f238086518dc7541cd5120105f29296
Contents?: true
Size: 720 Bytes
Versions: 2
Compression:
Stored size: 720 Bytes
Contents
module Doorkeeper module OpenidConnect class UserinfoController < ::Doorkeeper::ApplicationController include Doorkeeper::Helpers::Controller def show if doorkeeper_token && doorkeeper_token.accessible? resource_owner = doorkeeper_token.instance_eval(&Doorkeeper::OpenidConnect.configuration.resource_owner_from_access_token) user_info = Doorkeeper::OpenidConnect::Models::UserInfo.new(resource_owner) render json: user_info, 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 end
Version data entries
2 entries across 2 versions & 1 rubygems