OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <include src="saml_handler.js"> | 5 <include src="saml_handler.js"> |
6 | 6 |
7 /** | 7 /** |
8 * @fileoverview An UI component to authenciate to Chrome. The component hosts | 8 * @fileoverview An UI component to authenciate to Chrome. The component hosts |
9 * IdP web pages in a webview. A client who is interested in monitoring | 9 * IdP web pages in a webview. A client who is interested in monitoring |
10 * authentication events should pass a listener object of type | 10 * authentication events should pass a listener object of type |
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 password: this.password_ || '', | 564 password: this.password_ || '', |
565 authCode: this.oauth_code_, | 565 authCode: this.oauth_code_, |
566 usingSAML: this.authFlow == AuthFlow.SAML, | 566 usingSAML: this.authFlow == AuthFlow.SAML, |
567 chooseWhatToSync: this.chooseWhatToSync_, | 567 chooseWhatToSync: this.chooseWhatToSync_, |
568 skipForNow: this.skipForNow_, | 568 skipForNow: this.skipForNow_, |
569 sessionIndex: this.sessionIndex_ || '', | 569 sessionIndex: this.sessionIndex_ || '', |
570 trusted: this.trusted_, | 570 trusted: this.trusted_, |
571 deviceId: this.deviceId_ || '' | 571 deviceId: this.deviceId_ || '' |
572 } | 572 } |
573 })); | 573 })); |
| 574 this.clearCredentials_(); |
574 }; | 575 }; |
575 | 576 |
576 /** | 577 /** |
577 * Invoked when |samlHandler_| fires 'insecureContentBlocked' event. | 578 * Invoked when |samlHandler_| fires 'insecureContentBlocked' event. |
578 * @private | 579 * @private |
579 */ | 580 */ |
580 Authenticator.prototype.onInsecureContentBlocked_ = function(e) { | 581 Authenticator.prototype.onInsecureContentBlocked_ = function(e) { |
581 if (this.insecureContentBlockedCallback) { | 582 if (this.insecureContentBlockedCallback) { |
582 this.insecureContentBlockedCallback(e.detail.url); | 583 this.insecureContentBlockedCallback(e.detail.url); |
583 } else { | 584 } else { |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 Authenticator.AuthMode = AuthMode; | 747 Authenticator.AuthMode = AuthMode; |
747 Authenticator.SUPPORTED_PARAMS = SUPPORTED_PARAMS; | 748 Authenticator.SUPPORTED_PARAMS = SUPPORTED_PARAMS; |
748 | 749 |
749 return { | 750 return { |
750 // TODO(guohui, xiyuan): Rename GaiaAuthHost to Authenticator once the old | 751 // TODO(guohui, xiyuan): Rename GaiaAuthHost to Authenticator once the old |
751 // iframe-based flow is deprecated. | 752 // iframe-based flow is deprecated. |
752 GaiaAuthHost: Authenticator, | 753 GaiaAuthHost: Authenticator, |
753 Authenticator: Authenticator | 754 Authenticator: Authenticator |
754 }; | 755 }; |
755 }); | 756 }); |
OLD | NEW |