From c5ed596008264c5ebdf5c1bf1fc9a08b27e4ff8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=AB=E5=9C=B0=E5=83=A7?= <357099073@qq.com> Date: Sun, 20 Sep 2026 00:19:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/public/auth-callback.html | 39 + backend/src/router/index.js | 13 +- backend/src/utils/authClient.js | 42 + backend/src/utils/request.js | 13 +- .../apps/oa/schedule/components/detail.vue | 13 +- backend/src/views/auth/callback.vue | 32 +- backend/vite.config.js | 4 +- go/controllers/auth/login.go | 20 +- go/controllers/auth/oidc.go | 73 +- go/controllers/auth/session.go | 125 ++ go/controllers/auth/third.go | 592 +++++++++ go/controllers/platform_auth_client.go | 391 ++++++ go/controllers/platform_auth_config.go | 240 ++++ go/controllers/platform_auth_idp.go | 257 ++++ go/docs/sql/create_oa_compensation.sql | 104 ++ go/pkg/jwtutil/jwt.go | 10 +- go/routers/auth/auth.go | 13 + go/routers/platform/platform.go | 20 + go/scripts/uidmigrate/migrate_uid.go | 355 ++++++ go/services/admin_user.go | 145 ++- go/services/auth/identity.go | 19 + go/services/auth/idp/provider.go | 413 +++++++ go/services/auth/login.go | 33 +- go/services/auth/logout.go | 114 ++ go/services/auth/token.go | 63 +- go/services/mcp_client.go | 8 +- go/services/oa_document.go | 16 +- go/services/permission.go | 101 +- go/services/platform_auth.go | 10 +- go/services/system_email_smtp.go | 440 +++---- go/services/system_email_store.go | 270 ++--- go/services/system_sitereminder.go | 1064 ++++++++--------- go/services/tenant_user.go | 288 ++--- go/services/wechatmp/bind.go | 8 +- go/views/auth/bind.tpl | 76 ++ go/views/auth/devices.tpl | 86 ++ go/views/auth/login.tpl | 49 + platform/src/api/authClient.js | 50 + platform/src/api/authConfig.js | 27 + platform/src/api/authIdp.js | 43 + platform/src/router/index.js | 21 + .../src/views/system/authClient/index.vue | 313 +++++ .../src/views/system/authConfig/index.vue | 256 ++++ platform/src/views/system/authIdp/index.vue | 303 +++++ platform/vite.config.js | 6 +- uniapp/vite.config.js | 3 + website/vite.config.ts | 3 +- 47 files changed, 5385 insertions(+), 1199 deletions(-) create mode 100644 backend/public/auth-callback.html create mode 100644 go/controllers/auth/session.go create mode 100644 go/controllers/auth/third.go create mode 100644 go/controllers/platform_auth_client.go create mode 100644 go/controllers/platform_auth_config.go create mode 100644 go/controllers/platform_auth_idp.go create mode 100644 go/docs/sql/create_oa_compensation.sql create mode 100644 go/scripts/uidmigrate/migrate_uid.go create mode 100644 go/services/auth/idp/provider.go create mode 100644 go/services/auth/logout.go create mode 100644 go/views/auth/bind.tpl create mode 100644 go/views/auth/devices.tpl create mode 100644 platform/src/api/authClient.js create mode 100644 platform/src/api/authConfig.js create mode 100644 platform/src/api/authIdp.js create mode 100644 platform/src/views/system/authClient/index.vue create mode 100644 platform/src/views/system/authConfig/index.vue create mode 100644 platform/src/views/system/authIdp/index.vue diff --git a/backend/public/auth-callback.html b/backend/public/auth-callback.html new file mode 100644 index 0000000..ed2e046 --- /dev/null +++ b/backend/public/auth-callback.html @@ -0,0 +1,39 @@ + + +
+ + +