feat(frontend): Added functionality to the frontend to log in.
This commit is contained in:
parent
4a1edbb6ff
commit
a28ec22f29
20 changed files with 395 additions and 33 deletions
14
frontend/src/config.ts
Normal file
14
frontend/src/config.ts
Normal 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"
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue