last ...
This commit is contained in:
@@ -156,6 +156,19 @@ namespace xIds.Controllers
|
|||||||
//
|
//
|
||||||
return Ok(result);
|
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
|
#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
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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
|
||||||
|
)
|
||||||
|
{ }
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user