diff --git a/Controllers/McpController.cs b/Controllers/McpController.cs index 7e93b35..e461daa 100644 --- a/Controllers/McpController.cs +++ b/Controllers/McpController.cs @@ -1,15 +1,15 @@ +using xIdentityHelper; +using System.Threading; using xCommons.Providers; +using Newtonsoft.Json.Linq; using xAiService.Interfaces; +using System.Threading.Tasks; using xAiService.Controllers; using xCommons.Configurations; +using Microsoft.AspNetCore.Mvc; using xIdentityService.Interfaces; using Microsoft.Extensions.Logging; using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using xIdentityHelper; -using System.Threading.Tasks; -using Newtonsoft.Json.Linq; -using System.Threading; namespace xAiMcpServer.Controllers { @@ -40,6 +40,10 @@ namespace xAiMcpServer.Controllers CancellationToken cancellationToken = default ) { + // + var userInfo = await GetUserInfo(); + var connectionId = GetConnectionId(); + // var result = await base .HandleMcp( diff --git a/Controllers/TestIdentity.cs b/Controllers/TestIdentity.cs new file mode 100644 index 0000000..b97b425 --- /dev/null +++ b/Controllers/TestIdentity.cs @@ -0,0 +1,25 @@ +using xCommons.Providers; +using xCommons.Configurations; +using xIdentityHelper.Controllers; +using xIdentityService.Interfaces; +using Microsoft.Extensions.Logging; + +namespace xAiMcpServer.Controllers +{ + /// + /// Test all Authentication Policies ... + /// + public class TestIdentity : XTestIdentityControllerBase { + public TestIdentity ( + ILogger logger, + XAppConfiguration appConfiguration, + IXIdentityProvider identityProvider, + XValidationProvider validationProvider + ) : base ( + logger, + appConfiguration, + identityProvider, + validationProvider + ) { } + } +} \ No newline at end of file