From 9c7d55f855894e0366742f7ca6ded970b6c3538c Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 27 Aug 2025 18:58:24 +0800 Subject: [PATCH] bugfix --- rbac/check_perm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rbac/check_perm.py b/rbac/check_perm.py index 7c784c7..10e82ed 100644 --- a/rbac/check_perm.py +++ b/rbac/check_perm.py @@ -120,10 +120,12 @@ async def basic_auth(sor, request): async def getAuthenticationUserid(sor, request): auth = request.headers.get('Authorization') if auth is None: + debug(f'{request.headers=}, not Authorization') return None for h,f in registered_auth_methods.items(): if auth.startswith(h): return await f(sor, request) + debug(f'{auth=}, {registered_auth_methods=} no match') return None async def objcheckperm(obj, request, userid, path):