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

Add http basic auth #341

Closed
maffinca69 opened this issue Apr 22, 2022 · 3 comments
Closed

Add http basic auth #341

maffinca69 opened this issue Apr 22, 2022 · 3 comments

Comments

@maffinca69
Copy link

There are images that are not accessible from the outside and can be accessed either from a specific network or under authorization. For example, https://user:password@google.com/example.png
Now in response to such a request we get an error:

{
  "status": "error",
  "code": 400,
  "message": "Unable to parse URI"
}

Will basic auth support be added in the future? Parse login and password and put them in headers

@maffinca69 maffinca69 changed the title Added http basic auth Add http basic auth Apr 22, 2022
@giautm
Copy link
Contributor

giautm commented Apr 23, 2022

You should sent the request with headers, it should be passed to the upstream.

@maffinca69
Copy link
Author

maffinca69 commented Apr 23, 2022

@giautm Where exactly should this be added (what config file)?
If I pass the headers in my request, it doesn't work either and the error remains the same

@andrieslouw
Copy link
Member

Is there anyone still using HTTP basic auth?
You could use something like proxy_set_header Authorization "Basic base64encodeduserpass";, but make sure to check the manuals and code-examples on this. It's not something we'd support in our public proxy.

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

No branches or pull requests

3 participants