From 9d960ed0058f9087f49e9741a9af06c3f9116eb0 Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期六, 19 四月 2025 11:23:02 +0800 Subject: [PATCH] feat(auth): 添加 Keycloak 认证支持 --- zhitan-admin/src/main/resources/application-dev.yml | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/zhitan-admin/src/main/resources/application-dev.yml b/zhitan-admin/src/main/resources/application-dev.yml index fbf552a..187f8b3 100644 --- a/zhitan-admin/src/main/resources/application-dev.yml +++ b/zhitan-admin/src/main/resources/application-dev.yml @@ -6,8 +6,8 @@ druid: # 涓诲簱鏁版嵁婧� master: - url: jdbc:postgresql://127.0.0.1:5432/energy - username: root + url: jdbc:postgresql://127.0.0.1:5432/postgres + username: postgres password: 123456 # 浠庡簱鏁版嵁婧� slave: @@ -59,3 +59,11 @@ wall: config: multi-statement-allow: true +keycloak: + # keycloak 鏈嶅姟鍣ㄥ湴鍧� + server-url: https://lanbaosystem.shlanbao.cn:8443 + realm: lanbao + client-id: DataCapture + client-secret: kplisa4lJHEIM6knqefVbxln85QbA5NX + redirect-uri: http://192.168.12.236:80/social-callback + scopes: [openid, email, phone, profile] \ No newline at end of file -- Gitblit v1.9.3