class Doorkeeper::Request::Password
def self.build(server)
def self.build(server) new(server.credentials, server.resource_owner, server) end
def authorize
def authorize request.authorize end
def initialize(credentials, resource_owner, server)
def initialize(credentials, resource_owner, server) @credentials, @resource_owner, @server = credentials, resource_owner, server end
def request
def request @request ||= OAuth::PasswordAccessTokenRequest.new(Doorkeeper.configuration, credentials, resource_owner, server.parameters) end