cleanup: Remove debug logging and test endpoint
All checks were successful
Deploy Development / deploy (push) Successful in 1m2s
Build Test / pytest-backend (push) Successful in 8s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 16s

This commit is contained in:
Lars 2026-04-18 08:04:00 +02:00
parent d66e68a5df
commit 73104a1a4c
2 changed files with 0 additions and 11 deletions

View File

@ -93,13 +93,7 @@ def require_auth_flexible(x_auth_token: Optional[str] = Header(default=None), ss
Raises:
HTTPException 401 if not authenticated
"""
import logging
logger = logging.getLogger("uvicorn.error")
logger.info(f"[AUTH_FLEX] header={x_auth_token!r}, query={ssetoken!r}")
session = get_session(x_auth_token or ssetoken)
logger.info(f"[AUTH_FLEX] session={session!r}")
if not session:
raise HTTPException(401, "Nicht eingeloggt")
return session

View File

@ -32,11 +32,6 @@ OPENROUTER_MODEL = os.getenv("OPENROUTER_MODEL", "anthropic/claude-sonnet-4")
router = APIRouter(prefix="/api/prompts", tags=["prompts"])
@router.get("/test-ssetoken")
def test_ssetoken_auth(session: dict = Depends(require_auth_flexible)):
"""Test endpoint for SSE token auth debugging"""
return {"status": "ok", "profile_id": session['profile_id']}
# Metadaten-Schlüssel in workflow aggregate_results (nicht als „einziger“ Nutzer-Output)
_WORKFLOW_AGG_META_KEYS = frozenset({
"combined_analysis",