diff --git a/sa-token-plugin/sa-token-sso/src/main/java/cn/dev33/satoken/config/SaSsoConfig.java b/sa-token-plugin/sa-token-sso/src/main/java/cn/dev33/satoken/config/SaSsoConfig.java index d3b6638a..81ff5a68 100644 --- a/sa-token-plugin/sa-token-sso/src/main/java/cn/dev33/satoken/config/SaSsoConfig.java +++ b/sa-token-plugin/sa-token-sso/src/main/java/cn/dev33/satoken/config/SaSsoConfig.java @@ -125,7 +125,7 @@ public class SaSsoConfig implements Serializable { /** * 配置当前 Client 端的单点注销回调URL (为空时自动获取) */ - public String ssoLogoutCall; + public String currSsoLogoutCall; /** * 配置 Server 端主机总地址,拼接在 authUrl、checkTicketUrl、getDataUrl、sloUrl 属性前面,用以简化各种 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; + } + } diff --git a/sa-token-plugin/sa-token-sso/src/main/java/cn/dev33/satoken/sso/SaSsoProcessor.java b/sa-token-plugin/sa-token-sso/src/main/java/cn/dev33/satoken/sso/SaSsoProcessor.java index 5d5a826d..77e47d0d 100644 --- a/sa-token-plugin/sa-token-sso/src/main/java/cn/dev33/satoken/sso/SaSsoProcessor.java +++ b/sa-token-plugin/sa-token-sso/src/main/java/cn/dev33/satoken/sso/SaSsoProcessor.java @@ -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)) {