fix: legg til X-MCP-Secret i osvauco_agent_headers

This commit is contained in:
Chris Christiansen 2026-07-02 20:02:20 +00:00
parent 0a1e3ce8ea
commit e04a95b952

View File

@ -116,7 +116,7 @@ def _osvauco_agent_identity_token() -> str:
raise
def _osvauco_agent_headers() -> dict:
return {"Authorization": f"Bearer {_osvauco_agent_identity_token()}", "Content-Type": "application/json"}
return {"Authorization": f"Bearer {_osvauco_agent_identity_token()}", "X-MCP-Secret": os.environ.get("MCP_SECRET", ""), "Content-Type": "application/json"}
async def _osvauco_agent_post(path: str, body: dict) -> Any:
"""Kaller osvauco-agent direkte med service-to-service auth."""