bent icon indicating copy to clipboard operation
bent copied to clipboard

Auth Basic Credentials

Open engelant opened this issue 5 years ago • 0 comments

I had some trouble authethicating to my server via Auth Basic, when the password (maybe also true for username) contains special Characters. What I found was #64, leading me to put together my URL is the username:password@url scheme, but as soon as I use a password like Abcd1234`?# I will get a ERR_INVALID_URL error. The resulting URL won't work in a browser aswell. Makes perfect sense, so encodeURIComponent("Abcd1234`?#") to the rescue, but while this generated URL works with a browser, bent will recieve a 401. Is it possible it double URIencodes my password, after checking the URl for validity?

engelant avatar Jul 11 '20 18:07 engelant