Bug-Fixing Analyse Fehler #87
|
|
@ -93,13 +93,7 @@ def require_auth_flexible(x_auth_token: Optional[str] = Header(default=None), ss
|
||||||
Raises:
|
Raises:
|
||||||
HTTPException 401 if not authenticated
|
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)
|
session = get_session(x_auth_token or ssetoken)
|
||||||
logger.info(f"[AUTH_FLEX] session={session!r}")
|
|
||||||
|
|
||||||
if not session:
|
if not session:
|
||||||
raise HTTPException(401, "Nicht eingeloggt")
|
raise HTTPException(401, "Nicht eingeloggt")
|
||||||
return session
|
return session
|
||||||
|
|
|
||||||
|
|
@ -32,11 +32,6 @@ OPENROUTER_MODEL = os.getenv("OPENROUTER_MODEL", "anthropic/claude-sonnet-4")
|
||||||
|
|
||||||
router = APIRouter(prefix="/api/prompts", tags=["prompts"])
|
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)
|
# Metadaten-Schlüssel in workflow aggregate_results (nicht als „einziger“ Nutzer-Output)
|
||||||
_WORKFLOW_AGG_META_KEYS = frozenset({
|
_WORKFLOW_AGG_META_KEYS = frozenset({
|
||||||
"combined_analysis",
|
"combined_analysis",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user