From e3ed60feae630f247a8f0d3ccbd7e33b6d3b7574 Mon Sep 17 00:00:00 2001 From: DecDuck Date: Thu, 8 May 2025 15:29:50 +1000 Subject: [PATCH] feat: add oidc to admin panel --- components/Icons/SSOLogo.vue | 11 +++++++++ components/UserHeader/UserWidget.vue | 2 +- pages/admin/users/auth/index.vue | 24 +++++++++++++------ pages/auth/signin.vue | 10 +++++--- prisma/app.prisma | 1 - .../migration.sql | 8 +++++++ server/api/v1/admin/auth/index.get.ts | 13 +++++----- server/api/v1/auth/index.get.ts | 2 +- server/api/v1/auth/signin/simple.post.ts | 2 +- server/internal/clients/ca-store.ts | 1 + .../config/application-configuration.ts | 2 -- server/internal/notifications/index.ts | 4 +++- server/internal/oidc/index.ts | 23 ++++++++++++++---- server/plugins/03.metadata-init.ts | 1 - server/plugins/04.auth-init.ts | 19 ++++++++------- server/routes/auth/callback/oidc.get.ts | 5 ++-- server/routes/auth/oidc.get.ts | 4 ++-- 17 files changed, 89 insertions(+), 43 deletions(-) create mode 100644 components/Icons/SSOLogo.vue create mode 100644 prisma/migrations/20250507223112_remove_authentication_option_from_applicationsettings/migration.sql diff --git a/components/Icons/SSOLogo.vue b/components/Icons/SSOLogo.vue new file mode 100644 index 0000000..2426be4 --- /dev/null +++ b/components/Icons/SSOLogo.vue @@ -0,0 +1,11 @@ + diff --git a/components/UserHeader/UserWidget.vue b/components/UserHeader/UserWidget.vue index 8bf8185..827b633 100644 --- a/components/UserHeader/UserWidget.vue +++ b/components/UserHeader/UserWidget.vue @@ -58,7 +58,7 @@ {{ nav.label }} - + {{ authMech.name }} - + @@ -81,10 +81,10 @@
{{ key }}
-
+
{{ value }}
@@ -96,7 +96,7 @@ diff --git a/pages/auth/signin.vue b/pages/auth/signin.vue index d833a4c..0c5ef24 100644 --- a/pages/auth/signin.vue +++ b/pages/auth/signin.vue @@ -18,13 +18,16 @@
- -
+ +
OR
- +
@@ -40,6 +43,7 @@