From 5fb6a912cd7cb0bcfa4512da5248baad1175faf5 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 26 Oct 2017 20:31:21 -0700 Subject: remove --auth option from server commands The implementation of this option contained syntax errors and did not work. For more information, see https://gitlab.com/bugseverywhere/bugseverywhere/issues/7. --- libbe/util/wsgi.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'libbe/util') diff --git a/libbe/util/wsgi.py b/libbe/util/wsgi.py index dcddcf3..62b0428 100644 --- a/libbe/util/wsgi.py +++ b/libbe/util/wsgi.py @@ -631,15 +631,6 @@ class ServerCommand (libbe.command.base.Command): name='notify', metavar='EMAIL-COMMAND', default=None)), libbe.command.Option(name='ssl', short_name='s', help='Use CherryPy to serve HTTPS (HTTP over SSL/TLS)'), - libbe.command.Option(name='auth', short_name='a', - help=('Require authentication. FILE should be a file ' - 'containing colon-separated ' - 'UNAME:USER:sha1(PASSWORD) lines, for example: ' - '"jdoe:John Doe :' - 'd99f8e5a4b02dc25f49da2ea67c0034f61779e72"'), - arg=libbe.command.Argument( - name='auth', metavar='FILE', default=None, - completion_callback=libbe.command.util.complete_path)), ]) def _run(self, **params): @@ -655,15 +646,9 @@ class ServerCommand (libbe.command.base.Command): if params['read-only']: writeable = storage.writeable storage.writeable = False - if params['auth']: - self._check_restricted_access(storage, params['auth']) - users = Users(params['auth']) + users = Users() users.load() app = self._get_app(logger=self.logger, storage=storage, **params) - if params['auth']: - app = AdminApp(app, users=users, logger=self.logger) - app = AuthenticationApp(app, realm=storage.repo, - users=users, logger=self.logger) app = UppercaseHeaderApp(app, logger=self.logger) server,details = self._get_server(params, app) details['repo'] = storage.repo -- cgit