Git Product home page Git Product logo

cerberos's People

Contributors

adrianribao avatar jlovison avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cerberos's Issues

Review docs

I need some native English to review the docs since English is not my first language.

support for projects which don't use django "sites" framework

I do not use Django "sites" framework (I don't need it and I don't want to add it into INSTALLED_APPS). If I try to run my django project with cerberos installed, I got CommandError with this message:

"cerberos.failedaccessattempt: 'site' has a relation with model <class 'django.contrib.sites.models.Site'>, which has either not been installed or is abstract.".

Feature request: Persistent FailedLogins

A user-friendly approach is setting a fairly low timeout for a FailedLogin, but when the timeout has expired, currently the app deletes the FailedLogin object.

I imagine that keeping these objects around on a more permanent basis would be useful for security reviews, and spotting trends by "suspicious" ips that should get blocked at the firewall.

What do you think about adding a BooleanField on the model like:

expired = models.BooleanField(verbose_name=_(u'Expired'), default=False, 
            help_text=_(u'Indicates if the timeout has expired.'))

When the timeout has passed, just set

failed_access.expired = True
failed_access.save()

instead of deleting it (line 37 in decorators.py), and then .exclude(expired=True) from the queryset when checking for failed logins (line 30 in decorators.py)?

I could whip up the code for this in the project, but setting up the migrations for the model is going to be a pain without the project setup, and don't want to end up committing a half-implemented changeset.

django.conf.urls.defaults is deprecated

Apps using cerberos 0.2.0 currently raise a DeprecationWarning, which is seen on every run of a test suite of any project using Cerberos. I think you just need to change line 2 from
from django.conf.urls.defaults import *
to
from django.conf.urls import *

Thanks,

Andy

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.