SaSsoConfig 配置项 ssoLogoutCall 重命名为 currSsoLogoutCall

This commit is contained in:
click33 2024-04-27 18:20:57 +08:00
parent f90bd2cd6a
commit 4f26427bd5
2 changed files with 25 additions and 9 deletions

View File

@ -125,7 +125,7 @@ public class SaSsoConfig implements Serializable {
/**
* 配置当前 Client 端的单点注销回调URL 为空时自动获取
*/
public String ssoLogoutCall;
public String currSsoLogoutCall;
/**
* 配置 Server 端主机总地址拼接在 authUrlcheckTicketUrlgetDataUrlsloUrl 属性前面用以简化各种 url 配置
@ -334,16 +334,16 @@ public class SaSsoConfig implements Serializable {
/**
* @return 配置当前 Client 端的单点注销回调URL 为空时自动获取
*/
public String getSsoLogoutCall() {
return ssoLogoutCall;
public String getCurrSsoLogoutCall() {
return currSsoLogoutCall;
}
/**
* @param ssoLogoutCall 配置当前 Client 端的单点注销回调URL 为空时自动获取
* @param currSsoLogoutCall 配置当前 Client 端的单点注销回调URL 为空时自动获取
* @return 对象自身
*/
public SaSsoConfig setSsoLogoutCall(String ssoLogoutCall) {
this.ssoLogoutCall = ssoLogoutCall;
public SaSsoConfig setCurrSsoLogoutCall(String currSsoLogoutCall) {
this.currSsoLogoutCall = currSsoLogoutCall;
return this;
}
@ -397,7 +397,7 @@ public class SaSsoConfig implements Serializable {
+ ", userinfoUrl=" + userinfoUrl
+ ", sloUrl=" + sloUrl
+ ", currSsoLogin=" + currSsoLogin
+ ", ssoLogoutCall=" + ssoLogoutCall
+ ", currSsoLogoutCall=" + currSsoLogoutCall
+ ", serverUrl=" + serverUrl
+ ", isCheckSign=" + isCheckSign
+ "]";
@ -566,4 +566,20 @@ public class SaSsoConfig implements Serializable {
return sendHttp;
}
/**
* @return 配置当前 Client 端的单点注销回调URL 为空时自动获取
*/
public String getSsoLogoutCall() {
return currSsoLogoutCall;
}
/**
* @param ssoLogoutCall 配置当前 Client 端的单点注销回调URL 为空时自动获取
* @return 对象自身
*/
public SaSsoConfig setSsoLogoutCall(String ssoLogoutCall) {
this.currSsoLogoutCall = ssoLogoutCall;
return this;
}
}

View File

@ -469,8 +469,8 @@ public class SaSsoProcessor {
String ssoLogoutCall = null;
if(cfg.getIsSlo()) {
// 如果配置了回调地址就使用配置的值
if(SaFoxUtil.isNotEmpty(cfg.getSsoLogoutCall())) {
ssoLogoutCall = cfg.getSsoLogoutCall();
if(SaFoxUtil.isNotEmpty(cfg.getCurrSsoLogoutCall())) {
ssoLogoutCall = cfg.getCurrSsoLogoutCall();
}
// 如果提供了当前 uri则根据此值来计算
else if(SaFoxUtil.isNotEmpty(currUri)) {