summaryrefslogtreecommitdiff
path: root/lib/users
diff options
context:
space:
mode:
Diffstat (limited to 'lib/users')
-rw-r--r--lib/users/auth/verifyCredentails.ts14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/users/auth/verifyCredentails.ts b/lib/users/auth/verifyCredentails.ts
index a0772343..5764db77 100644
--- a/lib/users/auth/verifyCredentails.ts
+++ b/lib/users/auth/verifyCredentails.ts
@@ -496,12 +496,14 @@ export async function verifySGipsCredentials(
// password를 RSA로 암호화
const encryptedPassword = encryptPasswordWithRSA(password);
- // URL에 query parameter 추가
- const params = new URLSearchParams({
- username,
- password: encryptedPassword,
- });
- const requestUrl = `${sgipsUrl}?${params}`;
+ // URL에 query parameter 추가 (urlSearchParams 사용하는 경우 URL Safe하게 인코딩하기 때문에 fail 발생함)
+ const params = {
+ Id: username,
+ Passwd: encryptedPassword,
+ };
+
+ const requestUrl = `${sgipsUrl}?Id=${params.Id}&Passwd=${params.Passwd}`;
+
// 1. S-Gips API 호출로 인증 확인
console.log('S-Gips API 요청:', {