{"id":20774325,"url":"https://github.com/hugapi/hug_authentication_ldap","last_synced_at":"2025-07-02T01:36:07.731Z","repository":{"id":44865532,"uuid":"55569402","full_name":"hugapi/hug_authentication_ldap","owner":"hugapi","description":"A hug extension providing ldap based authentication support","archived":false,"fork":false,"pushed_at":"2022-12-26T20:30:07.000Z","size":562,"stargazers_count":12,"open_issues_count":4,"forks_count":2,"subscribers_count":8,"default_branch":"develop","last_synced_at":"2025-04-30T15:18:11.891Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hugapi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-06T02:17:58.000Z","updated_at":"2022-09-07T03:41:45.000Z","dependencies_parsed_at":"2023-01-31T01:15:25.445Z","dependency_job_id":null,"html_url":"https://github.com/hugapi/hug_authentication_ldap","commit_stats":null,"previous_names":["timothycrosley/hug_authentication_ldap"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/hugapi/hug_authentication_ldap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugapi%2Fhug_authentication_ldap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugapi%2Fhug_authentication_ldap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugapi%2Fhug_authentication_ldap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugapi%2Fhug_authentication_ldap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hugapi","download_url":"https://codeload.github.com/hugapi/hug_authentication_ldap/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugapi%2Fhug_authentication_ldap/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263060998,"owners_count":23407596,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T12:29:06.975Z","updated_at":"2025-07-02T01:36:07.708Z","avatar_url":"https://github.com/hugapi.png","language":"Python","readme":"hug_authentication_ldap\n===================\n\n[![PyPI version](https://badge.fury.io/py/hug_authentication_ldap.svg)](http://badge.fury.io/py/hug_authentication_ldap)\n[![Build Status](https://travis-ci.org/timothycrosley/hug_authentication_ldap.svg?branch=master)](https://travis-ci.org/timothycrosley/hug_authentication_ldap)\n[![Coverage Status](https://coveralls.io/repos/timothycrosley/hug_authentication_ldap/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/timothycrosley/hug_authentication_ldap?branch=master)\n[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://pypi.python.org/pypi/hug_authentication_ldap/)\n[![Join the chat at https://gitter.im/timothycrosley/hug](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/timothycrosley/hug?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nEasy to use LDAP based authentication support for hug:\n\n```py\nimport hug\nimport hug_authentication_ldap\n\n\nauthentication = hug_authentication_ldap.basic('myldap.server.net', 'uid={user_name},ou=people')\n\n\n@hug.get(requires=authentication)\ndef say_hello(hug_user):\n    return 'Hello {}!'.format(hug_user.name)\n```\n\nOr, for general reusable LDAP password verification within hug:\n\n```py\nimport hug\nimport hug_authentication_ldap\n\n\nldap_check = hug_authentication_ldap.verify('myldap.server.net', 'uid={user_name},ou=people')\n\n\n@hug.get()\ndef check(user_name, password):\n    if ldap_check(user_name, password):\n        return True\n\n    return False\n```\n\nInstalling hug_authentication_ldap\n===================\n\nInstalling hug_authentication_ldap is as simple as:\n\n```bash\npip3 install hug_authentication_ldap --upgrade\n```\n\nIdeally, within a virtual environment.\n\n\nWhat is hug_authentication_ldap?\n===================\n\nAn extension for hug that provides LDAP based authentication support\n\n--------------------------------------------\n\nThanks and I hope you find hug_authentication_ldap helpful!\n\n~Timothy Crosley\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugapi%2Fhug_authentication_ldap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugapi%2Fhug_authentication_ldap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugapi%2Fhug_authentication_ldap/lists"}