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

fix(auth): fix anonymous auth for ui #1662

Merged
merged 1 commit into from
Jul 29, 2023
Merged

Commits on Jul 29, 2023

  1. fix(auth): fix anonymous auth for ui

    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 <[email protected]>
    andaaron committed Jul 29, 2023
    Configuration menu
    Copy the full SHA
    bc7fdd5 View commit details
    Browse the repository at this point in the history