NISTAuthenticator
With NISTAuthenticator, you can authenticate JupyterHub users using a customized HTTP header.
Use Case
This may come handy if you wish to integrate JupyterHub into a system with an existing authentication system.
We can put JupyterHub behind a reverse HTTP proxy and use an authentication middleware that re-directs hub users to the system's login page. Upon successful login, the reverse HTTP proxy adds to the original request a customized HTTP header with value set to the user ID. It then forwards the request to JupyterHub and NISTAuthenticator will authenticate the user via the HTTP header and perform all the necessary actions for subsequent requests to JupyterHub and user's single-user notebook server to work.
Installation
You can install with pip:
pip install nistauthenticator
Usage
After successful installation, you can use nistauthenticator as the authenticator for JupyterHub by including the following in your JupyterHub configuration file:
c.JupyterHub.authenticator_class = 'nistauthenticator.NISTAuthenticator'
In the same JupyterHub configuration file, you can configure the name of HTTP header to use for authentication via
c.NISTAuthenticator.user_header = 'your-http-header-name'
and the logout URL can be specified via
c.NISTAuthenticator.logoutURL = 'your-logout-url'
Metadata
Release files for nistauthenticator 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nistauthenticator-0.1.0.tar.gz | 3.0 kB | Without provenance | Details for nistauthenticator-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nistauthenticator-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for nistauthenticator-0.1.0-py3-none-any.whl |
Total release size: 6.7 kB
Release files / nistauthenticator-0.1.0.tar.gz
| Download URL | nistauthenticator-0.1.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
694ca4d2fb2328b05cb518d28008e51fe5be02072212b5e0544f82e73c38c833
|
|
BLAKE2b-256 checksum How to use checksums |
1eb4ce05f0ee286277aaaf7d01b15f8fe173d9d4ddba179ca46bf0c7c177d614
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.5
|
Release files / nistauthenticator-0.1.0-py3-none-any.whl
| Download URL | nistauthenticator-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eebdd6637dfead5e7afacac09140aea70d9f662636931ac6e8b299da59bda5e5
|
|
BLAKE2b-256 checksum How to use checksums |
abae59b00d3ad6d349ce72723c6dc894ff7e0feef1e8760385a3d63be0179ada
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.5
|
Security for nistauthenticator 0.1.0
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.