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

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: Rebase 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 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 * @private 641 * @private
642 */ 642 */
643 onAttemptLogin_: function(e) { 643 onAttemptLogin_: function(e) {
644 chrome.send('attemptLogin', [e.detail]); 644 chrome.send('attemptLogin', [e.detail]);
645 }, 645 },
646 646
647 /** 647 /**
648 * Invoked when the user has successfully authenticated via SAML, the 648 * Invoked when the user has successfully authenticated via SAML, the
649 * principals API was not used and the auth host needs the user to confirm 649 * principals API was not used and the auth host needs the user to confirm
650 * the scraped password. 650 * the scraped password.
651 * @param {string} email The authenticated user's e-mail.
651 * @param {number} passwordCount The number of passwords that were scraped. 652 * @param {number} passwordCount The number of passwords that were scraped.
652 * @private 653 * @private
653 */ 654 */
654 onAuthConfirmPassword_: function(passwordCount) { 655 onAuthConfirmPassword_: function(email, passwordCount) {
655 this.loading = true; 656 this.loading = true;
656 Oobe.getInstance().headerHidden = false; 657 Oobe.getInstance().headerHidden = false;
657 658
658 if (this.samlPasswordConfirmAttempt_ == 0) 659 if (this.samlPasswordConfirmAttempt_ == 0)
659 chrome.send('scrapedPasswordCount', [passwordCount]); 660 chrome.send('scrapedPasswordCount', [passwordCount]);
660 661
661 if (this.samlPasswordConfirmAttempt_ < 2) { 662 if (this.samlPasswordConfirmAttempt_ < 2) {
662 login.ConfirmPasswordScreen.show( 663 login.ConfirmPasswordScreen.show(
664 email,
663 this.samlPasswordConfirmAttempt_, 665 this.samlPasswordConfirmAttempt_,
664 this.onConfirmPasswordCollected_.bind(this)); 666 this.onConfirmPasswordCollected_.bind(this));
665 } else { 667 } else {
666 chrome.send('scrapedPasswordVerificationFailed'); 668 chrome.send('scrapedPasswordVerificationFailed');
667 this.showFatalAuthError( 669 this.showFatalAuthError(
668 loadTimeData.getString('fatalErrorMessageVerificationFailed')); 670 loadTimeData.getString('fatalErrorMessageVerificationFailed'));
669 } 671 }
670 }, 672 },
671 673
672 /** 674 /**
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 */ 966 */
965 updateDeviceId: function(data) { 967 updateDeviceId: function(data) {
966 if (!this.isNewGaiaFlow) 968 if (!this.isNewGaiaFlow)
967 return; 969 return;
968 970
969 if (data && data.deviceId) 971 if (data && data.deviceId)
970 this.gaiaAuthHost_.updateDeviceId(data.deviceId); 972 this.gaiaAuthHost_.updateDeviceId(data.deviceId);
971 }, 973 },
972 }; 974 };
973 }); 975 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698