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

Unified Diff: remoting/webapp/client_plugin.js

Issue 12905012: Webapp changes to support third party authentication (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add token URL validation, refactor Created 7 years, 8 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
Index: remoting/webapp/client_plugin.js
diff --git a/remoting/webapp/client_plugin.js b/remoting/webapp/client_plugin.js
index 896d0392e88ce08fac6b646db739a9d8b14d113b..a905bb0ae6c71c6a3faff93c06ef80f7178f1020 100644
--- a/remoting/webapp/client_plugin.js
+++ b/remoting/webapp/client_plugin.js
@@ -63,6 +63,7 @@ remoting.ClientPlugin.Feature = {
PAUSE_AUDIO: 'pauseAudio',
REMAP_KEY: 'remapKey',
SEND_CLIPBOARD_ITEM: 'sendClipboardItem',
+ THIRD_PARTY_AUTH: 'thirdPartyAuth',
TRAP_KEY: 'trapKey'
};
@@ -187,3 +188,12 @@ remoting.ClientPlugin.prototype.onPinFetched = function(pin) {};
* Tells the plugin to ask for the PIN asynchronously.
*/
remoting.ClientPlugin.prototype.useAsyncPinDialog = function() {};
+
+/**
+ * Sets the third party authentication token and shared secret.
+ *
+ * @param {string} token The token received from the token URL.
+ * @param {string} sharedSecret Shared secret received from the token URL.
+ */
+remoting.ClientPlugin.prototype.onThirdPartyTokenFetched =
+ function(token, sharedSecret) {};

Powered by Google App Engine
This is Rietveld 408576698