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.8.1 lib/doorkeeper/request/code.rb
doorkeeper-5.8.0 lib/doorkeeper/request/code.rb
doorkeeper-5.7.1 lib/doorkeeper/request/code.rb
doorkeeper-5.7.0 lib/doorkeeper/request/code.rb
doorkeeper-5.6.9 lib/doorkeeper/request/code.rb
doorkeeper-5.6.8 lib/doorkeeper/request/code.rb
doorkeeper-5.6.7 lib/doorkeeper/request/code.rb
doorkeeper-5.6.6 lib/doorkeeper/request/code.rb
doorkeeper-5.6.5 lib/doorkeeper/request/code.rb
doorkeeper-5.6.4 lib/doorkeeper/request/code.rb
doorkeeper-5.6.3 lib/doorkeeper/request/code.rb
doorkeeper-5.6.2 lib/doorkeeper/request/code.rb
doorkeeper-5.6.1 lib/doorkeeper/request/code.rb
doorkeeper-5.6.0 lib/doorkeeper/request/code.rb
doorkeeper-5.6.0.rc2 lib/doorkeeper/request/code.rb
doorkeeper-5.6.0.rc1 lib/doorkeeper/request/code.rb
doorkeeper-5.5.4 lib/doorkeeper/request/code.rb
doorkeeper-5.5.3 lib/doorkeeper/request/code.rb
doorkeeper-5.5.2 lib/doorkeeper/request/code.rb
doorkeeper-5.5.1 lib/doorkeeper/request/code.rb