From 44d70e42817bfb518f29240d396ee3f53297e9fc Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期六, 09 八月 2025 13:20:28 +0800
Subject: [PATCH] SSO代码提交

---
 ruoyi-admin/src/main/resources/application-ls.yml |   28 +++++++++++++++++++++++++++-
 1 files changed, 27 insertions(+), 1 deletions(-)

diff --git a/ruoyi-admin/src/main/resources/application-ls.yml b/ruoyi-admin/src/main/resources/application-ls.yml
index d3031a7..2e48598 100644
--- a/ruoyi-admin/src/main/resources/application-ls.yml
+++ b/ruoyi-admin/src/main/resources/application-ls.yml
@@ -6,7 +6,7 @@
     druid:
       # 涓诲簱鏁版嵁婧�
       master:
-        #        涓芥按
+        #   涓芥按
         url: jdbc:mysql://127.0.0.1:3308/smartor-lisui?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
         username: smartor
         password: Smartor.2023
@@ -103,6 +103,11 @@
   # 璇锋眰鍓嶇紑
   pathMapping: /dev-api
 
+# PageHelper鍒嗛〉鎻掍欢
+pagehelper:
+  helperDialect: mysql
+  supportMethodsArguments: true
+  params: count=countSql
 
 magic-api:
   web: /magic/web
@@ -118,6 +123,26 @@
     page: page
     default-page: 1
     default-size: 10
+
+# 娌冲崡SSO閰嶇疆锛堜附姘寸敤涓嶅埌锛�
+sso:
+  enabled: true
+  client_id: "mbglxt"  # 淇¢�氶櫌鎻愪緵
+  client_secret: "mbglxt"  # 淇¢�氶櫌鎻愪緵
+  # 鍐呯綉閰嶇疆
+  internal:
+    authorize_url: "http://10.10.13.112:37727/connect/authorize"
+    token_url: "http://10.10.13.112:37727/connect/token"
+    userinfo_url: "http://10.10.13.112:37727/connect/userinfo"
+    redirect_uri: "http://10.10.13.142:8096/sso/callback"
+  # 澶栫綉閰嶇疆
+  external:
+    authorize_url: "http://172.20.111.142:37727/connect/authorize"
+    token_url: "http://172.20.111.142:37727/connect/token"
+    userinfo_url: "http://172.20.111.142:37727/connect/userinfo"
+    redirect_uri: "http://172.20.111.142:8096/sso/callback"
+  state: "smartor"  # 浣犱滑绯荤粺鏍囪瘑
+  scope: "openid roles profile"
 
 #閽夐拤鐨勫瘑閽�
 dingAppid: dingn8iip5ubj7clrrsv
@@ -234,3 +259,4 @@
 
 #闅忚鍖婚櫌锛�1鏂板崕   2涓芥按
 visitHosp: 2
+

--
Gitblit v1.9.3