Skip to content

astro-datalab/dlauthenticator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data Lab JupyterHub Authenticator

Simple authenticator for JupyterHub that allows all user logins by authenticating with the Data Lab Authorization Manager.

Installation

python setup.py install
    or
pip install dlauthenticator

Should install it. It does require the Data Lab client application and API be installed (http://github.com/noaodatalab/datalab.git).

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

c.JupyterHub.authenticator_class = 'dlauthenticator.DataLabAuthenticator'

Configuration

The only configuration option at present is a List of usernames that are not permitted to login to the notebook server. Typically this is done for admin accounts (e.g. root) or to exclude non-DataLab user accounts on the machine that would otherwise be able to login through the PAM authenticator. For example, the following can be added to the jupyterhub_config.py file:

c.DataLabAuthenticator.excluded_users = ['root','datalab']

To support our custom external authenticator the following configuration settings are required and can be configured per environment.

c.Authenticator.auth_refresh_age = 180
c.JupyterHub.tornado_settings = {
    "cookie_options": {
        "Domain": ".datalab.noirlab.edu",
        "Expires": +180
    }
}

About

Data Lab Jupyter Notebook Authenticator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages