This commit is contained in:
2026-10-07 19:38:19 +03:30
parent cd2b06b913
commit e1e151a834
5 changed files with 79 additions and 0 deletions
@@ -156,6 +156,19 @@ namespace xIds.Controllers
//
return Ok(result);
}
[RequireXPowered]
[HttpGet("Test/HiApiKeyAccess")]
[Authorize(LocalApi.PolicyName)]
[Authorize(Policy = XPolicies.ApiKeyAccess)]
public ActionResult<string> HiApiKeyAccess()
{
//
var result = $"Hi ApiKey Access, is Passed ...";
//
return Ok(result);
}
#endregion
}
}
@@ -0,0 +1,9 @@
namespace xIds.Controllers
{
public partial class ApplicationsController
{
//
#region ApiKey ...
#endregion
}
}
@@ -0,0 +1,9 @@
namespace xIds.Controllers
{
public partial class ApplicationsController
{
//
#region ApiKeyUsage ...
#endregion
}
}
@@ -0,0 +1,19 @@
using xIdentityModels.Dtos;
namespace xIds.Controllers
{
public partial class ApplicationsController
{
//
#region Application ...
[HttpPost]
[RequireXPowered]
[Authorize(LocalApi.PolicyName)]
[Authorize(Policy = XPolicies.EnabledUser)]
public async Task<ActionResult<XApplicationDto>> CreateApplication(
[FromBody] XApplicationDto request,
CancellationToken cancellationToken = default
) {}
#endregion
}
}
+29
View File
@@ -0,0 +1,29 @@
using xIds.Interfaces;
using xCommons.Providers;
using xIds.Controllers.Base;
using xCommons.Configurations;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
namespace xIds.Controllers
{
/// <summary>
/// Provide all available tools for manipulating users and accounts
/// </summary>
[ApiController]
public partial class ApplicationsController : XIBaseController
{
public ApplicationsController(
ILogger<ApplicationsController> logger,
XAppConfiguration appConfiguration,
IXIdentityManager identityManager,
XValidationProvider validationProvider
) : base(
logger,
appConfiguration,
identityManager,
validationProvider
)
{ }
}
}