Sha256: fbff818d5ae7068a9146eff41b6d594c1f6092da6bff2117998ddc0e17d74dc9

Contents?: true

Size: 607 Bytes

Versions: 27

Compression:

Stored size: 607 Bytes

Contents

module Doorkeeper
  module Request
    class Password
      def self.build(server)
        new(server.credentials, server.resource_owner, server)
      end

      attr_accessor :credentials, :resource_owner, :server

      def initialize(credentials, resource_owner, server)
        @credentials, @resource_owner, @server = credentials, resource_owner, server
      end

      def request
        @request ||= OAuth::PasswordAccessTokenRequest.new(Doorkeeper.configuration, credentials, resource_owner, server.parameters)
      end

      def authorize
        request.authorize
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

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