mirror of https://github.com/apache/cloudstack.git
Console access API with API key, there is an issue that it actually depends on existing web session. This is the fix for it
This commit is contained in:
parent
505848bbbe
commit
7168278455
|
|
@ -527,6 +527,12 @@ public class ConsoleProxyServlet extends HttpServlet {
|
|||
if (!equalSig) {
|
||||
s_logger.debug("User signature: " + signature + " is not equaled to computed signature: " + computedSignature);
|
||||
}
|
||||
|
||||
if(equalSig) {
|
||||
requestParameters.put("userid", new Object[] {String.valueOf(user.getId())});
|
||||
requestParameters.put("account", new Object[] {account.getAccountName()});
|
||||
requestParameters.put("accountobj", new Object[] { account });
|
||||
}
|
||||
return equalSig;
|
||||
} catch (Exception ex) {
|
||||
s_logger.error("unable to verifty request signature", ex);
|
||||
|
|
|
|||
Loading…
Reference in New Issue