Basic Auth autofill fails when username has backslash

Hello - wondering if anyone else has encountered or identified a workaround.

There is a basic auth form I have successfully used for a long time with auto-fill on page load.

Recently, my IT department added a new requirement that the username also include the domain. When my login was “username1”, it worked fine. Now that my login is “abc\username1”, autofill no longer works on page load. The URI setting was set to “Host” when it was working. It appears the backslash in the username is now causing this to fail, as I did not change any other settings.

Appreciate any guidance if anyone knows how to fix this!

@gtl2024 Welcome to the forum!

If you remove the backslash from the username stored in Bitwarden, does the autofill work properly again?

Also, is the problem only with automatic autofill (i.e., “Autofill on page load”)? If you use the keyboard shortcut Ctrl+Shift+L, does the username autofill correctly (including the backslash)?

Hi grb - thanks!

If I remove the backslash, autofill does indeed work properly again (but this is now the wrong credentials, unfortunately). The keyboard ctrl + shift + L never works on basic auth autofill as documented here: Basic Auth Prompts | Bitwarden Help Center

In that case, I would suggest filing a bug report on GitHub.

In the meantime, perhaps you can insert the backslash manually, after autofilling the backslash-less domain\username concatenation?

Thanks, I’ll do that. Unfortunately, with Basic Auth, it either “works” or “doesn’t” – it won’t populate a bad answer that you can modify. Thanks for the guidance!

The Help documentation page that you linked suggests that you can copy/paste credentials into a Basic Auth prompt. Perhaps it would be worth trying that (with the backslash included in the username).

Yep - that does work - just hoping to make autofill work since I use this login FREQUENTLY! Thank you!

1 Like

Sorry I couldn’t help more. Did you report it on Github? It seems like it is a bug that should be possible to fix.