Giter Site home page Giter Site logo

django-htauth's People

Contributors

ejucovy avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

brad

django-htauth's Issues

Writing to htpasswd files

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.

Read htgroup files

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:

  • Should it create these groups if they don't exist?
  • Should it assign groups to the user on every login, or only on first login (i.e. if the user itself is being newly created)?

Possibly the different behaviors here could be configurable settings.

Don't always make every htauth user a superuser

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.