Bug 674768 - Making auth default off. c=rtiler, r=telliott
authorToby Elliott <telliott@mozilla.com>
Sat, 30 Jul 2011 17:46:17 -0700
changeset 501 ee2e07bec753
parent 500 ac9a769b7d31
child 502 0dceeda82919
push id93
push usertelliott@mozilla.com
push dateSun, 31 Jul 2011 00:47:09 +0000
reviewerstelliott
bugs674768
Bug 674768 - Making auth default off. c=rtiler, r=telliott
syncserver/__init__.py
--- a/syncserver/__init__.py
+++ b/syncserver/__init__.py
@@ -32,25 +32,27 @@
 # the provisions above, a recipient may use your version of this file under
 # the terms of any one of the MPL, the GPL or the LGPL.
 #
 # ***** END LICENSE BLOCK *****
 """
 Application entry point.
 """
 from services.baseapp import set_app
+from services.wsgiauth import Authentication
 from syncserver.controllers import MainController
 
 # XXX alternatively we should use Paste composite feature here
 from syncreg.wsgiapp import urls as reg_urls, controllers as reg_controllers
 from syncstorage.wsgiapp import (StorageServerApp,
                                  controllers as storage_controllers,
                                  urls as storage_urls)
 
 
 urls = [('GET', '/weave-delete-account', 'main', 'delete_account_form'),
         ('POST', '/weave-delete-account', 'main', 'do_delete_account')]
 
 urls = urls + reg_urls + storage_urls
 reg_controllers.update(storage_controllers)
 reg_controllers['main'] = MainController
 
-make_app = set_app(urls, reg_controllers, klass=StorageServerApp)
+make_app = set_app(urls, reg_controllers, klass=StorageServerApp,
+                   auth_class=Authentication)