Remove role management from AuthHex; update documentation and user handling to reflect ERP ownership of roles.
CI/CD - erp auth / Build & Deploy (pull_request) Failing after 15m9s
CI/CD - erp auth / Build & Deploy (pull_request) Failing after 15m9s
This commit is contained in:
@@ -10,12 +10,11 @@ namespace AuthHex.Controllers
|
||||
[ApiController]
|
||||
[Route("api")]
|
||||
[EnableCors("AllowAll")]
|
||||
public class APIController(UserManager userManager, RecoveryManager recoveryManager, AltOptionManager altOptionManager, RoleManager roleManager) : ControllerBase
|
||||
public class APIController(UserManager userManager, RecoveryManager recoveryManager, AltOptionManager altOptionManager) : ControllerBase
|
||||
{
|
||||
private readonly UserManager _userManager = userManager;
|
||||
private readonly RecoveryManager _recoveryManager = recoveryManager;
|
||||
private readonly AltOptionManager _altOptionManager = altOptionManager;
|
||||
private readonly RoleManager _roleManager = roleManager;
|
||||
|
||||
[HttpGet("status")]
|
||||
[AllowAnonymous]
|
||||
@@ -76,13 +75,5 @@ namespace AuthHex.Controllers
|
||||
return StatusCode(response.StatusCode, response);
|
||||
}
|
||||
|
||||
[HttpPost("role")]
|
||||
[AllowAnonymous]
|
||||
public async Task<IActionResult> RoleExecute([FromBody] ApiRequest request)
|
||||
{
|
||||
var response = await _roleManager.Execute(request, HttpContext);
|
||||
return StatusCode(response.StatusCode, response);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user