Skip to content

Auth Basic Credentials #113

@engelant

Description

@engelant

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions