Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

LDAP based authentication support for hug

Project description


PyPI version Build Status Coverage Status License Join the chat at

Easy to use LDAP based authentication support for hug:

import hug
import hug_authentication_ldap

authentication = hug_authentication_ldap.basic('', 'uid={user_name},ou=people')

def say_hello(hug_user):
    return 'Hello {}!'.format(

Or, for general reusable LDAP password verification within hug:

import hug
import hug_authentication_ldap

ldap_check = hug_authentication_ldap.verify('', 'uid={user_name},ou=people')

def check(user_name, password):
    if ldap_check(user_name, password):
        return True

    return False

Installing hug_authentication_ldap

Installing hug_authentication_ldap is as simple as:

pip3 install hug_authentication_ldap --upgrade

Ideally, within a virtual environment.

What is hug_authentication_ldap?

An extension for hug that provides LDAP based authentication support

Thanks and I hope you find hug_authentication_ldap helpful!

~Timothy Crosley

Project details

Download files

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

Files for hug_authentication_ldap, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size hug_authentication_ldap-1.0.3.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page