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

Side by Side Diff: remoting/tools/gettoken.py

Issue 2724010: Revert 49298 - Broke compile - Token-based authentication for chromoting.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/jingle_glue/jingle_test_client.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 #
3 # Copyright (c) 2010 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6 #
7 # gettoken.py can be used to get auth token from Gaia. It asks username and
8 # password and then prints token on the screen.
9
10 import urllib
11 import getpass
12 url = "https://www.google.com:443/accounts/ClientLogin"
13
14 print "Email:",
15 email = raw_input()
16
17 passwd = getpass.getpass("Password: ")
18
19 params = urllib.urlencode({'Email': email, 'Passwd': passwd,
20 'source': 'chromoting', 'service': 'chromiumsync',
21 'PersistentCookie': 'true', 'accountType': 'GOOGLE'})
22 f = urllib.urlopen(url, params);
23 print f.read()
OLDNEW
« no previous file with comments | « remoting/jingle_glue/jingle_test_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698