After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 670394 - Handle HTTP error 511 Network Authentication Required (standard secure proxy authentification/captive portal detection)
Handle HTTP error 511 Network Authentication Required (standard secure proxy ...
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-02-19 12:47 UTC by Nicolas Mailhot
Modified: 2015-08-07 16:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Nicolas Mailhot 2012-02-19 12:47:05 UTC
Since https://bugzilla.mozilla.org/show_bug.cgi?id=479880

there is no clean way for a proxy or captive portal to get a client to display
an authentication dialog when user credentials expire while he is browsing on
an https website.

(to be sure, the previous methods were insecure and hackish but they existed
because nothing better was available)

The IETF finally set up to fix this problem and defined a standard HTTP error
that let access control equipments tell the client authentication or
re-authentication is needed and where the authentication form is located.

http://tools.ietf.org/id/draft-nottingham-http-new-status-04.txt

(since error 511 uses out-of-band authentication it is possible for the client
to only trust specific certs on error 511 and protect the user)

-> <http://www.rfc-editor.org/queue2.html#draft-nottingham-http-new-status> (the spec is approved and in the queue for publication as RFC)

NetworkManager should http-probe new networks (using an public website as target) and display the proxy/captive portal auth page if an error 511 is returned
Comment 1 Bastien Nocera 2012-07-11 09:21:11 UTC
Isn't this a dupe of bug 609870?
Comment 2 Nicolas Mailhot 2012-07-11 09:42:57 UTC
No, this RFE is a way to handle RFC-compliant portals, while I'm sure people will put all kinds of fugly workarounds under bug #609870
Comment 3 Nicolas Mailhot 2012-07-11 09:43:40 UTC
(btw the corresponding RFC has been finalized and published by the ietf now)
Comment 4 Jonh Wendell 2013-02-09 20:13:54 UTC
I'm working on that should push a series of patches very soon.
Comment 5 Pavel Simerda 2013-05-06 13:29:53 UTC
(In reply to comment #4)
> I'm working on that should push a series of patches very soon.

Still active?
Comment 6 Jonh Wendell 2013-05-06 13:32:52 UTC
I've sent them in February: https://mail.gnome.org/archives/networkmanager-list/2013-February/msg00031.html

they were rejected, so, I'm not working on this anymore.
Comment 7 Dan Winship 2013-05-06 15:05:14 UTC
I don't think they were actively rejected, they just sort of stalled...
Comment 8 Pavel Simerda 2013-05-06 18:55:29 UTC
(In reply to comment #6)
> I've sent them in February:
> https://mail.gnome.org/archives/networkmanager-list/2013-February/msg00031.html
> 
> they were rejected, so, I'm not working on this anymore.

I don't see anything that would suggest rejection. If you are still interested, please let us know and be patient with us.
Comment 9 Dan Williams 2015-07-16 15:06:09 UTC
Pushed a patch to git master that explicity checks for 511 response.  The actual parsing and URL stuff should be left to the portal login UI, which would be parsing the response anyway to look for WISPR or whatever other stuff a portal might send.

6a81daf1cb1fe68feb37296adcbcbcf7d2289d54
Comment 10 Bastien Nocera 2015-07-18 22:15:36 UTC
(In reply to Dan Williams from comment #9)
> Pushed a patch to git master that explicity checks for 511 response.  The
> actual parsing and URL stuff should be left to the portal login UI, which
> would be parsing the response anyway to look for WISPR or whatever other
> stuff a portal might send.

Can you file a bug against gnome-shell's portal helper component, describing what that would entail?
Comment 11 Dan Williams 2015-08-07 16:25:00 UTC
(In reply to Bastien Nocera from comment #10)
> (In reply to Dan Williams from comment #9)
> > Pushed a patch to git master that explicity checks for 511 response.  The
> > actual parsing and URL stuff should be left to the portal login UI, which
> > would be parsing the response anyway to look for WISPR or whatever other
> > stuff a portal might send.
> 
> Can you file a bug against gnome-shell's portal helper component, describing
> what that would entail?

https://bugzilla.gnome.org/show_bug.cgi?id=753362