GithubHelp home page GithubHelp logo

pycav / jupyterhub-raven-auth Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 2.0 56 KB

jupyterhub authenticator for the University of Cambridge Raven service.

License: BSD 3-Clause "New" or "Revised" License

Python 99.77% HTML 0.23%

jupyterhub-raven-auth's Introduction

jupyterhub-raven-auth

jupyterhub authenticator for the University of Cambridge Raven service. Written by and for the pyCav Project (Cavendish Laboratory) 2016.

Features

  • Installs as a plugin, little configuration required
  • Whitelisting using the Lookup service (e.g. Department of Physics, or by College)
  • Customisable login page (with a logo & long description of the service)

TODO

Main

  • Test JupyterHub default whitelisting with the Cambridge lookup whitelist
  • Documentation

Installation

Install using pip3.

pip3 install git+git://github.com/PyCav/jupyterhub-raven-auth.git

Configuration

Configure by adding:

c = get_config()

from raven_auth.raven_auth import RavenAuthenticator
c.JupyterHub.authenticator_class = RavenAuthenticator

c.RavenAuthenticator.description = "pyCav"
c.RavenAuthenticator.long_description = "Welcome to the pyCav Jupyterhub server."
c.RavenAuthenticator.login_logo = '/absolute/path/to/logo/file'

Whitelisting

The plugin uses the Python3 ibisclient to interface with the University Lookup Service (ULS). The jupyterhub-raven-auth plugin does not provide any configuration options to provide a username and password to access the ULS. As such, access is Anonymous by default. This requires that the server running JupyterHub be inside the Cambridge University Data Network (CUDN).

To let the plugin know that it is operating within the CUDN, use the configuration option:

c.RavenAuthenticator.inside_cudn = True

The allowed colleges are provided as a Set. So for example, to only allow Christ's College Postgraduates or members of the Department of Physics use the configuration option:

c.RavenAuthenticator.allowed_colleges = {'PHY','CHRSTPG'}

LICENCE

This code released under the BSD License.

jupyterhub-raven-auth's People

Contributors

nm523 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.