Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

LDAP based authentication support for hug

Project Description


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

Release History

This version
History Node


History Node


History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(4.0 kB) Copy SHA256 Hash SHA256
Source None Apr 11, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers