fix: legg til X-MCP-Secret i osvauco_agent_headers
This commit is contained in:
parent
0a1e3ce8ea
commit
e04a95b952
|
|
@ -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."""
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user