| 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 """This module defines Auth Server frontend url handlers.""" | 5 """This module defines Auth Server frontend url handlers.""" |
| 6 | 6 |
| 7 import os | 7 import os |
| 8 import base64 | 8 import base64 |
| 9 | 9 |
| 10 import webapp2 | 10 import webapp2 |
| 11 | 11 |
| 12 from google.appengine.api import app_identity | 12 from google.appengine.api import app_identity |
| 13 from google.appengine.api import users | 13 from google.appengine.api import users |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 env_callback=get_additional_ui_environment) | 410 env_callback=get_additional_ui_environment) |
| 411 template.bootstrap({'auth_service': TEMPLATES_DIR}) | 411 template.bootstrap({'auth_service': TEMPLATES_DIR}) |
| 412 | 412 |
| 413 # Add a fake admin for local dev server. | 413 # Add a fake admin for local dev server. |
| 414 if utils.is_local_dev_server(): | 414 if utils.is_local_dev_server(): |
| 415 auth.bootstrap_group( | 415 auth.bootstrap_group( |
| 416 auth.ADMIN_GROUP, | 416 auth.ADMIN_GROUP, |
| 417 [auth.Identity(auth.IDENTITY_USER, 'test@example.com')], | 417 [auth.Identity(auth.IDENTITY_USER, 'test@example.com')], |
| 418 'Users that can manage groups') | 418 'Users that can manage groups') |
| 419 return webapp2.WSGIApplication(get_routes(), debug=debug) | 419 return webapp2.WSGIApplication(get_routes(), debug=debug) |
| OLD | NEW |