mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
Disable acceptence of old-fashion URL form for console access
This commit is contained in:
parent
409ec9c6b6
commit
37bab18c68
@ -49,7 +49,9 @@ public class ConsoleProxyHttpHandlerHelper {
|
|||||||
if(map.get("token") != null) {
|
if(map.get("token") != null) {
|
||||||
ConsoleProxyPasswordBasedEncryptor encryptor = new ConsoleProxyPasswordBasedEncryptor(
|
ConsoleProxyPasswordBasedEncryptor encryptor = new ConsoleProxyPasswordBasedEncryptor(
|
||||||
ConsoleProxy.getEncryptorPassword());
|
ConsoleProxy.getEncryptorPassword());
|
||||||
|
|
||||||
|
// make sure we get information from token only
|
||||||
|
map.clear();
|
||||||
ConsoleProxyClientParam param = encryptor.decryptObject(ConsoleProxyClientParam.class, map.get("token"));
|
ConsoleProxyClientParam param = encryptor.decryptObject(ConsoleProxyClientParam.class, map.get("token"));
|
||||||
if(param != null) {
|
if(param != null) {
|
||||||
if(param.getClientHostAddress() != null)
|
if(param.getClientHostAddress() != null)
|
||||||
@ -67,6 +69,9 @@ public class ConsoleProxyHttpHandlerHelper {
|
|||||||
if(param.getTicket() != null)
|
if(param.getTicket() != null)
|
||||||
map.put("ticket", param.getTicket());
|
map.put("ticket", param.getTicket());
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// we no longer accept information from parameter other than token
|
||||||
|
map.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
return map;
|
return map;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user