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

Unified Diff: google_apis/test/embedded_setup_chromeos.html

Issue 1243213002: Credential passing is the only way for passwords now. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix browsertests Created 5 years, 4 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 | « chrome/browser/resources/gaia_auth_host/authenticator.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/test/embedded_setup_chromeos.html
diff --git a/google_apis/test/embedded_setup_chromeos.html b/google_apis/test/embedded_setup_chromeos.html
index 082c9ecc15d252d99450cba15c776c652c48e6f4..c8c7b0142b435af18e7d8bfff50f8a2120825c21 100644
--- a/google_apis/test/embedded_setup_chromeos.html
+++ b/google_apis/test/embedded_setup_chromeos.html
@@ -22,6 +22,9 @@ gaia.chromeOSLogin.registerHtml5Listener = function() {
};
window.addEventListener('message', onMessage);
window.addEventListener("popstate", function(e) { goBack(); });
+ window.postMessage({
+ type: 'gaia_saml_api',
+ call: {method: 'initialize', requestedVersion: 1}}, '/');
}
gaia.chromeOSLogin.clearOldAttempts = function() {
@@ -36,10 +39,19 @@ gaia.chromeOSLogin.attemptLogin = function(email, password) {
var msg = {
'method': 'attemptLogin',
'email': email,
- 'password': password,
};
gaia.chromeOSLogin.parent_webview_.postMessage(msg,
gaia.chromeOSLogin.parent_webview_url_);
+
+ // SAML credential passing api for password.
+ window.postMessage(
+ {type: 'gaia_saml_api',
+ call: {method: 'add',
+ token: 'token',
+ user: email,
+ passwordBytes: password,
+ keyType: 'KEY_TYPE_PASSWORD_PLAIN'}
+ }, '/');
};
gaia.chromeOSLogin.backButton = function(show) {
« no previous file with comments | « chrome/browser/resources/gaia_auth_host/authenticator.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698