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

Unified Diff: remoting/tools/register_host.py

Issue 3133014: Added hostdir.py - a simple Chromoting Directory client. (Closed)
Patch Set: - Created 10 years, 4 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/tools/hostdir.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/tools/register_host.py
diff --git a/remoting/tools/register_host.py b/remoting/tools/register_host.py
index 648e692af6f00eab7f38da4f6aeba7633b413a00..ccfe37886834fac0c357cac5fda331ed3d12aa11 100755
--- a/remoting/tools/register_host.py
+++ b/remoting/tools/register_host.py
@@ -32,8 +32,8 @@ print "Email:",
email = raw_input()
password = getpass.getpass("Password: ")
-xapi_auth = gaia_auth.GaiaAuthenticator('chromoting')
-xapi_token = xapi_auth.authenticate(email, password)
+chromoting_auth = gaia_auth.GaiaAuthenticator('chromoting')
+auth_token = chromoting_auth.authenticate(email, password)
host_id = random_uuid()
print "HostId:", host_id
@@ -50,7 +50,7 @@ params = ('{"data":{' + \
'"publicKey": "%(publicKey)s"}}') % \
{'hostId': host_id, 'hostName': host_name,
'publicKey': public_key}
-headers = {"Authorization": "GoogleLogin auth=" + xapi_token,
+headers = {"Authorization": "GoogleLogin auth=" + auth_token,
"Content-Type": "application/json" }
request = urllib2.Request(url, params, headers)
« no previous file with comments | « remoting/tools/hostdir.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698