提交 10d19e5b authored 作者: inroi's avatar inroi

微调

上级 6a1a6460
package com.shr.controller; package com.shr.controller;
import com.kingdee.shr.sso.client.ltpa.LtpaTokenManager; import com.kingdee.shr.sso.client.ltpa.LtpaTokenManager;
import com.shr.annotion.AccessLog;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -17,7 +16,6 @@ import java.io.IOException; ...@@ -17,7 +16,6 @@ import java.io.IOException;
@RequestMapping("/api") @RequestMapping("/api")
public class EasController { public class EasController {
@AccessLog("单点登录")
@GetMapping(value = "/eas/ssoLogin") @GetMapping(value = "/eas/ssoLogin")
public void ssoLogin(HttpServletResponse response) throws IOException { public void ssoLogin(HttpServletResponse response) throws IOException {
response.sendRedirect(loginEasportal()); response.sendRedirect(loginEasportal());
...@@ -36,10 +34,9 @@ public class EasController { ...@@ -36,10 +34,9 @@ public class EasController {
System.out.println("password: " + password); System.out.println("password: " + password);
//生成EAS单点登录地址 192.168.0.119 192.168.2.219 //生成EAS单点登录地址 192.168.0.119 192.168.2.219
String url = "http://192.168.0.119:6888/portal/index2sso.jsp?username=" + username + "&password=" + password + "&redirectTo=" + redirectTo + "&isNotCheckRelogin=true"; String url = "http://192.168.2.219:6888/portal/index2sso.jsp?username=" + username + "&password=" + password + "&redirectTo=" + redirectTo + "&isNotCheckRelogin=true";
//验证Token //验证Token
boolean valid = LtpaTokenManager.isValid(password); LtpaTokenManager.isValid(password);
System.out.println(valid);
System.out.println(url); System.out.println(url);
return url; return url;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论