diff --git a/src/modules/auth/auth.controller.ts b/src/modules/auth/auth.controller.ts index 624f395..cdfb4fa 100644 --- a/src/modules/auth/auth.controller.ts +++ b/src/modules/auth/auth.controller.ts @@ -40,7 +40,7 @@ export class AuthController { return res.redirect(next ?? '/'); } req.session['next'] = next ?? '/'; - const request_url = req.get('host') ?? 'localhost:8000'; + const request_url = req.get('host') ?? 'otl.kaist.ac.kr'; console.log(request_url); const { url, state } = this.ssoClient.get_login_params(request_url); req.session['sso_state'] = state; diff --git a/src/modules/auth/command/jwt.command.ts b/src/modules/auth/command/jwt.command.ts index 505df3b..3e8bd31 100644 --- a/src/modules/auth/command/jwt.command.ts +++ b/src/modules/auth/command/jwt.command.ts @@ -75,7 +75,7 @@ export class JwtCommand implements AuthCommand { } return prevResult; } catch (e) { - console.error(e); + // console.error(e); return prevResult; } } diff --git a/src/modules/auth/utils/sparcs-sso.ts b/src/modules/auth/utils/sparcs-sso.ts index 2ebe365..ce2019e 100644 --- a/src/modules/auth/utils/sparcs-sso.ts +++ b/src/modules/auth/utils/sparcs-sso.ts @@ -142,7 +142,7 @@ export class Client { }; const preferred_url = allowedPreferredUris[request_url] || - 'http:localhost:8000/session/login/callback/'; + 'https://otl.sparcs.org/session/login/callback/'; const params: Params = { client_id: this.client_id, state: state,