Sha256: 9e823fa661ff3890987f5f720981208757c88b851a0b8ed46f4884f11d3c5277

Contents?: true

Size: 436 Bytes

Versions: 2

Compression:

Stored size: 436 Bytes

Contents

# frozen_string_literal: true

module Doorkeeper
  module OpenidConnect
    class UserinfoController < ::Doorkeeper::ApplicationController
      unless Doorkeeper.config.api_only
        skip_before_action :verify_authenticity_token
      end
      before_action -> { doorkeeper_authorize! :openid }

      def show
        render json: Doorkeeper::OpenidConnect::UserInfo.new(doorkeeper_token), status: :ok
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
doorkeeper-openid_connect-1.7.4 app/controllers/doorkeeper/openid_connect/userinfo_controller.rb
doorkeeper-openid_connect-1.7.3 app/controllers/doorkeeper/openid_connect/userinfo_controller.rb