summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/it2me_host_authenticator_factory.h
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-18 04:30:56 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-18 04:30:56 +0000
commitcbf35fce48d4eac57f2ec521bad9e3309da5f83c (patch)
treeb2d91fad9c1bbbd2920ef2e5e7dd852251deec28 /remoting/protocol/it2me_host_authenticator_factory.h
parent6796ef404c298526294b2536b99fcc98a1fa379b (diff)
downloadchromium_src-cbf35fce48d4eac57f2ec521bad9e3309da5f83c.zip
chromium_src-cbf35fce48d4eac57f2ec521bad9e3309da5f83c.tar.gz
chromium_src-cbf35fce48d4eac57f2ec521bad9e3309da5f83c.tar.bz2
Properly handle accounts that don't have GMail account.
1. Me2MeHostAuthenticatorFactory now verifies that the bare JID of the remote client matches bare JID of the host. Previously it was comparing it with the user's email, which may be different from JID. 2. GaiaOAuthClient now fetches user's email. 3. SignalingConnector verifies that user's email matches the expected value stored in xmpp_login. If it doesn't, then the auth token was generated for a different account and the host treats it as an authentication error. BUG=128102 Review URL: https://chromiumcodereview.appspot.com/10332187 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137824 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/it2me_host_authenticator_factory.h')
-rw-r--r--remoting/protocol/it2me_host_authenticator_factory.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/remoting/protocol/it2me_host_authenticator_factory.h b/remoting/protocol/it2me_host_authenticator_factory.h
index aa04009..c526cbf 100644
--- a/remoting/protocol/it2me_host_authenticator_factory.h
+++ b/remoting/protocol/it2me_host_authenticator_factory.h
@@ -31,6 +31,7 @@ class It2MeHostAuthenticatorFactory : public AuthenticatorFactory {
// AuthenticatorFactory interface.
virtual scoped_ptr<Authenticator> CreateAuthenticator(
+ const std::string& local_jid,
const std::string& remote_jid,
const buzz::XmlElement* first_message) OVERRIDE;