diff options
author | achuith <achuith@chromium.org> | 2015-09-14 09:50:53 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-14 16:51:33 +0000 |
commit | 317ba3276ca7bda6433f7f953b17e92640fb258b (patch) | |
tree | 5fe05f2c706bd9c63810e911f70ec398e17be937 /google_apis | |
parent | 8bbbc7d0509e8bd8e9ece6d8a909033638f87da8 (diff) | |
download | chromium_src-317ba3276ca7bda6433f7f953b17e92640fb258b.zip chromium_src-317ba3276ca7bda6433f7f953b17e92640fb258b.tar.gz chromium_src-317ba3276ca7bda6433f7f953b17e92640fb258b.tar.bz2 |
Credential passing is the only way for passwords now.
embedded_setup_chromeos now uses SAML api to set the password.
BUG=467778
Review URL: https://codereview.chromium.org/1243213002
Cr-Commit-Position: refs/heads/master@{#348631}
Diffstat (limited to 'google_apis')
-rw-r--r-- | google_apis/test/embedded_setup_chromeos.html | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/google_apis/test/embedded_setup_chromeos.html b/google_apis/test/embedded_setup_chromeos.html index 082c9ec..c8c7b01 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) { |