-
Notifications
You must be signed in to change notification settings - Fork 798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document use of Native authenticator #1398
Comments
In my case I just want to do some work with Jupyter and JupyterHub and I have a kubernetes cluster. So although the number of users will be small (in the immediate future, only me), the k8s setup is the most straight forward except for the fact the LDAP or OAuth isn't reasonable. This would be nice to have and while I've looked through the helm chart and JupyterHub to try and figure it out, at least some simple docs to point me in the right direction would be very useful. |
Is there anyone having used native authenticator on z2jh? Just trying it out and reporting the situation would be helpful! |
NativeAuthenticator is already installed in the hub image:
All I did was to add the following line under hub:
extraConfig: |
c.JupyterHub.authenticator_class = 'nativeauthenticator.NativeAuthenticator' With that I can use all the functionality of the NativeAuthenticator. |
@elcombato thanks for sharing this with us! |
This is the NativeAuthenticator configuration I am currently using, hub:
config:
JupyterHub:
authenticator_class: nativeauthenticator.NativeAuthenticator
admin_access: false
Authenticator:
admin_users:
- admin1
NativeAuthenticator:
enable_signup: true
minimum_password_length: 10
check_common_password: true
ask_email_on_signup: false
allow_2fa: false After having played around with the values a bit, I would say that everything works as expected. Setting this up wasn't very straightforward (for someone who never deployed a JupyterHub before), so I would indeed also love to see a few hints about the NativeAuthenticator in the docs! 😉 |
This worked perfectly for me, Thanks! |
I had to add somethings to extraConfig:
00_nativeauthenticator_templates: |
import os, nativeauthenticator
c.JupyterHub.template_paths = [f"{os.path.dirname(nativeauthenticator.__file__)}/templates/"] |
Hi there! I'm interested in using the NativeAuthenticator for a small workshops deployment. Do I need to backup/setup any other volumes on the Hub pod to keep credentials stored across restarts of the hub container? Or does NativeAuthenticator integrate this with the default hub db? |
Document use of Native authenticator
@leportella have made the Native authenticator as described in her blog post about it.
I think this is a very useful authenticator that is far easier to get started with in some scenarios. For example, consider a class instructor that wants to provide access specifically for their students but not all of the university or similar. In my case I wanted to provide access for my school but not all of the 100+ schools at one time during a school event.
Document use of Native authenticator
PR Work to be done
The text was updated successfully, but these errors were encountered: