chore(frontend): Refactoring
Refactoring zodat de structuur van de authenticatieservice in de client duidelijker is.
This commit is contained in:
parent
a28ec22f29
commit
26d5c09bb4
19 changed files with 215 additions and 183 deletions
|
@ -1,14 +1,5 @@
|
|||
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"
|
||||
}
|
||||
};
|
||||
export const apiConfig = {
|
||||
baseUrl: window.location.hostname == "localhost" ? "http://localhost:3000" : window.location.origin
|
||||
}
|
||||
|
||||
export const loginRoute = "/login";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue