From 06d081a73b082207751124015f155ee3e75e24ac Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 24 Mar 2017 13:14:18 +0100 Subject: [PATCH] prevent warnings about security in single-user servers single-user warns if no token or password is set unless validate_security is overridden these checks are not relevant when using JupyterHub --- jupyterhub/singleuser.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jupyterhub/singleuser.py b/jupyterhub/singleuser.py index 65c69164..d55deda5 100755 --- a/jupyterhub/singleuser.py +++ b/jupyterhub/singleuser.py @@ -83,6 +83,11 @@ class JupyterHubLoginHandler(LoginHandler): handler.__class__ = type(name, (HubAuthenticatedHandler, handler.__class__), {}) return handler.get_current_user() + @classmethod + def validate_security(cls, app, ssl_options=None): + """Prevent warnings about security from base class""" + return + class JupyterHubLogoutHandler(LogoutHandler): def get(self):