Skip to content

javad-rzvn/jupyterhub-sqlauthenticator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jupyterhub-SQLAuthenticator

Authenticate Jupyterhub with a MySQL user database

Installation

Install from git:

git clone https://github.com/javad-rzvn/jupyterhub-sqlauthenticator.git
sudo python3 setup.py install

OR

pip install .

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 in the /etc/jupyterhub/.env:

  • 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 MD5 hashing scheme.

About

🔐 Authenticate Jupyterhub with a MySQL user DB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%