boldprogressives / django-htauth Goto Github PK
View Code? Open in Web Editor NEWA Django auth backend that uses credentials stored in an .htpasswd file.
License: Other
A Django auth backend that uses credentials stored in an .htpasswd file.
License: Other
Right now the library only reads from htpasswd files; it can't write to them when you add a new user through the Django admin.
This is arguably a feature.
However, it should be possible to write to the htpasswd files if you want to, maybe with a setting.
The library should be able to read .htgroup
files as well as .htpasswd
files. Upon successful login it would look through any .htgroup
files that have been configured in settings.py
and assign local Django auth.Groups
to the user.
Open questions:
Possibly the different behaviors here could be configurable settings.
Right now when a user logs in through the htauth backend, she's marked as both staff and superuser.
Instead (particularly after implementing htgroup support, #1) the user should not be marked as a superuser -- except, perhaps, if the user is in some specially-flagged htgroup entry that denotes superuser status.
I think the user should still be marked as staff though. Or possibly this behavior should be a configurable settings, HTAUTH_USERS_ARE_STAFF = True
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.