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:
Kelven Yang 2011-03-21 11:28:16 -07:00
parent 505848bbbe
commit 7168278455
1 changed files with 6 additions and 0 deletions

View File

@ -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);