Closed Bug 1359543 Opened 7 years ago Closed 7 years ago

WebExtensions ProxyAPI: need ability to specify username/password for proxy servers requiring authentication

Categories

(WebExtensions :: Untriaged, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: ericjung, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: meta, Whiteboard: [proxy][outreach][awe:foxyproxy@eric.h.jung] triaged)

User Story

Adding User Story (with progress of add-on we had as blocked on this), so it stays on top.

FoxyProxy is in the progress of migrating to webextension APIs.  Eric is engaged with Shane on the Proxy API, to resolve truly blocking issues. 

Will update after 57 goes to Beta and the Proxy API changes coming in 57 finish landing.
The current WebExtensions ProxyAPI lacks the ability to specify username/password for use with a proxy server. That prevents the use of proxy servers requiring authentication, which is an enormous share of proxy servers in use on the internet.
Depends on: 1359693
Keywords: meta
Whiteboard: [proxy][triaged]
We may be able to get auth to work with https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/webRequest/onAuthRequired. That wouldn't be as clean as providing auth info in the FindProxyForPAC() function, but could be a good workaround for now.

See also bug 1360404 - Accept credentials in proxyInfo object (non-SOCKS)
Depends on: 1360404
Whiteboard: [proxy][triaged] → [proxy][triaged][outreach]
Whiteboard: [proxy][triaged][outreach] → [proxy][outreach][awe:foxyproxy@eric.h.jung] triaged
> We may be able to get auth to work with https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/webRequest/onAuthRequired.
Confirmed this works, and I have an example extension. However, it does *not* work for SOCKS proxy servers. Only HTTP and HTTPS/SSL proxy servers. So this is not a complete solution.
> Confirmed this works
There is also no way to change the credentials by request since onAuthRequired() appears to do some caching.
Superseded by 1381290
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
No longer depends on: 1360404
User Story: (updated)
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.