fix auth: don't raise Unauthorized

This commit is contained in:
Helmut Merz 2024-11-22 11:34:30 +01:00
parent eaa2055c76
commit 1eff3d2c8b

View file

@ -20,8 +20,6 @@ class JwtAuthentication:
prc = authenticate(request) prc = authenticate(request)
if prc is None and self.baseAuth is not None: if prc is None and self.baseAuth is not None:
prc = self.baseAuth.authenticate(request) prc = self.baseAuth.authenticate(request)
if prc is None:
raise Unauthorized
return prc return prc
def getPrincipal(self, id): def getPrincipal(self, id):