Skip to content
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

Custom Authentication #13

Open
vhp1360 opened this issue Dec 19, 2016 · 1 comment
Open

Custom Authentication #13

vhp1360 opened this issue Dec 19, 2016 · 1 comment

Comments

@vhp1360
Copy link

vhp1360 commented Dec 19, 2016

Hi developers,
I tried to change jupyterhub authentication to make new password those difference of Linux users password.
according this page, could you please let me know

  1. we should work on which file?
  2. what is "SuperSecureAuthenticator" class and is it a sample? if yes we should return itself result to which function of which file?

many thanks.

@minrk
Copy link
Member

minrk commented Dec 21, 2016

we should work on which file?

any file, such as your own Python module. Authenticators can be defined in any Python module, or even in your jupyterhub_config.py if it's a small customization.

For example, if you have a mymodule.py with the class MyAuthenticator(Authenticator), your jupyterhub_config.py would contain: `c.JupyterHub.authenticator_class = 'mymodule.MyAuthenticator'.

what is "SuperSecureAuthenticator" class and is it a sample?

That is an example of a simple custom authenticator. It authenticates users where their password is the same as their username. When you write your own authenticator, you should follow a similar pattern, overriding the .authenticate method to implement your own username+password validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants