Skip to main content

Latest PyPI version GitHub Workflow Status - Test 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.

Metadata

Release files for jupyterhub-firstuseauthenticator 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jupyterhub-firstuseauthenticator 1.1.1
File Size Uploaded Provenance
jupyterhub_firstuseauthenticator-1.1.1.tar.gz 11.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for jupyterhub-firstuseauthenticator 1.1.1
File Interpreter ABI Platform
jupyterhub_firstuseauthenticator-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 21.4 kB

Release files / jupyterhub_firstuseauthenticator-1.1.1.tar.gz

Download URL jupyterhub_firstuseauthenticator-1.1.1.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
638972df0cf293a5455fa8b0603d41cc054e07d8a49f091417d0d8a36035f32b
BLAKE2b-256 checksum
How to use checksums
17c53fe60733217a17628cd13a5be838f6fff7491b6fbeb3190fc4e4f2a9bac8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / jupyterhub_firstuseauthenticator-1.1.1-py3-none-any.whl

Download URL jupyterhub_firstuseauthenticator-1.1.1-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
39dc6031e46d0567f2033c126388832e2739a672a063add2c84e724b35577a43
BLAKE2b-256 checksum
How to use checksums
60a3befdc4b8c264953225749ed8f351eaa1805483f247f7653238bf3add2d24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Security for jupyterhub-firstuseauthenticator 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page