keepassxc-browser icon indicating copy to clipboard operation
keepassxc-browser copied to clipboard

Cannot save basic auth credentials

Open MetroMarv opened this issue 5 years ago • 10 comments

When accessing a website that requires basic auth, I cannot save the credentials.

Expected Behavior

A pop up shows up to save the basic auth credentials (like it does when submitting HTML form fields).

Current Behavior

Nothing happens and no credentials are saved in the password file.

Steps to Reproduce (for bugs)

  1. Unlock the password file using KeePassXC desktop application
  2. Open the browser (make sure KeePassXC-Browser is connected to desktop application)
  3. Visit a website that requires basic auth (e.g. https://httpbin.org/basic-auth/user/passwd; User: user; Password: passwd)
  4. Enter login data and press "OK"

Debug info

KeePassXC - 2.5.0 KeePassXC-Browser - 1.5.3 Operating system: Linux (Kernel 5.3.7) Browser: Firefox 70.0 / Chromium 78.0.3904.70

MetroMarv avatar Nov 04 '19 08:11 MetroMarv

This feature is very much needed.

quicktrick avatar Apr 23 '21 12:04 quicktrick

Hello everybody, I see that this issue has been open for two years now and it would be nice to understand why: is it an impossible issue to solve? Is it an economic problem that we could somehow help?

Thank you for this great extension.

Rain-ctrl avatar Aug 19 '21 08:08 Rain-ctrl

It's not impossible to do. Just a matter of time and priorities. I agree this has been open way too long.

varjolintu avatar Aug 19 '21 08:08 varjolintu

missing it too as switching from chrome to keepassxc as password auth.

futurewebpn avatar Oct 19 '21 16:10 futurewebpn

Just took another look at this. It seems that it's impossible to retrieve the credentials submitted to HTTP Basic Auth if it was done manually. The callback object doesn't hold that information at all. It might be a security issue. https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/webRequest/onAuthRequired#details

varjolintu avatar Oct 19 '21 17:10 varjolintu

But it's not prefilling it either. Thats the main point in my eyes. This way it's way more complicated to fill in the user/pass, as you have to look it up manually, instead of make it prefill. Just talking about how it's handled within the browser and mentioning the difference I encounter ;)

futurewebpn avatar Oct 20 '21 06:10 futurewebpn

@futurewebpn Hmm? The automatic filling for HTTP Basic Auth credentials should work just fine. The option is not enabled by default in the extension settings.

varjolintu avatar Oct 20 '21 13:10 varjolintu

Didn't work for me on multiple occasions though, in both Firefox and Chrome (option is enabled in both cases). Sometimes it submits the credentials after canceling the auth dialogue once and reloading the page, sometimes it still doesn't.

Tofuraven avatar Nov 04 '21 06:11 Tofuraven

@futurewebpn Hmm? The automatic filling for HTTP Basic Auth credentials should work just fine. The option is not enabled by default in the extension settings.

In my case, I've enabled the option in the chromium extension settings and it asks me for consent, but the Basic Auth form doesn't become filled. Sistematically.

2022-08-30_14:48:15

dharmann avatar Aug 30 '22 12:08 dharmann

@futurewebpn Hmm? The automatic filling for HTTP Basic Auth credentials should work just fine. The option is not enabled by default in the extension settings.

you are right, that is working with me, at least on the page i need it regulary. Thanks for the hint, seems I didn't read careful enough.

futurewebpn avatar Aug 30 '22 12:08 futurewebpn