Sha256: 23a383ff21f6ec642cedeb6522d1ab13e5439e900f0436ac5945c9911442be73
Contents?: true
Size: 537 Bytes
Versions: 1
Compression:
Stored size: 537 Bytes
Contents
module Doorkeeper module OpenidConnect class UserinfoController < ::Doorkeeper::ApplicationController skip_before_action :verify_authenticity_token before_action -> { doorkeeper_authorize! :openid } def show resource_owner = doorkeeper_token.instance_eval(&Doorkeeper::OpenidConnect.configuration.resource_owner_from_access_token) user_info = Doorkeeper::OpenidConnect::UserInfo.new(resource_owner, doorkeeper_token.scopes) render json: user_info, status: :ok end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
doorkeeper-openid_connect-1.1.0 | app/controllers/doorkeeper/openid_connect/userinfo_controller.rb |