| OLD | NEW |
| 1 # Copyright 2014 The LUCI Authors. All rights reserved. | 1 # Copyright 2014 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 """Auth component configuration hooks. | 5 """Auth component configuration hooks. |
| 6 | 6 |
| 7 Application that use 'auth' component can override settings defined here by | 7 Application that use 'auth' component can override settings defined here by |
| 8 adding the following lines to appengine_config.py: | 8 adding the following lines to appengine_config.py: |
| 9 | 9 |
| 10 components_auth_UI_APP_NAME = 'My service name' | 10 components_auth_UI_APP_NAME = 'My service name' |
| 11 | 11 |
| 12 Code flow when this is used: | 12 Code flow when this is used: |
| 13 * GAE app starts and loads a module with main WSGI app. | 13 * GAE app starts and loads a module with main WSGI app. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 from .ui import ui | 62 from .ui import ui |
| 63 | 63 |
| 64 with _config_lock: | 64 with _config_lock: |
| 65 if not _config_called: | 65 if not _config_called: |
| 66 # Customize auth UI to show where it's running. | 66 # Customize auth UI to show where it's running. |
| 67 if not _config.UI_CUSTOM_CONFIG: | 67 if not _config.UI_CUSTOM_CONFIG: |
| 68 ui.configure_ui(_config.UI_APP_NAME) | 68 ui.configure_ui(_config.UI_APP_NAME) |
| 69 # Mark as successfully completed. | 69 # Mark as successfully completed. |
| 70 _config_called = True | 70 _config_called = True |
| 71 return _config | 71 return _config |
| OLD | NEW |