Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

[![Latest PyPI version](https://img.shields.io/pypi/v/jupyterhub-firstuseauthenticator?logo=pypi)](https://pypi.python.org/pypi/jupyterhub-firstuseauthenticator) [![TravisCI build status](https://img.shields.io/travis/com/jupyterhub/firstuseauthenticator?logo=travis)](https://travis-ci.com/jupyterhub/firstuseauthenticator) [![GitHub](https://img.shields.io/badge/issue_tracking-github-blue?logo=github)](https://github.com/jupyterhub/jupyterhub-firstuseauthenticator/issues) [![Discourse](https://img.shields.io/badge/help_forum-discourse-blue?logo=discourse)](https://discourse.jupyter.org/c/jupyterhub) [![Gitter](https://img.shields.io/badge/social_chat-gitter-blue?logo=gitter)](https://gitter.im/jupyterhub/jupyterhub)

# JupyterHub First Use Authenticator #

A [JupyterHub](https://jupyterhub.readthedocs.io) 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:

`bash pip install jupyterhub-ndapfirstuseauthenticator `

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

`python c.JupyterHub.authenticator_class = 'ndapfirstuseauthenticator.FirstUseAuthenticator' `

## Configuration ##

### FirstUseAuthenticator.dbm_path ###

Path to the [dbm](https://docs.python.org/3.5/library/dbm.html) 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. # jupyterhub-ndapauthenticator

Metadata

Release files for jupyterhub-ndapfirstuseauthenticator 0.14.2.dev0

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-ndapfirstuseauthenticator 0.14.2.dev0
File Size Uploaded
jupyterhub-ndapfirstuseauthenticator-0.14.2.dev0.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jupyterhub-ndapfirstuseauthenticator 0.14.2.dev0
File Interpreter ABI Platform
jupyterhub_ndapfirstuseauthenticator-0.14.2.dev0-py3-none-any.whl Python 3 none any Details

Total release size: 14.2 kB

Release files / jupyterhub-ndapfirstuseauthenticator-0.14.2.dev0.tar.gz

Download URL jupyterhub-ndapfirstuseauthenticator-0.14.2.dev0.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c3235cd5b7d29d59876ce4aa575d7c4f5f3844f4dac538510aaaedb29ebbdeb4
BLAKE2b-256 checksum
How to use checksums
e81bf61f7dbcccfd57a6947ecb4226cf68374efbe456f07e4a4bd9c5a9ef5830
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.6

Release files / jupyterhub_ndapfirstuseauthenticator-0.14.2.dev0-py3-none-any.whl

Download URL jupyterhub_ndapfirstuseauthenticator-0.14.2.dev0-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e316cd2d001d7b94d739ff6fa3886acaa8fb7b47faa36980b3a15113f09298b0
BLAKE2b-256 checksum
How to use checksums
0a08def94110362f0d6662985580222a690de5eead076f2f37498030da240883
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.14.2.dev0 This release

2 release files

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