Commit 7ef63849 by Masaru Abe

SSO対応

parent c072ff10
......@@ -1895,7 +1895,7 @@ CONTENTVIEW_CREATEOBJECT.linkURL = function (mediaType, actionType, id, imageUrl
var linkUrlTmp = linkUrl;
if(CONTENTVIEW_CREATEOBJECT.isSsoUrl(linkUrlTmp)){
CONTENTVIEW_CREATEOBJECT.makeSsoParam(linkUrlTmp, browserType);
CONTENTVIEW_CREATEOBJECT.makeSsoParam(linkUrlTmp, browserType, objectId);
} else {
//DHカスタム
if( ClientData.serviceOpt_daihatsu() == 'Y'){
......@@ -3001,7 +3001,7 @@ CONTENTVIEW_CREATEOBJECT.isSsoUrl = function(resourceUrl){
};
CONTENTVIEW_CREATEOBJECT.makeSsoParam = function(linkUrlTmp, browserType){
CONTENTVIEW_CREATEOBJECT.makeSsoParam = function(linkUrlTmp, browserType, objectId){
var param = "";
......@@ -3021,14 +3021,16 @@ CONTENTVIEW_CREATEOBJECT.makeSsoParam = function(linkUrlTmp, browserType){
var loginId = ClientData.userInfo_loginId_session();
var aesKey = data.aesKey;
var iv = CONTENTVIEW_CREATEOBJECT.makeRandom(16);
var val = data.getSysDate;
var val = data.sysDateTime;
//val = "2015-03-06T10:00:00";
var enc = CONTENTVIEW_CREATEOBJECT.aesEncrypt(val, aesKey, iv);
console.log("aesKey:" + aesKey);
console.log("val:" + val);
console.log("enc:" + enc);
//console.log("aesKey:" + aesKey);
//console.log("val:" + val);
//console.log("enc:" + enc);
param ="?lid=" + encodeURIComponent(loginId) + "&p=" + encodeURIComponent(enc) + "&v=" + iv;
//param ="?lid=" + encodeURIComponent(loginId) + "&p=" + enc + "&v=" + iv;
}
linkUrlTmp = linkUrlTmp + param;
......
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