1
0
mirror of https://github.com/Ylianst/MeshCommander synced 2025-12-06 06:03:20 +00:00

Merge pull request #25 from nomis/ws-auth-amt-12

Fix WebSocket auth on AMT 12
This commit is contained in:
Ylian Saint-Hilaire
2020-07-26 16:54:51 -07:00
committed by GitHub

View File

@@ -107,8 +107,8 @@ var CreateAmtRedirect = function (module, authCookie) {
obj.directSend(new Uint8Array([0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00])); // Query for available authentication
// ###END###{!Mode-Firmware}
// ###BEGIN###{Mode-Firmware}
// When using websocket, we are already authenticated. Send empty basic auth.
obj.directSend(new Uint8Array([0x13, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00]));
// When using websocket, we are already authenticated. Send empty kerberos auth.
obj.directSend(new Uint8Array([0x13, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00]));
// ###END###{Mode-Firmware}
cmdsize = (13 + oemlen);
break;