Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A hug extension providing ldap based authentication support

License

NotificationsYou must be signed in to change notification settings

hugapi/hug_authentication_ldap

Repository files navigation

PyPI versionBuild StatusCoverage StatusLicenseJoin the chat at https://gitter.im/timothycrosley/hug

Easy to use LDAP based authentication support for hug:

importhugimporthug_authentication_ldapauthentication=hug_authentication_ldap.basic('myldap.server.net','uid={user_name},ou=people')@hug.get(requires=authentication)defsay_hello(hug_user):return'Hello {}!'.format(hug_user.name)

Or, for general reusable LDAP password verification within hug:

importhugimporthug_authentication_ldapldap_check=hug_authentication_ldap.verify('myldap.server.net','uid={user_name},ou=people')@hug.get()defcheck(user_name,password):ifldap_check(user_name,password):returnTruereturnFalse

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

About

A hug extension providing ldap based authentication support

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2026 Movatter.jp