Page MenuHomePhabricator

[lib] Log out on failed Tunnelbroker auth
ClosedPublic

Authored by bartek on Nov 18 2024, 6:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 16, 1:29 PM
Unknown Object (File)
Fri, Dec 13, 1:58 PM
Unknown Object (File)
Fri, Dec 13, 4:33 AM
Unknown Object (File)
Mon, Dec 9, 8:35 PM
Unknown Object (File)
Sat, Dec 7, 7:07 PM
Unknown Object (File)
Sat, Dec 7, 4:51 AM
Unknown Object (File)
Mon, Dec 2, 4:48 AM
Unknown Object (File)
Thu, Nov 28, 4:16 AM
Subscribers

Details

Summary

Address ENG-9525.
When verification of initialization message fails, log out the device

Depends on D13955

Test Plan

Mocked the initialization message to contain invalid CSAT. The device was logged out.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Nov 21 2024, 9:12 AM
bartek added a reviewer: ashoat. bartek removed 1 blocking reviewer(s): kamil.
bartek added inline comments.
lib/tunnelbroker/tunnelbroker-context.js
299–302 ↗(On Diff #45863)

Doing return here doesn't change the context state, so it's still "awaiting connection" (connected = false). After the hook logs out the user, the createInitMessage() will start returning null and the connection will be closed.

This revision is now accepted and ready to land.Nov 21 2024, 6:19 PM