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

reduce http api calls when using Basic Auth? #117

Closed
cr1st1p opened this issue Jan 19, 2020 · 2 comments
Closed

reduce http api calls when using Basic Auth? #117

cr1st1p opened this issue Jan 19, 2020 · 2 comments

Comments

@cr1st1p
Copy link

cr1st1p commented Jan 19, 2020

Is your feature request related to a problem? Please describe.
If the repository is protected by Basic Http authorization, the number of calls being done by the browser is double. I.e. it does a normal unauthenticated call. just to get the authorization error and then it does the authorized call. And this happen for each and every one of the api calls.

Is it possible for the code to check if the repo looks to be protected, to always force authorization headers?

Describe the solution you'd like
After discovering that the repository is protected by a Basic Auth scheme, code should try to always add the auth headers and not wait for the browser to ask for them (or whatever implementation is).
It would reduce the number of api calls by 2.

@Joxit
Copy link
Owner

Joxit commented Jan 24, 2020

Hi,

Thank you for your feature request 👍 I think this feature will not be available on DELETE queries 🤔.

@Joxit
Copy link
Owner

Joxit commented Apr 5, 2024

Done with REGISTRY_SECURED

@Joxit Joxit closed this as completed Apr 5, 2024
@github-project-automation github-project-automation bot moved this from To do to Done in docker-registry-ui Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants