Skip to main content

Authenticator multiplexer for JupyterHub

Project description

OAuthAuthenticator + LDAP Autenticator ++... = MultiAuthenticator :heart:

The MultiAuthenticator is multiplexer authenticator class that allows to use more than one authentication option with JupyterHub.

Installation

$ pip install git+https://github.com/idiap/multiauthenticator

Configuration

The MultiAuthenticator class only has one configuration point: authenticators.

This property shall contain a list of tuple with the following content:

  • Authenticator class (i.e. GitLabAuthenticator, LDAPAuthenticator)
  • The URL scope (i.e. /gitlab, /ldap)
  • A dictionary with the authenticator's configuration

As an example:

from oauthenticator.github import GitHubOAuthenticator
from oauthenticator.google import GoogleOAuthenticator
from oauthenticator.gitlab import GitLabOAuthenticator
from jupyterhub.auth import PAMAuthenticator

c.MultiAuthenticator.authenticators = [
    (GitHubOAuthenticator, '/github', {
        'client_id': 'XXXX',
        'client_secret': 'YYYY',
        'oauth_callback_url': 'https://jupyterhub.example.com/hub/github/oauth_callback'
    }),
    (GoogleOAuthenticator, '/google', {
        'client_id': 'xxxx',
        'client_secret': 'yyyy',
        'oauth_callback_url': 'https://jupyterhub.example.com/hub/google/oauth_callback'
    }),
    (GitLabOAuthenticator, '/gitlab', {
        "client_id": "ZZZZ",
        "client_secret": "AAAAA",
        "oauth_callback_url": "https://jupyterhub.example.com/hub/gitlab/oauth_callback",
        "gitlab_url": "https://gitlab.example.com"
    }),
    (PAMAuthenticator, "/pam", {"service_name": "PAM"}),
]

c.JupyterHub.authenticator_class = 'multiauthenticator.multiauthenticator.MultiAuthenticator'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyterhub-multiauthenticator-0.1.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file jupyterhub-multiauthenticator-0.1.1.tar.gz.

File metadata

File hashes

Hashes for jupyterhub-multiauthenticator-0.1.1.tar.gz
Algorithm Hash digest
SHA256 233ff4ecba8e11e8dadfd2e5f103bd5143fa4e807da768fc7d34678ba69838a0
MD5 b387a7916e026cd50c3cee0ddb592b0c
BLAKE2b-256 25fce0c50e5693241762fa4b95d7c2adbd241eb7ea3960166453ace0392b0bb5

See more details on using hashes here.

File details

Details for the file jupyterhub_multiauthenticator-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyterhub_multiauthenticator-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 95081a8cd065ccd067e3c82831c098daa8c6a0234a7e8019e552579419f5b7ff
MD5 6ad2cf5df944c73145defa8f4651f4c1
BLAKE2b-256 76135731517ed14942789d8cc744a5860d0074bdd01d5a77ced1547b164dfdeb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page