Metadata-Version: 1.1
Name: hug-authentication-ldap
Version: 1.0.3
Summary: LDAP based authentication support for hug
Home-page: https://github.com/timothycrosley/hug_authentication_ldap
Author: Timothy Crosley
Author-email: timothy.crosley@gmail.com
License: MIT
Description: hug\_authentication\_ldap
        =========================
        
        |PyPI version| |Build Status| |Coverage Status| |License| |Join the chat
        at https://gitter.im/timothycrosley/hug|
        
        Easy to use LDAP based authentication support for hug:
        
        .. code:: py
        
            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)
        
        Or, for general reusable LDAP password verification within hug:
        
        .. code:: py
        
            import hug
            import hug_authentication_ldap
        
        
            ldap_check = hug_authentication_ldap.verify('myldap.server.net', 'uid={user_name},ou=people')
        
        
            @hug.get()
            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:
        
        .. code:: bash
        
            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
        
        .. |PyPI version| image:: https://badge.fury.io/py/hug_authentication_ldap.svg
           :target: http://badge.fury.io/py/hug_authentication_ldap
        .. |Build Status| image:: https://travis-ci.org/timothycrosley/hug_authentication_ldap.svg?branch=master
           :target: https://travis-ci.org/timothycrosley/hug_authentication_ldap
        .. |Coverage Status| image:: https://coveralls.io/repos/timothycrosley/hug_authentication_ldap/badge.svg?branch=master&service=github
           :target: https://coveralls.io/github/timothycrosley/hug_authentication_ldap?branch=master
        .. |License| image:: https://img.shields.io/github/license/mashape/apistatus.svg
           :target: https://pypi.python.org/pypi/hug_authentication_ldap/
        .. |Join the chat at https://gitter.im/timothycrosley/hug| image:: https://badges.gitter.im/Join%20Chat.svg
           :target: https://gitter.im/timothycrosley/hug?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
        
Keywords: Python,Python3
Platform: UNKNOWN
Classifier: Development Status :: 6 - Mature
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Utilities
Requires: hug
Requires: ldap3
