| 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 /** | 5 /** |
| 6 * @fileoverview An UI component to authenciate to Chrome. The component hosts | 6 * @fileoverview An UI component to authenciate to Chrome. The component hosts |
| 7 * IdP web pages in a webview. A client who is interested in monitoring | 7 * IdP web pages in a webview. A client who is interested in monitoring |
| 8 * authentication events should pass a listener object of type | 8 * authentication events should pass a listener object of type |
| 9 * cr.login.GaiaAuthHost.Listener as defined in this file. After initialization, | 9 * cr.login.GaiaAuthHost.Listener as defined in this file. After initialization, |
| 10 * call {@code load} to start the authentication flow. | 10 * call {@code load} to start the authentication flow. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 * Enum for the authorization type. | 45 * Enum for the authorization type. |
| 46 * @enum {number} | 46 * @enum {number} |
| 47 */ | 47 */ |
| 48 var AuthFlow = { | 48 var AuthFlow = { |
| 49 DEFAULT: 0, | 49 DEFAULT: 0, |
| 50 SAML: 1 | 50 SAML: 1 |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 /** | 53 /** |
| 54 * Supported Authenticator params. | 54 * Supported Authenticator params. |
| 55 * @type {!Array.<string>} | 55 * @type {!Array<string>} |
| 56 * @const | 56 * @const |
| 57 */ | 57 */ |
| 58 var SUPPORTED_PARAMS = [ | 58 var SUPPORTED_PARAMS = [ |
| 59 'gaiaUrl', // Gaia url to use; | 59 'gaiaUrl', // Gaia url to use; |
| 60 'gaiaPath', // Gaia path to use without a leading slash; | 60 'gaiaPath', // Gaia path to use without a leading slash; |
| 61 'hl', // Language code for the user interface; | 61 'hl', // Language code for the user interface; |
| 62 'email', // Pre-fill the email field in Gaia UI; | 62 'email', // Pre-fill the email field in Gaia UI; |
| 63 'service', // Name of Gaia service; | 63 'service', // Name of Gaia service; |
| 64 'continueUrl', // Continue url to use; | 64 'continueUrl', // Continue url to use; |
| 65 'frameUrl', // Initial frame URL to use. If empty defaults to gaiaUrl. | 65 'frameUrl', // Initial frame URL to use. If empty defaults to gaiaUrl. |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 Authenticator.AuthFlow = AuthFlow; | 381 Authenticator.AuthFlow = AuthFlow; |
| 382 Authenticator.AuthMode = AuthMode; | 382 Authenticator.AuthMode = AuthMode; |
| 383 Authenticator.SUPPORTED_PARAMS = SUPPORTED_PARAMS; | 383 Authenticator.SUPPORTED_PARAMS = SUPPORTED_PARAMS; |
| 384 | 384 |
| 385 return { | 385 return { |
| 386 // TODO(guohui, xiyuan): Rename GaiaAuthHost to Authenticator once the old | 386 // TODO(guohui, xiyuan): Rename GaiaAuthHost to Authenticator once the old |
| 387 // iframe-based flow is deprecated. | 387 // iframe-based flow is deprecated. |
| 388 GaiaAuthHost: Authenticator | 388 GaiaAuthHost: Authenticator |
| 389 }; | 389 }; |
| 390 }); | 390 }); |
| OLD | NEW |