Skip to content

Commit c5fd331

Browse files
committed
Revert "phenotypes working"
This reverts commit c0db0e7.
1 parent 4e2451a commit c5fd331

File tree

6 files changed

+4
-1415
lines changed

6 files changed

+4
-1415
lines changed

middleware/auth.global.js

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,11 @@ export default defineNuxtRouteMiddleware(async (to) => {
88
return;
99
}
1010
const nuxtApp = useNuxtApp();
11-
if(to.path.startsWith('/login') || to.path.startsWith('/hermes/login') || to.path.startsWith('/sgc/login')){
11+
if(to.path.startsWith('/login') || to.path.startsWith('/hermes/login')){
1212
return;
1313
}
1414
const userStore = useUserStore();
15-
let isLoggedIn = false;
16-
17-
// Check SGC authentication for SGC routes
18-
if (to.path.startsWith('/sgc')) {
19-
isLoggedIn = await userStore.isSGCUserLoggedIn();
20-
21-
if (!isLoggedIn) {
22-
return callWithNuxt(nuxtApp, navigateTo, ['/sgc/login?redirect=' + to.path]);
23-
}
24-
// User is authenticated for SGC, allow access
25-
return;
26-
}
27-
28-
// For non-SGC routes, use existing authentication
29-
isLoggedIn = await userStore.isUserLoggedIn();
30-
15+
const isLoggedIn = await userStore.isUserLoggedIn();
3116
if (isLoggedIn && userStore.user && JSON.stringify(userStore.user.groups) === JSON.stringify(['hermes'])
3217
&& !to.path.startsWith('/hermes')) {
3318
// eslint-disable-next-line no-undef

nuxt.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ export default defineNuxtConfig({
3939
phenotypesUrl: "",
4040
googleAuthClientId: "",
4141
googleAuthRedirectUri: "",
42-
// User service configuration for SGC
43-
userServiceUrl: "https://users.kpndataregistry.org",
44-
sgcUserGroup: "sgc"
4542
},
4643
},
4744

pages/sgc/index.vue

Lines changed: 0 additions & 334 deletions
This file was deleted.

0 commit comments

Comments
 (0)