Basic Auth Dialog shown after successful XHR request with Basic Auth

NEW
Unassigned

Status

()

Core
Networking: HTTP
P3
normal
6 years ago
a month ago

People

(Reporter: ozten, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [necko-backlog])

(Reporter)

Description

6 years ago
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
You need to log in before you can comment on or make changes to this bug.