Commit fa9d0c43 by java-lixy

单点登录修改

parent 5309cb82
......@@ -62,7 +62,7 @@ public class FrontReportService extends CrudService<FrontReportDao,FrontReportEn
LtpaTokenManager.loadConfig(URLDecoder.decode(URLDecoder.decode(filePath)));
token = URLDecoder.decode(token);
token = URLDecoder.decode(token);
// token = URLDecoder.decode(token);
token = URLDecoder.decode(token);
String username = "";
boolean result = LtpaTokenManager.isValid(token);
if (result) {//验证Token是否合法有效
......
......@@ -41,8 +41,11 @@ public class SsoController extends BaseController {
String filePath = resource.getURL().getPath();
String returnToken = token;
LtpaTokenManager.loadConfig(URLDecoder.decode(URLDecoder.decode(filePath)));
logger.debug(".................原始token:\t\t" + token);
token = URLDecoder.decode(token);
logger.debug(".................解码一次token:\t\t" + token);
token = URLDecoder.decode(token);
logger.debug(".................解码两次token:\t\t" + token);
// token = URLDecoder.decode(token);
String username = "";
boolean result = LtpaTokenManager.isValid(token);
......
......@@ -76,8 +76,11 @@ public class LoginController extends BaseController{
// String filePath =getClass().getResource("/LtpaToken.properties").getPath();
String filePath =resource.getURL().getPath();
LtpaTokenManager.loadConfig(URLDecoder.decode(URLDecoder.decode(filePath)));
logger.debug(".................原始token:\t\t" + token);
token = URLDecoder.decode(token);
token = URLDecoder.decode(token);
logger.debug(".................解码一次token:\t\t" + token);
// token = URLDecoder.decode(token);
// logger.debug(".................解码两次token:\t\t" + token);
if (LtpaTokenManager.isValid(token)) {//验证Token是否合法有效
logger.info("..................token合法");
LtpaToken ltpaToken = new LtpaToken(token);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment