360320_01_ENH: 접근 권한 가독성 증가 및 트수 문자열 시작 허용 추가

This commit is contained in:
2026-03-20 09:24:47 +09:00
parent bef691913b
commit 0aa5be19ef

View File

@@ -12,6 +12,7 @@ namespace REPORT_API_ver6.Controllers
[ApiController] [ApiController]
public class SecurityAPI : ControllerBase public class SecurityAPI : ControllerBase
{ {
private static readonly List<string> externalList = new() {"KON", "KIWI", "CLIENT"};
[Route("pkey")] [Route("pkey")]
[HttpGet] [HttpGet]
@@ -127,7 +128,7 @@ namespace REPORT_API_ver6.Controllers
HttpContextAccessor hcAccessor = new HttpContextAccessor(); HttpContextAccessor hcAccessor = new HttpContextAccessor();
hcAccessor.HttpContext.Response.ContentType = "text/plain"; hcAccessor.HttpContext.Response.ContentType = "text/plain";
if (externalParam.External == "KON" || externalParam.External == "KIWI" || externalParam.External == "CLIENT") if (externalParam.External.StartsWith("KRIC_SYS_") || externalList.Contains(externalParam.External))
{ {
string returnString = ""; string returnString = "";
Log.insertLoginLog(externalParam.External); Log.insertLoginLog(externalParam.External);