mirror of
https://github.com/apache/cloudstack
synced 2026-09-01 09:29:05 +00:00
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
9a67a5d1ee
commit
be5d076964
@ -601,7 +601,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
Block a user