add Test Identity Controller and also MCP Controller ...

This commit is contained in:
2026-11-06 19:13:24 +03:30
parent 2c9b10f643
commit b26da81560
2 changed files with 34 additions and 5 deletions
+9 -5
View File
@@ -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(
+25
View File
@@ -0,0 +1,25 @@
using xCommons.Providers;
using xCommons.Configurations;
using xIdentityHelper.Controllers;
using xIdentityService.Interfaces;
using Microsoft.Extensions.Logging;
namespace xAiMcpServer.Controllers
{
/// <summary>
/// Test all Authentication Policies ...
/// </summary>
public class TestIdentity : XTestIdentityControllerBase {
public TestIdentity (
ILogger<TestIdentity> logger,
XAppConfiguration appConfiguration,
IXIdentityProvider identityProvider,
XValidationProvider validationProvider
) : base (
logger,
appConfiguration,
identityProvider,
validationProvider
) { }
}
}