Sha256: 0747f78042e1649ad19abe04dfee82f01b5d50087336fd62360bd54620b747b8

Contents?: true

Size: 498 Bytes

Versions: 24

Compression:

Stored size: 498 Bytes

Contents

module Doorkeeper
  module Request
    class Code
      # TODO: this is so wrong!
      def self.build(server)
        new(server.context.send(:pre_auth), server)
      end

      attr_accessor :pre_auth, :server

      def initialize(pre_auth, server)
        @pre_auth, @server = pre_auth, server
      end

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

      def authorize
        request.authorize
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
doorkeeper-1.4.2 lib/doorkeeper/request/code.rb
doorkeeper-1.4.1 lib/doorkeeper/request/code.rb
doorkeeper-1.4.0 lib/doorkeeper/request/code.rb
doorkeeper-1.3.1 lib/doorkeeper/request/code.rb
doorkeeper-1.3.0 lib/doorkeeper/request/code.rb
doorkeeper-1.2.0 lib/doorkeeper/request/code.rb
doorkeeper-1.1.0 lib/doorkeeper/request/code.rb
doorkeeper-1.0.0 lib/doorkeeper/request/code.rb
doorkeeper-1.0.0.rc2 lib/doorkeeper/request/code.rb
doorkeeper-1.0.0.rc1 lib/doorkeeper/request/code.rb
doorkeeper-0.7.4 lib/doorkeeper/request/code.rb
doorkeeper-0.7.3 lib/doorkeeper/request/code.rb
doorkeeper-0.7.2 lib/doorkeeper/request/code.rb
doorkeeper-0.7.1 lib/doorkeeper/request/code.rb
doorkeeper-0.7.0 lib/doorkeeper/request/code.rb
doorkeeper-0.6.7 lib/doorkeeper/request/code.rb
doorkeeper-0.6.6 lib/doorkeeper/request/code.rb
doorkeeper-0.6.5 lib/doorkeeper/request/code.rb
doorkeeper-0.6.4 lib/doorkeeper/request/code.rb
doorkeeper-0.6.3 lib/doorkeeper/request/code.rb