diff --git a/jupyter_server/auth/utils.py b/jupyter_server/auth/utils.py index 86d57070a8..999d2f0d7e 100644 --- a/jupyter_server/auth/utils.py +++ b/jupyter_server/auth/utils.py @@ -63,3 +63,14 @@ def match_url_to_resource(url, regex_mapping=None): pattern = re.compile(regex) if pattern.fullmatch(url): return auth_resource + + +def warn_disabled_authorization(): + """DEPRECATED, does nothing""" + import warnings + + warnings.warn( + "jupyter_server.auth.utils.warn_disabled_authorization is deprecated", + DeprecationWarning, + stacklevel=2, + )