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

Side by Side Diff: chrome/browser/resources/chromeos/login/screen_gaia_signin.js

Issue 1115993002: ChromeOS Gaia: SAML password confirmation dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Roman changes Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview Oobe signin screen implementation. 6 * @fileoverview Oobe signin screen implementation.
7 */ 7 */
8 8
9 login.createScreen('GaiaSigninScreen', 'gaia-signin', function() { 9 login.createScreen('GaiaSigninScreen', 'gaia-signin', function() {
10 // Gaia loading time after which error message must be displayed and 10 // Gaia loading time after which error message must be displayed and
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 * @private 644 * @private
645 */ 645 */
646 onAttemptLogin_: function(e) { 646 onAttemptLogin_: function(e) {
647 chrome.send('attemptLogin', [e.detail]); 647 chrome.send('attemptLogin', [e.detail]);
648 }, 648 },
649 649
650 /** 650 /**
651 * Invoked when the user has successfully authenticated via SAML, the 651 * Invoked when the user has successfully authenticated via SAML, the
652 * principals API was not used and the auth host needs the user to confirm 652 * principals API was not used and the auth host needs the user to confirm
653 * the scraped password. 653 * the scraped password.
654 * @param {string} email The authenticated user's e-mail.
654 * @param {number} passwordCount The number of passwords that were scraped. 655 * @param {number} passwordCount The number of passwords that were scraped.
655 * @private 656 * @private
656 */ 657 */
657 onAuthConfirmPassword_: function(passwordCount) { 658 onAuthConfirmPassword_: function(email, passwordCount) {
658 this.loading = true; 659 this.loading = true;
659 Oobe.getInstance().headerHidden = false; 660 Oobe.getInstance().headerHidden = false;
660 661
661 if (this.samlPasswordConfirmAttempt_ == 0) 662 if (this.samlPasswordConfirmAttempt_ == 0)
662 chrome.send('scrapedPasswordCount', [passwordCount]); 663 chrome.send('scrapedPasswordCount', [passwordCount]);
663 664
664 if (this.samlPasswordConfirmAttempt_ < 2) { 665 if (this.samlPasswordConfirmAttempt_ < 2) {
665 login.ConfirmPasswordScreen.show( 666 login.ConfirmPasswordScreen.show(
667 email,
666 this.samlPasswordConfirmAttempt_, 668 this.samlPasswordConfirmAttempt_,
667 this.onConfirmPasswordCollected_.bind(this)); 669 this.onConfirmPasswordCollected_.bind(this));
668 } else { 670 } else {
669 chrome.send('scrapedPasswordVerificationFailed'); 671 chrome.send('scrapedPasswordVerificationFailed');
670 this.showFatalAuthError( 672 this.showFatalAuthError(
671 loadTimeData.getString('fatalErrorMessageVerificationFailed')); 673 loadTimeData.getString('fatalErrorMessageVerificationFailed'));
672 } 674 }
673 }, 675 },
674 676
675 /** 677 /**
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 */ 969 */
968 updateDeviceId: function(data) { 970 updateDeviceId: function(data) {
969 if (!this.isNewGaiaFlow) 971 if (!this.isNewGaiaFlow)
970 return; 972 return;
971 973
972 if (data && data.deviceId) 974 if (data && data.deviceId)
973 this.gaiaAuthHost_.updateDeviceId(data.deviceId); 975 this.gaiaAuthHost_.updateDeviceId(data.deviceId);
974 }, 976 },
975 }; 977 };
976 }); 978 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698