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

Unified Diff: remoting/client/appengine/static_files/chromoting_session.js

Issue 7054029: Add in support for connecting with just the OAuth2 token. Default to OAuth2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address Jamie's comments Created 9 years, 7 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/appengine/main.py ('k') | remoting/client/appengine/static_files/client.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/appengine/static_files/chromoting_session.js
diff --git a/remoting/client/appengine/static_files/chromoting_session.js b/remoting/client/appengine/static_files/chromoting_session.js
index 7c2a8b9fd3da6e84f8527ef036a5b04cc500b46d..64eda76cefa2e3d3869fdf24a0758fb1a91a4407 100644
--- a/remoting/client/appengine/static_files/chromoting_session.js
+++ b/remoting/client/appengine/static_files/chromoting_session.js
@@ -53,7 +53,7 @@ function registerConnection() {
chromoting.plugin.sendIq = sendIq;
// TODO:(jamiewalch): Pass in the correct nonce.
- chromoting.plugin.connectSandboxed(clientjid, chromoting.hostjid, '');
+ chromoting.plugin.connectSandboxed(clientjid, chromoting.hostjid);
// TODO(ajwong): This should just be feedIq();
window.setTimeout(feedIq, 1000);
} else {
@@ -65,7 +65,7 @@ function registerConnection() {
}
xhr.send('host_jid=' + encodeURIComponent(chromoting.hostjid) +
'&username=' + encodeURIComponent(chromoting.username) +
- '&password=' + encodeURIComponent(chromoting.xmppAuthToken));
+ '&password=' + encodeURIComponent(chromoting.talkToken));
setClientStateMessage("Connecting")
}
@@ -100,7 +100,7 @@ function init() {
chromoting.username = document.username;
chromoting.hostname = document.hostname;
chromoting.hostjid = document.hostjid;
- chromoting.xmppAuthToken = document.xmppAuthToken;
+ chromoting.talkToken = document.talkToken;
chromoting.connectMethod = document.connectMethod;
// Only allow https connections to the httpXmppProxy unless we're running in
@@ -132,7 +132,7 @@ function init() {
} else {
// TODO:(jamiewalch): Pass in the correct nonce.
plugin.connect(chromoting.username, chromoting.hostjid,
- chromoting.xmppAuthToken, '');
+ chromoting.talkToken, '');
}
} else {
addToDebugLog('ERROR: chromoting plugin not loaded');
« no previous file with comments | « remoting/client/appengine/main.py ('k') | remoting/client/appengine/static_files/client.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698