From f395acd9caee6f4141949b587042d7e8addab0de Mon Sep 17 00:00:00 2001 From: Min RK Date: Thu, 4 Apr 2024 11:05:10 +0200 Subject: [PATCH] singleuser mixin: include check_xsrf_cookie in overrides --- jupyterhub/singleuser/mixins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyterhub/singleuser/mixins.py b/jupyterhub/singleuser/mixins.py index 19b478c5..bcbd21db 100755 --- a/jupyterhub/singleuser/mixins.py +++ b/jupyterhub/singleuser/mixins.py @@ -825,7 +825,7 @@ def patch_base_handler(BaseHandler, log=None): # but we also need to ensure BaseHandler *itself* doesn't # override the public tornado API methods we have inserted. # If they are defined in BaseHandler, explicitly replace them with our methods. - for name in ("get_current_user", "get_login_url"): + for name in ("get_current_user", "get_login_url", "check_xsrf_cookie"): if name in BaseHandler.__dict__: log.debug( f"Overriding {BaseHandler}.{name} with HubAuthenticatedHandler.{name}"