Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1199)

Unified Diff: remoting/client/simple_client.cc

Issue 2749004: Token-based authentication for chromoting. (Closed)
Patch Set: - Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/client/host_connection.cc ('k') | remoting/host/simple_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/simple_client.cc
diff --git a/remoting/client/simple_client.cc b/remoting/client/simple_client.cc
index ff74312982359d6818be9285304fd29781791659..da65b2ad5e9b8a7d1a1beb1f38a666388807bb6e 100644
--- a/remoting/client/simple_client.cc
+++ b/remoting/client/simple_client.cc
@@ -176,19 +176,16 @@ int main(int argc, char** argv) {
return 1;
}
- // Get password (with console echo turned off).
- std::string password;
- SetConsoleEcho(false);
- std::cout << "Password: ";
- getline(std::cin, password);
- SetConsoleEcho(true);
- std::cout << std::endl;
+ // Get auth token.
+ std::string auth_token;
+ std::cout << "Auth Token: ";
+ getline(std::cin, auth_token);
// The message loop that everything runs on.
MessageLoop main_loop;
SimpleHostEventHandler handler(&main_loop);
HostConnection connection(new ProtocolDecoder(), &handler);
- connection.Connect(username, password, host_jid);
+ connection.Connect(username, auth_token, host_jid);
// Run the message.
main_loop.Run();
« no previous file with comments | « remoting/client/host_connection.cc ('k') | remoting/host/simple_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698