Allow remove logged status for basic authentication site in Page Info
Categories
(Firefox :: Page Info Window, enhancement, P5)
Tracking
()
People
(Reporter: u20230201, Unassigned)
References
(Depends on 1 open bug)
Details
Attachments
(3 files)
Reporter | ||
Updated•9 years ago
|
Reporter | ||
Comment 2•9 years ago
|
||
Comment 3•7 years ago
|
||
Updated•2 years ago
|
Comment 5•2 years ago
|
||
Hi there, I ran into this recently, so thought I'd provide some details.
Reproduction steps are straightforward if you can get your hands on a service using HTTP basic auth (from RFC 7617):
- make a request to a protected page. The server will respond with a 401 and a
WWW-Authenticate
header. This triggers the opening of the browser's native login prompt - provide a valid username and password. These will be encoded to base64 and sent on all following request as the content of the
Authorization
header - the
Authorization
is obviously persisted by the browser, but it is not in cookies (or in any other site storage that I could find). This makes it difficult for developers or users to log out (see this StackOverflow question, 335 upvotes at time of writing)
So to try and move this forward, let me attempt to answer some open questions above (I'm aware they are 4+ years old, apologies for this).
(In reply to Jeff Griffiths (:canuckistani) (:⚡︎) from comment #3)
I think you can use devtools to delete the http auth session cookie, but I
agree that's a little hard to find.
Not that I can see (I'm on Firefox 106). Or am I looking in the wrong place? I would expect this in the Storage
tab, and it's definitely not there.
(In reply to Justin from comment #4)
it looks like the nightly build already
has a clear cookies button. Is there anything else that needs to be done in
this case?
Yes, something else needs to be done, because clearing cookies (tried via the browser setting and via the new Clear-Site-Data
HTTP header doesn't seem to clear these stored authorization entries.
Comment 6•2 years ago
|
||
Basic auth flow on Firefox 106. When a server returns 401 with the WWW-Authenticate
header, the browser opens the built-in login prompt.
Comment 7•2 years ago
|
||
Basic auth flow on Firefox 106. After valid credentials have been provided by the user, the browser sends them as base64 on all subsequent requests (as the content of the Authorization
header)
Comment 8•2 years ago
|
||
The authorization entry is persisted by the browser (since it's passed as a header on all requests), but it can't be seen/cleared in the Firefox devtools' Storage
tab.
Comment 9•2 years ago
|
||
Ah—I finally understood that authorization entries ("Active Logins" in Firefox) are considered part of History (not storage) and can therefore be manually cleared by going to Firefox top-right hamburger menu -> History -> Clear recent history
and choosing to clear active logins.
In my opinion, it would still make a lot of sense to allow developers to manually clear these in Devtools -> Storage
, but this might not be possible because of the reasons outlined in Bug 1726743 (the AuthTokensCleaner
and AuthCacheCleaner
cannot clear authorization entries by domain).
Description
•