Skip to content

Commit

Permalink
Add a check for anonymous requests
Browse files Browse the repository at this point in the history
closes #1605

(cherry picked from commit b4c550e)
  • Loading branch information
lubosmj authored and mdellweg committed Dec 4, 2024
1 parent 940c317 commit 5bbd9de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pulp_container/app/token_verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ def authenticate(self, request):
If basic authentication could not success, remote webserver authentication is considered.
"""
if request.headers.get("Authorization") == "Basic Og==":
return (AnonymousUser, None)

try:
user = super().authenticate(request)
except AuthenticationFailed:
Expand Down

0 comments on commit 5bbd9de

Please sign in to comment.