Sha256: ad9d6e994674067920ef0b97df7ded08c295459721e2c25994a673a0148b875b

Contents?: true

Size: 338 Bytes

Versions: 48

Compression:

Stored size: 338 Bytes

Contents

# frozen_string_literal: true

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

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

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

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
doorkeeper-5.2.0.rc3 lib/doorkeeper/request/code.rb
doorkeeper-5.2.0.rc2 lib/doorkeeper/request/code.rb
doorkeeper-5.2.0.rc1 lib/doorkeeper/request/code.rb
doorkeeper-5.1.0 lib/doorkeeper/request/code.rb
doorkeeper-5.1.0.rc2 lib/doorkeeper/request/code.rb
doorkeeper-5.1.0.rc1 lib/doorkeeper/request/code.rb
doorkeeper-5.0.2 lib/doorkeeper/request/code.rb
doorkeeper-5.0.1 lib/doorkeeper/request/code.rb