diff --git a/frontend/src/app/components/CASButton.tsx b/frontend/src/app/components/CASButton.tsx index 6af7e5c7..079ae9e8 100644 --- a/frontend/src/app/components/CASButton.tsx +++ b/frontend/src/app/components/CASButton.tsx @@ -7,6 +7,7 @@ const CASButton = () => { const handleCASLogin = (): void => { // Implement CAS login logic here console.log('Login with CAS'); + window.location.href = "http://localhost:8000/microsoft/to-auth-redirect?next=/redirect/homepage" }; return ( diff --git a/frontend/src/auth/auth-agent.js b/frontend/src/auth/auth-agent.js index 279b33a2..a9c0a2e5 100644 --- a/frontend/src/auth/auth-agent.js +++ b/frontend/src/auth/auth-agent.js @@ -4,7 +4,7 @@ class AuthAgent { login(username, password) { return axios - .post("http://127.0.0.1:8000/auth/login/", { + .post("http://localhost:8000/auth/login/", { username, password })