nacos/auth
hongye 006ffca559
fix(auth): add AI gRPC resource parser and enable auth for MCP/Agent requests (#13827)
Resolves #13824

This commit adds support for authentication of AI-related gRPC requests
(AbstractMcpRequest and AbstractAgentRequest) in the Nacos auth module.

Key changes:
- Implement AiGrpcResourceParser to extract namespace, group and resource name
  from AI protocol requests.
- Register AiGrpcResourceParser under SignType.AI in GrpcProtocolAuthService.
- Add comprehensive unit tests using parameterized testing to cover both
  MCP and Agent request types, including edge cases (null/empty fields).
- Fix missing security token refresh in AiGrpcClient by initializing
  SecurityProxy with scheduled login task.

Ensures that all incoming AI gRPC requests are properly authenticated
when security is enabled, closing a previous authorization gap.
2025-09-18 10:14:34 +08:00
..
src fix(auth): add AI gRPC resource parser and enable auth for MCP/Agent requests (#13827) 2025-09-18 10:14:34 +08:00
pom.xml [ISSUE #12016] upgrade to junit5 and remove junit4 (#12280) 2024-06-26 17:39:08 +08:00