Andrei Aaron cb1b7ae9b8 fix(auth): fix anonymous auth for ui (#1662)
The ui sends the header X-ZOT-API-CLIENT=zot-ui regardless of session authentication status.
In case of new sessions zot would reject the unauthenticated call on /v2 (which is used to determine
if anonymous access is allowed by the server when the header was set) expecting all users sending
this header to be already authenticated.

Since the ui received 401 from the server, it would not show the option for anonymous login.

Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
2023-07-29 09:18:33 -07:00
2022-08-30 21:39:16 +03:00
2023-07-10 14:03:59 +03:00
2022-05-04 11:52:28 -07:00
2023-07-25 08:14:37 +03:00
2022-12-21 10:46:31 +02:00
2023-06-01 16:53:50 -07:00
2019-06-21 15:29:19 -07:00

zot build-test codecov.io Conformance Results CodeQL CII Best Practices Go Reference

zot: a production-ready vendor-neutral OCI image registry - images stored in OCI image format, distribution specification on-the-wire, that's it!

Docs

Documentation for zot is located at: https://zotregistry.io

Code of Conduct

Details are in the code of conduct

Languages
Go 93.6%
Shell 5.8%
Makefile 0.4%