refactor(login): 移除登录签名验证相关代码
This commit is contained in:
@@ -52,8 +52,6 @@ public class LoginController {
|
|||||||
CorePlatformUniqueService corePlatformUniqueService;
|
CorePlatformUniqueService corePlatformUniqueService;
|
||||||
@Autowired
|
@Autowired
|
||||||
GlobalConfig globalConfig;
|
GlobalConfig globalConfig;
|
||||||
@Autowired
|
|
||||||
TsTokenConfig tsTokenConfig;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -64,7 +62,7 @@ public class LoginController {
|
|||||||
@GetMapping("/unique/redirect")
|
@GetMapping("/unique/redirect")
|
||||||
@OperationIgnore
|
@OperationIgnore
|
||||||
public void uniqueIndex(UniqueIndexDTO dto, HttpServletResponse response) {
|
public void uniqueIndex(UniqueIndexDTO dto, HttpServletResponse response) {
|
||||||
if (tsTokenConfig.isValidLoginSign() && !dto.validSign()) {
|
if (!dto.validSign()) {
|
||||||
corePlatformUniqueService.redirect(null, dto.getTo(), dto.getExtra(), response);
|
corePlatformUniqueService.redirect(null, dto.getTo(), dto.getExtra(), response);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ public class TsTokenConfig {
|
|||||||
private String encryptKey = "%kIp9frQCu";
|
private String encryptKey = "%kIp9frQCu";
|
||||||
private Integer expireHours = 48;
|
private Integer expireHours = 48;
|
||||||
private String[] ignorePaths;
|
private String[] ignorePaths;
|
||||||
private boolean validLoginSign = true;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -110,7 +109,8 @@ public class TsTokenConfig {
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// setter\getter
|
// setter\getter
|
||||||
///////////////////////////////////////////////////////////////////////////
|
|
||||||
|
/// ////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
public Map<String, TokenBean> getTestMap() {
|
public Map<String, TokenBean> getTestMap() {
|
||||||
return testMap;
|
return testMap;
|
||||||
@@ -144,11 +144,4 @@ public class TsTokenConfig {
|
|||||||
this.ignorePaths = ignorePaths;
|
this.ignorePaths = ignorePaths;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isValidLoginSign() {
|
|
||||||
return validLoginSign;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setValidLoginSign(boolean validLoginSign) {
|
|
||||||
this.validLoginSign = validLoginSign;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user