Skip to content

Commit

Permalink
proof of concept CAS login in dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
robinpdev committed Mar 14, 2024
1 parent 7a065f2 commit 8708c4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/app/components/CASButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/auth/auth-agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down

0 comments on commit 8708c4f

Please sign in to comment.