From 6ad808618de5dde767e1466e34be5e513428c20e Mon Sep 17 00:00:00 2001 From: Georgiana Dolocan Date: Thu, 16 Jan 2025 15:42:32 +0200 Subject: [PATCH] Default to allowa_all True --- tmpauthenticator/__init__.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tmpauthenticator/__init__.py b/tmpauthenticator/__init__.py index 76cf245..0a07976 100644 --- a/tmpauthenticator/__init__.py +++ b/tmpauthenticator/__init__.py @@ -81,6 +81,17 @@ def _auto_login_default(self): """ return True + @default("allow_all") + def _allow_all_default(self): + """ + If no allow config is specified, then by default nobody will have access. + Prior to JupyterHub 5.0, the opposite was true. + + Setting allow_all to True to preserve expected behavior of allowing + everyone to access the hub in a JupyterHub 5.0 setup. + """ + return True + login_service = Unicode( "Automatic Temporary Credentials", help="""