From f515323e73f540c1a6d0bda7f147b1a501a09d73 Mon Sep 17 00:00:00 2001 From: Daniel Hatton Date: Mon, 11 Aug 2025 15:49:53 +0100 Subject: [PATCH] fix auth url post refactor --- src/murfey/server/api/auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/murfey/server/api/auth.py b/src/murfey/server/api/auth.py index d790f457d..add0f8342 100644 --- a/src/murfey/server/api/auth.py +++ b/src/murfey/server/api/auth.py @@ -42,11 +42,11 @@ ALGORITHM = security_config.auth_algorithm or "HS256" SECRET_KEY = security_config.auth_key or secrets.token_hex(32) if security_config.auth_type == "password": - oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token") + oauth2_scheme = OAuth2PasswordBearer(tokenUrl="auth/token") else: oauth2_scheme = APIKeyCookie(name=security_config.cookie_key) if security_config.instrument_auth_type == "token": - instrument_oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token") + instrument_oauth2_scheme = OAuth2PasswordBearer(tokenUrl="auth/token") else: instrument_oauth2_scheme = lambda *args, **kwargs: None pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")