New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 623464 link

Starred by 25 users

Issue metadata

Status: Assigned
Owner:
ooo Dec 13-26
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Authentication dialog is not shown when ServiceWorker returns 401 response.

Project Member Reported by horo@chromium.org, Jun 27 2016

Issue description

Version: 51.0.2704.103
OS: All

What steps will reproduce the problem?
1. Open index.html
2. Click "401.php".
  -> "Authentication Required" dialog is shown.
3. Click cancel and back to index.html.
4. Click "register SW"
5. Click "401.php".
  -> "Authentication Required" dialog is not shown.

What is the expected output?
expected: "Authentication Required" dialog is shown.


This issue is originally reported in https://stackoverflow.com/questions/37934972/serviceworker-conflict-with-http-basic-auth
 
index.html
402 bytes View Download
sw.js
100 bytes View Download
401.php
266 bytes View Download

Comment 1 by horo@chromium.org, Jun 27 2016

I think we have to implement authentication related methods of URLRequestJob in ServiceWorkerURLRequestJob.
(NeedsAuth, GetAuthChallengeInfo, SetAuth, CancelAuth, ContinueWithCertificate)

Comment 2 by jcriv...@mtu.edu, Dec 30 2016

I am having the same issue and it is causing us to forgo service workers and continue to use appcache.  Is there an estimate on when this might be fixed?  The last update I see is from June 27th.

Comment 3 by tsteiner@google.com, Aug 17 2017

I have another user reporting issues with this. Do we have an update on this issue?

Comment 4 by falken@chromium.org, Aug 17 2017

It'll be some time still before a fix (probably multiple quarters). We are aggressively moving to a new architecture (issue 715640), which I expect will help with a lot of these issues around network interception, and don't have bandwidth to fix most of these existing bugs in the meantime.

Comment 5 by alf...@54.org, Dec 7 2017

I don't think the expected behaviour of showing an authentication dialog box is ever going to happen because the service worker may run at any time and having a dialog box popping up at an odd time will look like "magic". Discussion:
https://github.com/w3c/ServiceWorker/issues/119

Comment 6 by y...@yoav.ws, Apr 3 2018

Cc: y...@yoav.ws

Sign in to add a comment