This commit is contained in:
2026-02-24 21:01:54 +08:00
parent 4277ff1869
commit 94bee0be90
7 changed files with 492 additions and 8 deletions

View File

@@ -40,9 +40,9 @@ spring:
druid:
# 主库数据源
master:
url: jdbc:mysql://13.211.168.80:3306/vetti_service?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: vetti_service
password: Hotake@2025
url: jdbc:mysql://ddns.hotake.cn:13306/vetti_service?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: Hamkke@2021
# 从库数据源
slave:
# 从数据源开关/默认关闭
@@ -207,7 +207,7 @@ oauth2:
google:
client-id: 398978985110-ve0usu381mmdio12ff01iqvv1g087qvi.apps.googleusercontent.com # Google Cloud Console获取
client-secret: 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 # Google Cloud Console获取
redirect-uri: https://vetti.hotake.cn/oauth2/callback/google
redirect-uri: https://vetti.com.au/oauth2/callback/google
scope: openid email profile # Google标准scope空格分隔
auth-uri: https://accounts.google.com/o/oauth2/v2/auth # Google授权地址
token-uri: https://oauth2.googleapis.com/token # Google令牌地址
@@ -220,7 +220,7 @@ oauth2:
microsoft:
client-id: 608cbc4f-3ee2-4f51-a72c-b2e3133fc5b2 # Azure Portal获取
client-secret: gvw8Q~dwG8Sv7HN3R3W3R7TQtcZyvrh88ZiJubPa # Azure Portal获取
redirect-uri: https://vetti.hotake.cn/oauth2/callback/microsoft
redirect-uri: https://vetti.com.au/oauth2/callback/microsoft
scope: openid,email,profile,User.Read # 需要额外的User.Read权限才能读取用户信息
auth-uri: https://login.microsoftonline.com/common/oauth2/v2.0/authorize # 微软授权地址
token-uri: https://login.microsoftonline.com/common/oauth2/v2.0/token # 微软令牌地址
@@ -233,7 +233,7 @@ oauth2:
linkedin:
client-id: 86uq3opzshd3bq # LinkedIn Developer Portal获取
client-secret: WPL_AP1.mipgyxfgfBoN12Th.1TXeFg== # LinkedIn Developer Portal获取
redirect-uri: https://vetti.hotake.cn/oauth2/callback/linkedin
redirect-uri: https://vetti.com.au/oauth2/callback/linkedin
scope: openid profile email # LinkedIn使用OpenID Connectscope顺序和命名略有不同
auth-uri: https://www.linkedin.com/oauth/v2/authorization # LinkedIn授权地址
token-uri: https://www.linkedin.com/oauth/v2/accessToken # LinkedIn令牌地址

View File

@@ -85,4 +85,11 @@ HotakeSecurityController10003 = Session terminated
HotakeSecurityController10004 = All other sessions terminated
# Logout related
HotakeSecurityServiceImpl10011 = User logged out
HotakeSecurityServiceImpl10011 = User logged out
# Trusted device related messages
HotakeSecurityServiceImpl10012 = Updated trusted device
HotakeSecurityServiceImpl10013 = Added trusted device
HotakeSecurityServiceImpl10014 = Device does not exist or no permission to operate
HotakeSecurityServiceImpl10015 = Removed trusted device

View File

@@ -82,4 +82,11 @@ HotakeSecurityController10003 = 会话已终止
HotakeSecurityController10004 = 所有其他会话已终止
# 退出登录相关
HotakeSecurityServiceImpl10011 = 用户退出登录
HotakeSecurityServiceImpl10011 = 用户退出登录
# 可信设备相关消息
HotakeSecurityServiceImpl10012 = 更新可信设备
HotakeSecurityServiceImpl10013 = 添加可信设备
HotakeSecurityServiceImpl10014 = 设备不存在或无权操作
HotakeSecurityServiceImpl10015 = 移除可信设备