feat(frontend): Added functionality to the frontend to log in.

This commit is contained in:
Gerald Schmittinger 2025-03-02 16:33:50 +01:00
parent 4a1edbb6ff
commit a28ec22f29
20 changed files with 395 additions and 33 deletions

14
frontend/src/config.ts Normal file
View file

@ -0,0 +1,14 @@
export const authConfig = {
student: {
authority: import.meta.env.VITE_STUDENT_AUTH_AUTHORITY || "https://auth.sel2-1.ugent.be/realms/student",
clientId: import.meta.env.VITE_STUDENT_AUTH_CLIENT_ID || "dwengo",
redirectUri: window.location.origin + "/callback",
scope: import.meta.env.VITE_STUDENT_AUTH_SCOPE || "openid profile email"
},
teacher: {
authority: import.meta.env.VITE_TEACHER_AUTH_AUTHORITY || "https://auth.sel2-1.ugent.be/realms/teacher",
clientId: import.meta.env.VITE_TEACHER_AUTH_CLIENT_ID || "dwengo",
redirectUri: window.location.origin + "/callback",
scope: import.meta.env.VITE_TEACHER_AUTH_SCOPE || "openid profile email"
}
};