
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
django-ldap-basic-auth
Advanced tools
Simple middleware that injects the Authorization header in the request after authenticating against a ldap server.
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
Simple middleware that injects the Authorization header in the request after authenticating against a ldap server
If you use BasicAuthentication in production you must ensure that your API is only available over https. You should also ensure that your API clients will always re-request the username and password at login, and will never store those details to persistent storage.
You can install django-ldap-basic-auth in 2 ways: using pip or by setup.py install
$ pip install django-ldap-basic-auth
Then modify your settings.py
INSTALLED_APPS = INSTALLED_APPS + (
'django_ldap_basic_auth',
)
AUTHENTICATION_BACKENDS = ('django_ldap_basic_auth.backends.LdapBasicAuthBackend',) + AUTHENTICATION_BACKENDS
MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + (
'django_ldap_basic_auth.middleware.InjectBasicAuthMiddleware',
)
DJANGO_LDAP_BASIC_AUTH_ACTIVATED = True
If you want to store the information in a http cookie, called HTTP_AUTHORIZATION, then put in your settings.py:
DJANGO_LDAP_BASIC_AUTH_USE_COOKIES = True
You must define a django cache backend too.
FAQs
Simple middleware that injects the Authorization header in the request after authenticating against a ldap server.
We found that django-ldap-basic-auth demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.