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

Side by Side Diff: chrome/browser/resources/gaia_auth_host/authenticator.js

Issue 1066573003: cros: Use webview.addContentScripts for new Gaia SAML. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webview-content-script-incognito
Patch Set: rebase Created 5 years, 8 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 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
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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/saml/saml_browsertest.cc ('k') | chrome/browser/resources/gaia_auth_host/saml_handler.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698