Hello eveyone!
I know this case is 6 years old but since I get the same issue with new vcloud director v10, I prefer to continue it instead of creating a new one.
I'm unable to find a way to do SSO with APM portal. Our goal is to show an APM portal where we can use token and do SSO to login to vcloud but it's completely different than older vcloud director.
The login page is like this: GET /login/?service=tenant:ORG-TEST&redirectTo=%2Ftenant%2FORG-TEST HTTP/1.1
It contains the following:
function onPageLoad() {
setSessionCookie();
disable('loginButton');
tid = setInterval(handleLoginEnable, 200);
document.getElementById('usernameInput').onkeydown = function(event) {
if(event.keyCode == '13') {
// switch to password field on enter
document.getElementById("passwordInput").focus();
}
handleLoginEnable();
};
// Submit the form when ENTER is pressed.
document.getElementById('tenantName').onkeyup = function(event) {
if(event.keyCode == '13') {
onSubmit();
}
};
handleLoginEnable();
hide('blankCanvas');
// Focus tenant or username input. timeout is requied as the dom is not rendered and focus is not set whitout the timeout
window.setTimeout(function() {
if (false) {
document.getElementById("tenantName").focus();
} else {
document.getElementById("usernameInput").focus();
}
}, 150);
}
Once I do the login, it does this: POST /cloudapi/1.0.0/sessions HTTP/1.1
With a JSON file which looks like
{"id":"urn:vcloud:session:4cf167ea-1c96-46ed-9cd4-cbc5797aa128","user":{"name":"sde","id":"urn:vcloud:user:4538234e-c53c-4517-a81c-45acf8107b45"},"org":{"name":"ORG-TEST","id":"urn:vcloud:org:673fe109-5da1-4179-9603-2bee17ffee01"},"location":"673fe109-5da1-4179-9603-2bee17ffee01@cf5ec229-07dd-44c1-a4a5-f119253df0ab","roles":["Organization Administrator"]}
There is no clear parameter name.
Do you think is still possible to use APM on this?
Thank you very much for your support!