From 999fafac713911e52dfc3bc311ea47be454e1311 Mon Sep 17 00:00:00 2001 From: Untone Date: Fri, 22 Dec 2023 12:34:47 +0300 Subject: [PATCH] tolerate-auth --- CHANGELOG.txt | 7 +++++++ services/auth.py | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index c083d70..aa0e922 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,3 +1,10 @@ +[0.1.0] +- resolvers: schema refactored to model, seen, load +- services: core queries fixed +- services: auth middleware +- services: redis pattern subscribe method +- orm: timestamp default fix + [0.0.3] - httpx -> aiohttp - sentry integrations added diff --git a/services/auth.py b/services/auth.py index ad253cb..2a4fde8 100644 --- a/services/auth.py +++ b/services/auth.py @@ -51,8 +51,7 @@ async def check_auth(req) -> str | None: # Handling and logging exceptions during authentication check print(f"[services.auth] {e}") - if not user_id: - raise HTTPException(status_code=401, detail="Unathorized") + return None class LoginRequiredMiddleware(Extension):