Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth Basic Credentials #113

Open
engelant opened this issue Jul 11, 2020 · 0 comments
Open

Auth Basic Credentials #113

engelant opened this issue Jul 11, 2020 · 0 comments

Comments

@engelant
Copy link

engelant commented Jul 11, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant