Sha256: 45cce022af8a14ac4de3cffc5b400fc029981f3192de51bfe315c515057a261b

Contents?: true

Size: 500 Bytes

Versions: 24

Compression:

Stored size: 500 Bytes

Contents

module Doorkeeper
  module Request
    class Token
      # 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::TokenRequest.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/token.rb
doorkeeper-1.4.1 lib/doorkeeper/request/token.rb
doorkeeper-1.4.0 lib/doorkeeper/request/token.rb
doorkeeper-1.3.1 lib/doorkeeper/request/token.rb
doorkeeper-1.3.0 lib/doorkeeper/request/token.rb
doorkeeper-1.2.0 lib/doorkeeper/request/token.rb
doorkeeper-1.1.0 lib/doorkeeper/request/token.rb
doorkeeper-1.0.0 lib/doorkeeper/request/token.rb
doorkeeper-1.0.0.rc2 lib/doorkeeper/request/token.rb
doorkeeper-1.0.0.rc1 lib/doorkeeper/request/token.rb
doorkeeper-0.7.4 lib/doorkeeper/request/token.rb
doorkeeper-0.7.3 lib/doorkeeper/request/token.rb
doorkeeper-0.7.2 lib/doorkeeper/request/token.rb
doorkeeper-0.7.1 lib/doorkeeper/request/token.rb
doorkeeper-0.7.0 lib/doorkeeper/request/token.rb
doorkeeper-0.6.7 lib/doorkeeper/request/token.rb
doorkeeper-0.6.6 lib/doorkeeper/request/token.rb
doorkeeper-0.6.5 lib/doorkeeper/request/token.rb
doorkeeper-0.6.4 lib/doorkeeper/request/token.rb
doorkeeper-0.6.3 lib/doorkeeper/request/token.rb