Skip to content

Commit

Permalink
Merge branch 'dev' into feat/scholar-sync
Browse files Browse the repository at this point in the history
  • Loading branch information
doxylee committed Nov 13, 2024
2 parents ca6763f + d1fc362 commit 11d8eaa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/modules/auth/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/modules/auth/command/jwt.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class JwtCommand implements AuthCommand {
}
return prevResult;
} catch (e) {
console.error(e);
// console.error(e);
return prevResult;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/modules/auth/utils/sparcs-sso.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 11d8eaa

Please sign in to comment.