DescriptionPrivate API for extensions like ssh-client that need access to websocket-to-tcp proxy.
Access to TCP is obtained in following way:
(1) extension requests authentication token via call to private API like:
chrome.webSocketProxyPrivate.getPassportForTCP('netbsd.org', 25, callback);
if API validates this request
then extension obtains some string token (in callback).
(2) open websocket connection to local websocket-to-tcp proxy ws://127.0.0.1:10101/tcpproxy
(3) pass header containing hostname, port and token obtained at step (1)
(4) communicate (in base64 encoding at this moment).
Proxy (running in chrome process) verifies those tokens by calls to InternalAuthVerification::VerifyPassport
Passports are one-time; no passport can be reused.
Passports expire in short period of time (20 seconds).
BUG=chromium-os:9667
TEST=unit_test,apitest
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=85757
Patch Set 1 : sigh-nedness #
Total comments: 8
Patch Set 2 : fix #
Total comments: 7
Patch Set 3 : c #
Total comments: 12
Patch Set 4 : k #Patch Set 5 : m #
Total comments: 6
Patch Set 6 : v #Patch Set 7 : u #Patch Set 8 : sync with ToT #Patch Set 9 : launch webproxy on first call #Patch Set 10 : fixed bugs + added apitest + rebased #
Total comments: 9
Patch Set 11 : synced with ToT #Patch Set 12 : c #
Total comments: 18
Patch Set 13 : reflected comments #
Total comments: 6
Patch Set 14 : v #
Total comments: 5
Patch Set 15 : reflect comments + care about trailing slash in origin #Patch Set 16 : removed changes to rand_util_unittest #Messages
Total messages: 24 (0 generated)
|