forked from admin/miem_workers
feat: requires OAuth-only auth mode for MCP agents
This commit is contained in:
1 parent
ad0b15cc6e
commit
d20b4f396b
6 files changed
+31
-17
No files matched your search
+2
-2
@@ -79,11 +79,11 @@ def mcp_protected_resource_metadata(settings: Settings) -> dict:
|
||||
|
||||
|
||||
def _mcp_static_token_allowed(settings: Settings) -> bool:
|
||||
return settings.mcp_auth_mode in {"token", "oauth_or_token"}
|
||||
return settings.mcp_auth_mode == "token"
|
||||
|
||||
|
||||
def _mcp_oauth_allowed(settings: Settings) -> bool:
|
||||
return settings.mcp_auth_mode in {"oauth", "oauth_or_token"}
|
||||
return settings.mcp_auth_mode == "oauth"
|
||||
|
||||
|
||||
def _validate_mcp_oauth_token(token: str, settings: Settings) -> None:
|
||||
|
||||
Reference in new issue
Block a user