Commit aa07adeb authored by huyuchen's avatar huyuchen

派单优化修改

parent 52dd5ec0
......@@ -5,14 +5,12 @@ public class CASproperties {
/**
* 当前应用程序的登陆界面
*/
public static String CLIENT_LOGIN_PAGE = "https://qas-mvp-1.worfu.com/login";
public static String CLIENT_LOGIN_PAGE = "http://mvp.wanxinwork.com/login";
/**
* CAS服务器地址
*/
public static String CAS_SERVER_PATH = "http://192.168.1.62:8443/cas";
public static String SPRING_SECURITY_CAS_SERVER = "http://192.168.1.62:8443/cas/v1/tickets";
public static String CAS_SERVER_PATH = "http://192.168.0.240:8443/cas";
public static String SPRING_SECURITY_CAS_SERVER = "http://192.168.0.240:8443/cas/v1/tickets";
}
......@@ -71,9 +71,9 @@ public class PasswordDecoderFilter extends UsernamePasswordAuthenticationFilter
wholeForm.clear();
wholeForm.add("service", CASproperties.CLIENT_LOGIN_PAGE);
wholeForm.add("ticket", st);
obj = restTemplate.getForEntity(CASproperties.CAS_SERVER_PATH + "/p3/serviceValidate?service=" + CASproperties.CLIENT_LOGIN_PAGE + "&ticket=" + st + "&format=JSON"
, String.class,CASproperties.CLIENT_LOGIN_PAGE,st,"JSON");
log.info("cas返回用户信息》》》",JSON.toJSONString(obj));
obj = restTemplate.exchange(CASproperties.CAS_SERVER_PATH + "/p3/serviceValidate?service=" + CASproperties.CLIENT_LOGIN_PAGE + "&ticket=" + st + "&format=JSON"
, HttpMethod.GET,entity, String.class);
log.info("cas返回用户信息》》》", JSON.toJSONString(obj));
if(obj.getStatusCode().value() == 200){
try {
JSONObject result = JSON.parseObject(obj.getBody());
......
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