Open Bug 734436 Opened 12 years ago Updated 10 months ago

Basic Auth Dialog shown after successful XHR request with Basic Auth

Categories

(Core :: Networking: HTTP, defect, P3)

x86
macOS
defect

Tracking

()

People

(Reporter: ozten, Unassigned)

Details

(Whiteboard: [necko-backlog])

All the cool kids are using Basic Authentication. The hippest combine XHR, basic auth, and fixed gear bicycles. (Okay maybe not really)...

XHR can do Basic Authentication, but the password manager (or another module?) doesn't remember this for populating the Browser Dialog, nor re-sending the 'Authorization' header on a resource that sends a 401 for non-XHR requests.

Use Case:
I want to use an HTML form for "pretty login", but prime Firefox's pump for basic auth. The following HTTP headers explain the use case:
https://gist.github.com/2007904

Bonus points: Should work cross-domain...
https://gist.github.com/2007673

Aside - intranet.mozilla.org uses Basic Auth and our new BrowserID primary server for mozilla.com email addresses could use this feature to improve the UX of entering your LDAP credentials.
Component: Password Manager → Networking: HTTP
Product: Toolkit → Core
QA Contact: password.manager → networking.http
Whiteboard: [necko-backlog]
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P1
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: P1 → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.