diff options
author | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-09 19:09:11 +0000 |
---|---|---|
committer | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-09 19:09:11 +0000 |
commit | 6f5ec4a51a4cfc6023c094801f2f180c6739a89b (patch) | |
tree | 256f64b843183e4c1c0b525ac84b84797e038848 /remoting/tools | |
parent | c78559eabd562359ef23585df9268eeb5119b718 (diff) | |
download | chromium_src-6f5ec4a51a4cfc6023c094801f2f180c6739a89b.zip chromium_src-6f5ec4a51a4cfc6023c094801f2f180c6739a89b.tar.gz chromium_src-6f5ec4a51a4cfc6023c094801f2f180c6739a89b.tar.bz2 |
Revert 49298 - Broke compile - Token-based authentication for chromoting.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2749004
TBR=sergeyu@chromium.org
Review URL: http://codereview.chromium.org/2724010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49300 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/tools')
-rwxr-xr-x | remoting/tools/gettoken.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/remoting/tools/gettoken.py b/remoting/tools/gettoken.py deleted file mode 100755 index 853d09b..0000000 --- a/remoting/tools/gettoken.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env python -# -# Copyright (c) 2010 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. -# -# gettoken.py can be used to get auth token from Gaia. It asks username and -# password and then prints token on the screen. - -import urllib -import getpass -url = "https://www.google.com:443/accounts/ClientLogin" - -print "Email:", -email = raw_input() - -passwd = getpass.getpass("Password: ") - -params = urllib.urlencode({'Email': email, 'Passwd': passwd, - 'source': 'chromoting', 'service': 'chromiumsync', - 'PersistentCookie': 'true', 'accountType': 'GOOGLE'}) -f = urllib.urlopen(url, params); -print f.read() |