Skip to main content

Temporary JupyterHub Authenticator

Simple authenticator for JupyterHub that gives anyone who visits the home page a user account without having to log in using any UI at all. It also spawns a single-user server and directs the user to it immediately, without them having to press a button.

Built primarily to help run tmpnb with JupyterHub.

Installation

pip install jupyterhub-tmpauthenticator

Should install it. It has no additional dependencies beyond JupyterHub.

You can then use this as your authenticator by adding the following line to your jupyterhub_config.py:

c.JupyterHub.authenticator_class = "tmp"

Configuration

tmpauthenticator does not have a lot of configurable knobs, but will respect many relevant config options in the base JupyterHub Authenticator class. Here are a few that are particularly useful.

TmpAuthenticator.auto_login

By default, tmpauthenticator will automatically log the user in as soon as they hit the landing page of the JupyterHub, without showing them any UI. This behavior can be turned off by setting TmpAuthenticator.auto_login to False, allowing a home page to be shown. There will be a Sign in button here that will automatically authenticate the user.

c.TmpAuthenticator.auto_login = False

TmpAuthenticator.login_service

If auto_login is set to False, the value of TmpAuthenticator.login_service will determine the text shown next to Sign in in the default home page. It defaults to Automatic Temporary Credentials, so the button will read as Sign in with Automatic Temporary Credentials`.

c.TmpAuthenticator.auto_login = False
c.TmpAuthenticator.login_service = "your inherent worth as a human being"

Metadata

Release files for jupyterhub-tmpauthenticator 1.0.0

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-tmpauthenticator 1.0.0
File Size Uploaded
jupyterhub-tmpauthenticator-1.0.0.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jupyterhub-tmpauthenticator 1.0.0
File Interpreter ABI Platform
jupyterhub_tmpauthenticator-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.4 kB

Release files / jupyterhub-tmpauthenticator-1.0.0.tar.gz

Download URL jupyterhub-tmpauthenticator-1.0.0.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ed3b8060fea645f7ec64bf8ef80320b791c1bba3e1c0b623e40f17f039cc7e5d
BLAKE2b-256 checksum
How to use checksums
ef265a2c77cdcbe0e160630a6e7bcb36d0dd6fab86c385faec0479833c1d2879
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.3

Release files / jupyterhub_tmpauthenticator-1.0.0-py3-none-any.whl

Download URL jupyterhub_tmpauthenticator-1.0.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5358d6a25b9d500a77720ae798d63669d02ac83bd5f563da485032c8d56d164
BLAKE2b-256 checksum
How to use checksums
604b4e8c11bf9ab8e9a60fe59c094835d85bf9fd16eaace92f6a5d7bd19cd280
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.3

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.6

1 release file

0.5

2 release files

0.4

2 release files

0.3

2 release files

0.2

2 release files

0.1

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