Skip to main content

JupyterHub Authenticator that lets users set passwords on first use

Project description

Latest PyPI version TravisCI (.org) build status GitHub Discourse Gitter

JupyterHub First Use Authenticator

A JupyterHub authenticator that helps new users set their password on their first login to JupyterHub.

Are you running a workshop from a single physical location, such as a university seminar or a user group?

JupyterHub First Use Authenticator can simplify the user set up for you. It's very useful when using transient JupyterHub instances in a single physical location. It allows multiple users to log in, but you do not have install a pre-existing authentication setup. With this authenticator, users can just pick a username and password and get to work!

Installation

You can install this authenticator with:

pip install jupyterhub-firstuseauthenticator

Once installed, configure JupyterHub to use it by adding the following to your jupyterhub_config.py file:

c.JupyterHub.authenticator_class = 'firstuseauthenticator.FirstUseAuthenticator'

Configuration

FirstUseAuthenticator.dbm_path

Path to the dbm file, or a UNIX database file such as passwords.dbm, used to store usernames and passwords. The dbm file should be put where regular users do not have read/write access to it.

This authenticator's default setting for the path to the passwords.dbm is the current directory from which JupyterHub is spawned.

FirstUseAuthenticator.create_users

Create users if they do not exist already.

When set to False, users would have to be explicitly created before they can log in. Users can be created via the admin panel or by setting whitelist / admin list.

Defaults to True.

FAQ

Why have a password DB and not use PAM ?

For security Reasons. Users are likely to set an, insecure password at login time, and you do not want a brute-force/dictionary attack to manage to login by attacking via ssh or another mean.

How can I change my password?

To change your password, you should login in your jupyterhub account, go to <your_server_ip>/hub/auth/change-password and change the password.

I'm getting an error when creating my username

Usernames cannot contain spaces or commas. Please check if your username is free of these characters.

Security

When using FirstUseAuthenticator it is advised to automatically prepend the name of the user with a known-prefix (for example jupyter). This would prevent for example, someone to log-in as root, as the created user would be jupyter-root.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file jupyterhub-firstuseauthenticator-0.14.1.tar.gz.

File metadata

  • Download URL: jupyterhub-firstuseauthenticator-0.14.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.1

File hashes

Hashes for jupyterhub-firstuseauthenticator-0.14.1.tar.gz
Algorithm Hash digest
SHA256 1dd68a43c37a81449a0b8c2bb25d381e50cf3271688bbd3f8823df900854b55b
MD5 9a859d4c65abf3786d0cb86b5ba9d618
BLAKE2b-256 601e90a40b218873dd9df7c39da5fb923ad55bb3f3be78b3aa56e75f1f356bfc

See more details on using hashes here.

File details

Details for the file jupyterhub_firstuseauthenticator-0.14.1-py3-none-any.whl.

File metadata

  • Download URL: jupyterhub_firstuseauthenticator-0.14.1-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.1

File hashes

Hashes for jupyterhub_firstuseauthenticator-0.14.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f1cf2895e019ef24c0a29f2848cf9b162fb8632835d05b3cd6e5d9e13684a3f1
MD5 ee5de9d003e92549fbeb1a1ebfbde10b
BLAKE2b-256 3133d049be951da19ee1258e7c228874385e9e462182a0e5a192a6acf154400f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page