Enverge Native Authenticator
Sponsored by Enverge.ai - Simpler, greener, cheaper AI training platform. Enverge harnesses excess green energy for powerful, cost-effective computing on GPUs, enabling environmentally friendly AI model development, training, and fine-tuning. Currently in private alpha with limited spots available.
A JupyterHub authenticator that extends the native authenticator with email notifications for user authorization.
Overview & Features
This package extends jupyterhub-nativeauthenticator with the following enhancements:
- User Registration & Admin Approval: Allows users to sign up while requiring admin approval of new accounts
- Authorization Emails: Sends notification emails to users when their accounts are approved
- Email Delivery Management:
- Integration with SendGrid for reliable email delivery
- Tracking of email delivery status to prevent duplicate notifications
- Modern UI: Customized and improved templates for authentication screens
Installation
pip install jupyterhub-enverge-nativeauthenticator
Or for development:
git clone https://github.com/Enverge-Labs/enverge_nativeauthenticator
cd enverge_nativeauthenticator
pip install -e .
Configuration
Add the following to your jupyterhub_config.py:
c.JupyterHub.authenticator_class = 'enverge_native'
# Email configuration
c.EnvergeNativeAuthenticator.sendgrid_api_key = 'your-sendgrid-api-key'
c.EnvergeNativeAuthenticator.email_sender = 'your-sender-email@example.com'
c.EnvergeNativeAuthenticator.sendgrid_template_id_authorization_email = 'your-sendgrid-template-id'
# Optional: All inherited NativeAuthenticator settings are supported
Environment Variables
You can also set these configuration options via environment variables:
SENDGRID_API_KEY: Your SendGrid API keyEMAIL_SENDER: Email address to be shown as the sender
SendGrid Templates
This authenticator uses SendGrid dynamic templates for email notifications. The templates should include:
- A
namevariable for the username
You can create and manage your email templates in the SendGrid Dynamic Templates interface.
Design Decisions
- Extending Native Authenticator: Built on top of the established JupyterHub Native Authenticator to maintain compatibility and leverage its security features.
- Optional Email Integration: Email functionality requires SendGrid but remains optional, falling back gracefully if not configured.
- Database Tracking: Uses SQLAlchemy ORM to track which users have received authorization emails, avoiding duplicate notifications.
- Pluggable Authentication: Follows JupyterHub's authentication plugin system for seamless integration.
Development
Setup a development environment:
# Clone the repository
git clone https://github.com/Enverge-Labs/enverge_nativeauthenticator
cd enverge_nativeauthenticator
# Install in development mode
pip install -e .
# Install development dependencies
pip install -e ".[test]"
License
3-Clause BSD License, same as JupyterHub.
Metadata
Release files for jupyterhub-enverge-nativeauthenticator 0.0.6
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 |
|---|---|---|---|---|
| jupyterhub_enverge_nativeauthenticator-0.0.6.tar.gz | 14.8 kB | Without provenance | Details for jupyterhub_enverge_nativeauthenticator-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jupyterhub_enverge_nativeauthenticator-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for jupyterhub_enverge_nativeauthenticator-0.0.6-py3-none-any.whl |
Total release size: 29.7 kB
Release files / jupyterhub_enverge_nativeauthenticator-0.0.6.tar.gz
| Download URL | jupyterhub_enverge_nativeauthenticator-0.0.6.tar.gz |
|---|---|
| Size | 14.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e2f9b035af9c3126ecf3998fc5f51baa1962fa02beffcc008e05f3202084799
|
|
BLAKE2b-256 checksum How to use checksums |
385af8f3f2ed13e84b6caf7d8595534b8f84ee540c23d24c793e405db5302d20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.13
|
Release files / jupyterhub_enverge_nativeauthenticator-0.0.6-py3-none-any.whl
| Download URL | jupyterhub_enverge_nativeauthenticator-0.0.6-py3-none-any.whl |
|---|---|
| Size | 14.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ea61ea6693fc781ba134b93a158d3682058a2e6f76a55f96ba72de4d858b6bc
|
|
BLAKE2b-256 checksum How to use checksums |
d44b7dff451be27531cec5d3bc2d74993d95bc7113e040e7b941dfcfa6d3cd5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.13
|
Security for jupyterhub-enverge-nativeauthenticator 0.0.6
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.