Skip to main content

Bug Tracker

Side navigation

#1595 closed enhancement (fixed)

Opened September 11, 2007 11:24PM UTC

Closed February 10, 2008 05:39AM UTC

ajax provides no means for passing a username and password.

Reported by: zbskii Owned by:
Priority: major Milestone: 1.2.2
Component: ajax Version: 1.2
Keywords: Cc:
Blocked by: Blocking:
Description

XMLHttpRequest's open() can take an optional username and password as its last two parameters. JQuery provides no way to pass these in. Perhaps add username and password to the parameters $.ajax() takes?

Attachments (0)
Change History (4)

Changed September 15, 2007 02:47AM UTC by john comment:1

type: bugenhancement

Changed November 26, 2007 03:47AM UTC by jgfoot comment:2

I also think that this enhancement would be very useful. By all rights, HTTP Digest authentication should be used much more often than authentication cookies: it's much more secure (especially in a non-encrypted session). A big drawback to it is that web designers don't like the dialog boxes that browsers put up demanding user names and passwords; they want to use their own HTML based forms. But, using JavaScript, you can solve this problem. The technique is documented here. It requires, however, passing the authentication username and password to the XMLHttpRequest through the .open method call. jQuery simply doesn't let you do this, even with a beforeSend function.

I think the best solution is to allow "username" and "password" to be passed to .ajax. If others agree I can submit a patch for this (it would be dead simple).

Changed February 09, 2008 06:29PM UTC by cloudream comment:3

fixs in r4359

Changed February 10, 2008 05:39AM UTC by davidserduke comment:4

milestone: 1.2.11.2.2
resolution: → fixed
status: newclosed

Fixed as cloudream said. :)