OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 host gaia auth extension in an iframe. | 6 * @fileoverview An UI component to host gaia auth extension in an iframe. |
7 * After the component binds with an iframe, call its {@code load} to start the | 7 * After the component binds with an iframe, call its {@code load} to start the |
8 * authentication flow. There are two events would be raised after this point: | 8 * authentication flow. There are two events would be raised after this point: |
9 * a 'ready' event when the authentication UI is ready to use and a 'completed' | 9 * a 'ready' event when the authentication UI is ready to use and a 'completed' |
10 * event when the authentication is completed successfully. If caller is | 10 * event when the authentication is completed successfully. If caller is |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 var GAIA_ORIGIN = 'https://accounts.google.com'; | 47 var GAIA_ORIGIN = 'https://accounts.google.com'; |
48 | 48 |
49 /** | 49 /** |
50 * Supported params of auth extension. For a complete list, check out the | 50 * Supported params of auth extension. For a complete list, check out the |
51 * auth extension's main.js. | 51 * auth extension's main.js. |
52 * @type {!Array.<string>} | 52 * @type {!Array.<string>} |
53 * @const | 53 * @const |
54 */ | 54 */ |
55 var SUPPORTED_PARAMS = [ | 55 var SUPPORTED_PARAMS = [ |
56 'gaiaUrl', // Gaia url to use; | 56 'gaiaUrl', // Gaia url to use; |
| 57 'gaiaPath', // Gaia path to use without a leading slash; |
57 'hl', // Language code for the user interface; | 58 'hl', // Language code for the user interface; |
58 'email', // Pre-fill the email field in Gaia UI; | 59 'email', // Pre-fill the email field in Gaia UI; |
59 'service', // Name of Gaia service; | 60 'service', // Name of Gaia service; |
60 'continueUrl', // Continue url to use; | 61 'continueUrl', // Continue url to use; |
61 'partitionId' // Partition ID for the embedded Gaia webview; | 62 'partitionId' // Partition ID for the embedded Gaia webview; |
62 ]; | 63 ]; |
63 | 64 |
64 /** | 65 /** |
65 * Supported localized strings. For a complete list, check out the auth | 66 * Supported localized strings. For a complete list, check out the auth |
66 * extension's offline.js | 67 * extension's offline.js |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 }; | 367 }; |
367 | 368 |
368 GaiaAuthHost.SUPPORTED_PARAMS = SUPPORTED_PARAMS; | 369 GaiaAuthHost.SUPPORTED_PARAMS = SUPPORTED_PARAMS; |
369 GaiaAuthHost.LOCALIZED_STRING_PARAMS = LOCALIZED_STRING_PARAMS; | 370 GaiaAuthHost.LOCALIZED_STRING_PARAMS = LOCALIZED_STRING_PARAMS; |
370 GaiaAuthHost.AuthMode = AuthMode; | 371 GaiaAuthHost.AuthMode = AuthMode; |
371 | 372 |
372 return { | 373 return { |
373 GaiaAuthHost: GaiaAuthHost | 374 GaiaAuthHost: GaiaAuthHost |
374 }; | 375 }; |
375 }); | 376 }); |
OLD | NEW |