mirror of
https://github.com/hoshikawa2/agent_platform_oci.git
synced 2026-09-07 10:13:46 +00:00
Authorization Feature
This commit is contained in:
BIN
apps/mcp_gateway/app/__pycache__/__init__.cpython-313.pyc
Normal file
BIN
apps/mcp_gateway/app/__pycache__/__init__.cpython-313.pyc
Normal file
Binary file not shown.
BIN
apps/mcp_gateway/app/__pycache__/main.cpython-313.pyc
Normal file
BIN
apps/mcp_gateway/app/__pycache__/main.cpython-313.pyc
Normal file
Binary file not shown.
@@ -11,6 +11,7 @@ from typing import Any
|
||||
import httpx
|
||||
import yaml
|
||||
from fastapi import FastAPI, Header, HTTPException
|
||||
from agent_framework.security import install_authentication
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
@@ -64,6 +65,7 @@ discovered_tools: dict[str, dict[str, Any]] = {}
|
||||
discovery_state: dict[str, Any] = {"last_sync": None, "errors": [], "tools": []}
|
||||
cache: dict[str, tuple[float, Any]] = {}
|
||||
app = FastAPI(title="Agent Platform OCI - MCP Gateway", version="1.1.0")
|
||||
install_authentication(app, prefix="MCP_GATEWAY_AUTH")
|
||||
|
||||
|
||||
def audit(name: str, payload: dict[str, Any]) -> None:
|
||||
|
||||
Reference in New Issue
Block a user