refactor: 별도의 /ssologin 경로 대신 기존 /signin 경로를 사용하도록 수정 #243
This commit is contained in:
1 parent
9d7c28b1c1
commit
2c6322db60
2 files changed
+1
-8
No files matched your search
@@ -32,7 +32,7 @@ function LoginPage() {
|
||||
const handleSSOLogin = (mode: "popup" | "redirect" = "popup") => {
|
||||
const userfrontUrl = import.meta.env.USERFRONT_URL || "https://sso.hmac.kr";
|
||||
const callbackUrl = `${window.location.origin}/auth/callback`;
|
||||
const loginUrl = `${userfrontUrl}/ssologin?source=adminfront&redirect_uri=${encodeURIComponent(callbackUrl)}`;
|
||||
const loginUrl = `${userfrontUrl}/signin?source=adminfront&redirect_uri=${encodeURIComponent(callbackUrl)}`;
|
||||
|
||||
if (mode === "redirect") {
|
||||
window.location.href = loginUrl;
|
||||
|
||||
Reference in new issue
Block a user