feat: OIDC 로그인 연동 및 DB 스키마 업데이트

This commit is contained in:
2026-02-02 09:50:25 +09:00
parent 21b6332c9c
commit a976b8a0c6
30 changed files with 2029 additions and 5 deletions

View File

@@ -34,3 +34,30 @@ if (form) {
}
})
}
// OIDC 로그인 처리
const btnOidc = document.getElementById('btn_oidc_login')
if (btnOidc) {
btnOidc.addEventListener('click', () => {
const width = 500;
const height = 600;
const left = (window.screen.width / 2) - (width / 2);
const top = (window.screen.height / 2) - (height / 2);
window.open(
'/kngil/auth/oidc-login.php',
'oidc_login_popup',
`width=${width},height=${height},left=${left},top=${top},scrollbars=yes`
);
});
}
// 팝업으로부터의 메시지 수신 (로그인 성공 시 새로고침)
window.addEventListener('message', (event) => {
// 보안을 위해 실제 서비스에서는 event.origin을 체크하는 것이 좋습니다.
// if (event.origin !== location.origin) return;
if (event.data && event.data.type === 'OIDC_LOGIN_SUCCESS') {
location.reload();
}
});