From 748aa3e3b89650f6e0f992c85fb79d3264189f2d Mon Sep 17 00:00:00 2001 From: SEAN Date: Sat, 28 Feb 2026 18:34:40 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20JWT=20=ED=86=A0=ED=81=B0=EC=97=90=20admi?= =?UTF-8?q?nId=20=ED=81=B4=EB=A0=88=EC=9E=84=20=EC=B6=94=EA=B0=80=20(#260)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - GenerateAccessToken에서 adminId 클레임을 별도로 추가 - 컨트롤러에서 User.FindFirst("adminId")로 조회 가능하도록 수정 Closes #260 --- SPMS.Infrastructure/Auth/JwtService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SPMS.Infrastructure/Auth/JwtService.cs b/SPMS.Infrastructure/Auth/JwtService.cs index 4c66531..453f1ed 100644 --- a/SPMS.Infrastructure/Auth/JwtService.cs +++ b/SPMS.Infrastructure/Auth/JwtService.cs @@ -27,7 +27,8 @@ public class JwtService : IJwtService { new(JwtRegisteredClaimNames.Sub, adminId.ToString()), new(JwtRegisteredClaimNames.Jti, Guid.NewGuid().ToString("N")), - new(ClaimTypes.Role, role) + new(ClaimTypes.Role, role), + new("adminId", adminId.ToString()) }; if (!string.IsNullOrEmpty(serviceCode)) -- 2.45.1