SSO客户端程序
Last updated
Last updated
get方式:
java加密方式:
String login_uid = "test";
long time = new Date().getTime();
String sso_key = "12345678";
String xtoken = Crypto.encrypt( login_uid + "#" + time, sso_key );
js脚本打开url,如下:
var client = "unicom";
var xtoken = "5no3eDzdxrU1-cV_7F7e1gZq-RKMrJ-X" ;
var redirect= "http://127.0.0.1/x_desktop/app.html?app=process.TaskCenter" ;
var url = "http://127.0.0.1/x_desktop/sso.html" + "?client=" + client + "&xtoken=" + xtoken + "&redirect=" + redirect ;
window.open(url);
post方式:
sso.html文件所在路径