from .controllers.auth import Auth
from .tools import SessionExpireAtBrowserCloseTool, NotificationQueue, \
RequestLoggingTool, TaskManager
+from .services.auth import AuthManager
+from .services.access_control import ACCESS_CONTROL_COMMANDS, \
+ handle_access_control_command
from .services.exception import dashboard_exception_handler
from .settings import options_command_list, options_schema_list, \
handle_option_command
},
]
COMMANDS.extend(options_command_list())
+ COMMANDS.extend(ACCESS_CONTROL_COMMANDS)
OPTIONS = [
{'name': 'server_addr'},
if 'COVERAGE_ENABLED' in os.environ:
_cov.start()
+ AuthManager.initialize()
+
uri = self.await_configuration()
if uri is None:
# We were shut down while waiting
def handle_command(self, inbuf, cmd):
res = handle_option_command(cmd)
+ if res[0] != -errno.ENOSYS:
+ return res
+ res = handle_access_control_command(cmd)
if res[0] != -errno.ENOSYS:
return res
if cmd['prefix'] == 'dashboard set-login-credentials':
from cherrypy.test import helper
from .. import logger
-from ..controllers.auth import Auth
from ..controllers import json_error_page, generate_controller_routes
+from ..controllers.auth import Auth
from ..services.exception import dashboard_exception_handler
from ..tools import SessionExpireAtBrowserCloseTool