fix open redirect, error leaking, unused imports, state validation

This commit is contained in:
CREDO23 2026-04-22 08:42:38 +02:00
parent e676ebfabe
commit 940889c291
6 changed files with 13 additions and 24 deletions

View file

@ -1,7 +1,5 @@
"""Shared auth helper for Discord agent tools (REST API, not gateway bot)."""
import logging
from sqlalchemy.ext.asyncio import AsyncSession
from sqlalchemy.future import select
@ -9,8 +7,6 @@ from app.config import config
from app.db import SearchSourceConnector, SearchSourceConnectorType
from app.utils.oauth_security import TokenEncryption
logger = logging.getLogger(__name__)
DISCORD_API = "https://discord.com/api/v10"

View file

@ -1,14 +1,10 @@
"""Shared auth helper for Luma agent tools."""
import logging
from sqlalchemy.ext.asyncio import AsyncSession
from sqlalchemy.future import select
from app.db import SearchSourceConnector, SearchSourceConnectorType
logger = logging.getLogger(__name__)
LUMA_API = "https://public-api.luma.com/v1"

View file

@ -1,15 +1,9 @@
"""Shared auth helper for Teams agent tools (Microsoft Graph REST API)."""
import logging
from sqlalchemy.ext.asyncio import AsyncSession
from sqlalchemy.future import select
from app.config import config
from app.db import SearchSourceConnector, SearchSourceConnectorType
from app.utils.oauth_security import TokenEncryption
logger = logging.getLogger(__name__)
GRAPH_API = "https://graph.microsoft.com/v1.0"