Skip to content

bcongdon/jupyterhub-sqlauthenticator

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Jupyterhub-SQLAuthenticator

Authenticate Jupyterhub with a MySQL user database

Installation

Run this command to install:

pip install sqlauthenticator

In your jupyter_config.py file, add or modify the following line to set the authentication method:

c.JupyterHub.authenticator_class = 'sqlauthenticator.SQLAuthenticator'

Additionally, set the following environment variables to point to your MySQL users database:

  • MYSQL_HOST - MySQL Server hostname
  • MYSQL_PORT - MySQL Server port
  • MYSQL_DB - MySQL Database name
  • MYSQL_USER - MySQL Username
  • MYSQL_PASS - MySQL Password

Usage

The database defined in MYSQL_DB should have a table called users which has columns username and password.

  • username should contain the plaintext username to be used by Jupyterhub
  • password should contain the user password hashed with the PBKDF2 hashing scheme.

About

🔐 Authenticate Jupyterhub with a MySQL user DB

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages