Unable to Use NativeAuthenticator with Signup Option

Hi everyone,

I’m trying to set up JupyterHub with the NativeAuthenticator for user authentication, and I’ve configured the signup options as follows:

c.JupyterHub.authenticator_class = "nativeauthenticator.NativeAuthenticator"
# c.Authenticator.allowed_users = {"admin"}
c.Authenticator.admin_users = {"admin"}
c.NativeAuthenticator.open_signup = False
c.NativeAuthenticator.enable_signup = True

However, I’m facing an issue where the signup feature doesn’t seem to work as expected. Specifically:

  • If I uncomment the allowed_users line the admin can sign in but nobody else can, even when authorized by the admin

  • If I keep the allowed_users line commented not even the admin can sign.

Does anyone have experience with this setup or suggestions on how to resolve this issue?

If you already know a list of users that will use your JupyterHub instance, you will need to provide all those usernames in the allowd_users set. In you dont know the users list, you will have to use c.Authenticator.allow_all = True so that Authenticator will allow any authenticated user to use Hub.

2 Likes