mirror of https://github.com/apache/cloudstack.git
ui: use http GET redirection for now until Tom sorts out POST-ability of SSO
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
38e72d67a8
commit
4c6ed448f0
|
|
@ -56,21 +56,23 @@
|
|||
return pluginEnabled;
|
||||
},
|
||||
show: function() {
|
||||
var description = 'Cloudian Storage should open in another window.';
|
||||
var description = 'Cloudian management console should open in another window.';
|
||||
$.ajax({
|
||||
url: createURL('cloudianSsoLogin'),
|
||||
async: false,
|
||||
success: function(json) {
|
||||
var response = json.cloudianssologinresponse.cloudianssologin;
|
||||
var url = response.url.split("?")[0];
|
||||
var data = {};
|
||||
$.each(response.url.split("?")[1].split("&"), function (idx, value) {
|
||||
data[value.split('=')[0]] = decodeURIComponent(value.split('=')[1]);
|
||||
})
|
||||
openInNewTab(url, data);
|
||||
var cmcWindow = window.open(response.url, "CMCWindow");
|
||||
cmcWindow.focus();
|
||||
//var url = response.url.split("?")[0];
|
||||
//var data = {};
|
||||
//$.each(response.url.split("?")[1].split("&"), function (idx, value) {
|
||||
// data[value.split('=')[0]] = decodeURIComponent(value.split('=')[1]);
|
||||
//})
|
||||
//openInNewTab(url, data);
|
||||
},
|
||||
error: function(data) {
|
||||
description = 'Single-Sign-On failed for Cloudian Storage.';
|
||||
description = 'Single-Sign-On failed for Cloudian management console.';
|
||||
}
|
||||
});
|
||||
return $('<div>').html(description);
|
||||
|
|
|
|||
Loading…
Reference in New Issue