mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-04-05 17:37:53 +08:00
SaSsoConfig 配置项 ssoLogoutCall 重命名为 currSsoLogoutCall
This commit is contained in:
parent
f90bd2cd6a
commit
4f26427bd5
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user