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.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for jupyterhub-multiauthenticator-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f4aef9ddf4eacecbc911f75ebc5fdeddf8886d8f6d5e65466d935f0374a33ba7
MD5 e6b93f3a531d82e9dfdc93f155b5bf97
BLAKE2b-256 d421dce6a1affc0ce32b3faa9408196507093d55e65c9d7884470696781d1d2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jupyterhub_multiauthenticator-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2b2d702c668248ed6df3ec8611079b2db1514b4ad4fe975cda40753057ad819b
MD5 7b4a3c6dd1a3d1d444d034453e76cdba
BLAKE2b-256 fea201ffda61359eca2e83761af2ad4fc3d7b5a7d49577fe6cbebc78ee71ca09

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