OLD | NEW |
1 # coding: utf-8 | 1 # coding: utf-8 |
2 | 2 |
3 # This Source Code is subject to the terms of the Mozilla Public License | 3 # This Source Code is subject to the terms of the Mozilla Public License |
4 # version 2.0 (the "License"). You can obtain a copy of the License at | 4 # version 2.0 (the "License"). You can obtain a copy of the License at |
5 # http://mozilla.org/MPL/2.0/. | 5 # http://mozilla.org/MPL/2.0/. |
6 | 6 |
7 import base64 | 7 import base64 |
8 from sitescripts.utils import get_config | 8 from sitescripts.utils import get_config |
9 | 9 |
10 handlers = {} | 10 handlers = {} |
(...skipping 24 matching lines...) Expand all Loading... |
35 if username == expected_username and password == expected_password: | 35 if username == expected_username and password == expected_password: |
36 return f(environ, start_response) | 36 return f(environ, start_response) |
37 | 37 |
38 realm = get_config().get("DEFAULT", "basic_auth_realm") | 38 realm = get_config().get("DEFAULT", "basic_auth_realm") |
39 start_response("401 UNAUTHORIZED", | 39 start_response("401 UNAUTHORIZED", |
40 [("WWW-Authenticate", 'Basic realm="%s"' % realm)]) | 40 [("WWW-Authenticate", 'Basic realm="%s"' % realm)]) |
41 return "" | 41 return "" |
42 | 42 |
43 import openid.web.server | 43 import openid.web.server |
44 import subscriptions.web.fallback | 44 import subscriptions.web.fallback |
| 45 import crashes.web.submitCrash |
45 import reports.web.submitReport | 46 import reports.web.submitReport |
46 import reports.web.updateReport | 47 import reports.web.updateReport |
47 import reports.web.showDigest | 48 import reports.web.showDigest |
48 import extensions.web.translationCheck | 49 import extensions.web.translationCheck |
49 import tasks.web.tasks | 50 import tasks.web.tasks |
50 import formmail.web.formmail | 51 import formmail.web.formmail |
51 import crawler.web.crawler | 52 import crawler.web.crawler |
OLD | NEW |