mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUACAMOLE-1775: Use header for auth token instead of a parameter in "session/tunnels/<tunnel ID>/protocol" request
This commit is contained in:
@@ -97,17 +97,10 @@ angular.module('rest').factory('tunnelService', ['$injector',
|
|||||||
*/
|
*/
|
||||||
service.getProtocol = function getProtocol(tunnel) {
|
service.getProtocol = function getProtocol(tunnel) {
|
||||||
|
|
||||||
// Build HTTP parameters set
|
return authenticationService.request({
|
||||||
var httpParameters = {
|
|
||||||
token : authenticationService.getCurrentToken()
|
|
||||||
};
|
|
||||||
|
|
||||||
// Retrieve the protocol details of the specified tunnel
|
|
||||||
return requestService({
|
|
||||||
method : 'GET',
|
method : 'GET',
|
||||||
url : 'api/session/tunnels/' + encodeURIComponent(tunnel)
|
url : 'api/session/tunnels/' + encodeURIComponent(tunnel)
|
||||||
+ '/protocol',
|
+ '/protocol'
|
||||||
params : httpParameters
|
|
||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user