Sha256: 98a244ef62743e6730c321b8f40b770b22e3c688f5c7ae9802c0c83622d55a75
Contents?: true
Size: 527 Bytes
Versions: 2
Compression:
Stored size: 527 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::OpenidConnect.configuration.resource_owner_from_access_token.call(doorkeeper_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
2 entries across 2 versions & 1 rubygems