doorkeeper-gem/doorkeeper-openid_connect

View on GitHub
lib/doorkeeper/request/id_token.rb

Summary

Maintainability
A
15 mins
Test Coverage
# frozen_string_literal: true

require 'doorkeeper/request/strategy'

module Doorkeeper
  module Request
    class IdToken < Strategy
      delegate :current_resource_owner, to: :server

      def pre_auth
        server.context.send(:pre_auth)
      end

      def request
        @request ||= OAuth::IdTokenRequest.new(pre_auth, current_resource_owner)
      end
    end
  end
end