Sha256: 3e4dbc41e98ebd305da2fbea79df44ac752a502afc9a004a20dbc9add18148b2

Contents?: true

Size: 577 Bytes

Versions: 14

Compression:

Stored size: 577 Bytes

Contents

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

      attr_accessor :client, :resource_owner, :server

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

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

      def authorize
        request.authorize
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
doorkeeper-0.7.4 lib/doorkeeper/request/password.rb
doorkeeper-0.7.3 lib/doorkeeper/request/password.rb
doorkeeper-0.7.2 lib/doorkeeper/request/password.rb
doorkeeper-0.7.1 lib/doorkeeper/request/password.rb
doorkeeper-0.7.0 lib/doorkeeper/request/password.rb
doorkeeper-0.6.7 lib/doorkeeper/request/password.rb
doorkeeper-0.6.6 lib/doorkeeper/request/password.rb
doorkeeper-0.6.5 lib/doorkeeper/request/password.rb
doorkeeper-0.6.4 lib/doorkeeper/request/password.rb
doorkeeper-0.6.3 lib/doorkeeper/request/password.rb
doorkeeper-0.6.2 lib/doorkeeper/request/password.rb
doorkeeper-0.6.1 lib/doorkeeper/request/password.rb
doorkeeper-0.6.0 lib/doorkeeper/request/password.rb
doorkeeper-0.6.0.rc1 lib/doorkeeper/request/password.rb