Bug Tracker

Ticket #1595 (closed enhancement: fixed)

Opened 1 year ago

Last modified 10 months ago

ajax provides no means for passing a username and password.

Reported by: zbskii Assigned to: anonymous
Type: enhancement Priority: major
Milestone: 1.2.2 Component: ajax
Version: 1.2 Keywords:
Cc: Needs: Review

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

Change History

Changed 1 year ago by john

  • type changed from bug to enhancement

Changed 1 year ago by jgfoot

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 10 months ago by cloudream

fixs in r4359

Changed 10 months ago by davidserduke

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from 1.2.1 to 1.2.2

Fixed as cloudream said. :)

Note: See TracTickets for help on using tickets.