clarify some allow docs per review

This commit is contained in:
Min RK
2024-04-02 10:54:17 +02:00
parent 3e61e46497
commit 3ce2643ab7
2 changed files with 4 additions and 2 deletions

View File

@@ -130,7 +130,8 @@ By default, only the deprecated `admin` role has global `access` permissions.
## Add or remove users from the Hub ## Add or remove users from the Hub
:::{versionadded} 5.0 :::{versionadded} 5.0
`c.Authenticator.allow_existing_users` is added in 5.0 and enabled by default. `c.Authenticator.allow_existing_users` is added in 5.0 and True by default _if_ any `allowed_users` are specified.
Prior to 5.0, this behavior was not optional. Prior to 5.0, this behavior was not optional.
::: :::

View File

@@ -166,7 +166,8 @@ class Authenticator(LoggingConfigurable):
self.log.warning( self.log.warning(
"No allow config found, it's possible that nobody can login to your Hub!\n" "No allow config found, it's possible that nobody can login to your Hub!\n"
"You can set `c.Authenticator.allow_all = True` to allow any user who can login to access the Hub,\n" "You can set `c.Authenticator.allow_all = True` to allow any user who can login to access the Hub,\n"
"or e.g. `allowed_users` to a set of users who should have access." "or e.g. `allowed_users` to a set of users who should have access.\n"
"You may suppress this warning by setting c.Authenticator.any_allow_config = True."
) )
whitelist = Set( whitelist = Set(