mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-4186. Signature computed while accessing VM's console is not aligned with how signature is computed for other APIs
This commit is contained in:
parent
bf5e86eb22
commit
b7c5068327
|
|
@ -605,7 +605,7 @@ public class ConsoleProxyServlet extends HttpServlet {
|
|||
mac.init(keySpec);
|
||||
mac.update(unsignedRequest.getBytes());
|
||||
byte[] encryptedBytes = mac.doFinal();
|
||||
String computedSignature = Base64.encodeBase64URLSafeString(encryptedBytes);
|
||||
String computedSignature = Base64.encodeBase64String(encryptedBytes);
|
||||
boolean equalSig = signature.equals(computedSignature);
|
||||
if (!equalSig) {
|
||||
s_logger.debug("User signature: " + signature + " is not equaled to computed signature: " + computedSignature);
|
||||
|
|
|
|||
Loading…
Reference in New Issue