Commit 590e98e0 by chenzx

tb-sso单点登录CallBack

parent 9258ec85
......@@ -109,10 +109,10 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
String pwd = des.strDec(portal_password, key);
logger.info("sso login param->userName:"+username+" pwd:"+pwd);
if(!authenticate(username,pwd)){
httpServletResponse.sendError(500,"({'query':{'results':{'postresult':'portal_ssologin_fali'}}});");
httpServletResponse.sendError(500,CallBack+"({'query':{'results':{'postresult':'portal_ssologin_fali'}}});");
return null;
}
httpServletRequest.getSession().setAttribute("ssoLogin","({'query':{'results':{'postresult':'portal_ssologin_succeed'}}});");
httpServletRequest.getSession().setAttribute("ssoLogin",CallBack+"({'query':{'results':{'postresult':'portal_ssologin_succeed'}}});");
com.keymobile.proxy.model.User u = authService.getUserByName(username);
if (u == null) {
u = new com.keymobile.proxy.model.User();
......
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