Sha256: 7faa6fcc9fb75bad9b8e3b210cdcf0376e26f31fcb3a650cc8561fba36a9a1a1

Contents?: true

Size: 346 Bytes

Versions: 18

Compression:

Stored size: 346 Bytes

Contents

require 'doorkeeper/request/strategy'

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

18 entries across 18 versions & 1 rubygems

Version Path
doorkeeper-4.4.3 lib/doorkeeper/request/code.rb
doorkeeper-4.4.2 lib/doorkeeper/request/code.rb
doorkeeper-4.4.1 lib/doorkeeper/request/code.rb
doorkeeper-4.4.0 lib/doorkeeper/request/code.rb
doorkeeper-5.0.0.rc1 lib/doorkeeper/request/code.rb
doorkeeper-4.3.2 lib/doorkeeper/request/code.rb
doorkeeper-4.3.1 lib/doorkeeper/request/code.rb
doorkeeper-4.3.0 lib/doorkeeper/request/code.rb
doorkeeper-4.2.6 lib/doorkeeper/request/code.rb
doorkeeper-4.2.5 lib/doorkeeper/request/code.rb
doorkeeper-4.2.0 lib/doorkeeper/request/code.rb
doorkeeper-4.1.0 lib/doorkeeper/request/code.rb
doorkeeper-4.0.0 lib/doorkeeper/request/code.rb
doorkeeper-4.0.0.rc4 lib/doorkeeper/request/code.rb
doorkeeper-4.0.0.rc3 lib/doorkeeper/request/code.rb
doorkeeper-4.0.0.rc2 lib/doorkeeper/request/code.rb
doorkeeper-4.0.0.rc1 lib/doorkeeper/request/code.rb
doorkeeper-3.1.0 lib/doorkeeper/request/code.rb