BARON-SSO 로그인 스테이징>실서버 교체 클라이언트ID 변경에 따른 수정
All checks were successful
ITAM Code Check / build-and-config-check (push) Successful in 12s
ITAM Docker Build Check / docker-build-check (push) Successful in 15s

This commit is contained in:
2026-07-01 13:41:05 +09:00
parent 6fea80b483
commit 75b6ac4784
3 changed files with 29 additions and 14 deletions

View File

@@ -257,6 +257,11 @@ const beginAuthorizationFlow = async () => {
const authRedirectUrl = new URL(location, authUrl.toString());
const loginChallenge = authRedirectUrl.searchParams.get('login_challenge');
if (!loginChallenge) {
const authError = authRedirectUrl.searchParams.get('error');
const authErrorDescription = authRedirectUrl.searchParams.get('error_description');
if (authError || authErrorDescription) {
throw new Error(authErrorDescription || authError || 'Authorization redirect did not provide login_challenge');
}
throw new Error('login_challenge not found');
}