Sha256: 6a1246918e2380e46ae56345e1437b12330553557fd719eae724f4e37609fb7e

Contents?: true

Size: 468 Bytes

Versions: 17

Compression:

Stored size: 468 Bytes

Contents

module Doorkeeper
  module Request
    class Token
      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

17 entries across 17 versions & 1 rubygems

Version Path
doorkeeper-3.0.1 lib/doorkeeper/request/token.rb
doorkeeper-2.2.2 lib/doorkeeper/request/token.rb
doorkeeper-3.0.0 lib/doorkeeper/request/token.rb
doorkeeper-3.0.0.rc2 lib/doorkeeper/request/token.rb
doorkeeper-3.0.0.rc1 lib/doorkeeper/request/token.rb
doorkeeper-2.2.1 lib/doorkeeper/request/token.rb
doorkeeper-2.2.0 lib/doorkeeper/request/token.rb
doorkeeper-2.1.4 lib/doorkeeper/request/token.rb
doorkeeper-2.1.3 lib/doorkeeper/request/token.rb
doorkeeper-2.1.2 lib/doorkeeper/request/token.rb
doorkeeper-2.1.1 lib/doorkeeper/request/token.rb
doorkeeper-2.1.0 lib/doorkeeper/request/token.rb
doorkeeper-2.0.1 lib/doorkeeper/request/token.rb
doorkeeper-2.0.0 lib/doorkeeper/request/token.rb
doorkeeper-2.0.0.rc3 lib/doorkeeper/request/token.rb
doorkeeper-2.0.0.rc2 lib/doorkeeper/request/token.rb
doorkeeper-2.0.0.alpha1 lib/doorkeeper/request/token.rb