LDAP based authentication support for hug
Project description
hug_authentication_ldap
Easy to use LDAP based authentication support for hug:
import hug
import hug_authentication_ldap
authentication = hug_authentication_ldap.basic('myldap.server.net', 'uid={user_name},ou=people')
@hug.get(requires=authentication)
def say_hello(hug_user):
return 'Hello {}!'.format(hug_user.name)
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.
Source Distribution
Close
Hashes for hug_authentication_ldap-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19d1d74664173b3e9ba81a0ab7148fefe2ac6844ef009a3e48299d95d7f21972 |
|
MD5 | ba6857af903a239b080a2925f26d7b5c |
|
BLAKE2b-256 | 7397d88bcd64c7f98c223eb11a1d491f045722add3d8101866d50addd0eabaa9 |