Skip to main content

A tiny project to log login attempts. Log them only to standard logging - not the database.

Project description

build license kit format

This is a modest Django app that contains how thelab likes to log authentication for staff users. It may be useful to others, but could easily just be copied.

Install

First, install the package from PyPI.

pip install django-auth-logger

Then, add auth_logger to your Django project’s INSTALLED_APPS setting.

INSTALLED_APPS = [
    ...
    'auth_logger',
    ...
]

Usage

By default both successful and failed log-ins are logged to standard Python logging (at INFO level).

In the future we may decide to add more configuration options.

Contribution

The scope of this project is small and specific - but we welcome adding configuration settings to change behavior and meet more use cases. All configuration options should have a test to verify it works.

If we do add said configuration it will probably look something like this:

AUTH_LOGGER = {
    'LOG_ONLY_STAFF': True
}

Changelog

1.1.0

  • Log all login attempts, instead of just logins for staff users.

  • Fix bug which prevented failed login attempts from being correctly logged.

1.0.1

  • Add support for Django 2.0.

1.0.0

  • Initial release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-auth-logger-1.1.0rc1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

django_auth_logger-1.1.0rc1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file django-auth-logger-1.1.0rc1.tar.gz.

File metadata

File hashes

Hashes for django-auth-logger-1.1.0rc1.tar.gz
Algorithm Hash digest
SHA256 7f4a5780f444cef178de5de5445b7667902391c229af834aef373b9879026d6d
MD5 d49a8b9200e9e1b291093eb6ee13910a
BLAKE2b-256 266253232f1b296e56299e64345b5041b128d46caf75a071627c72f4b55650b3

See more details on using hashes here.

Provenance

File details

Details for the file django_auth_logger-1.1.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_auth_logger-1.1.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 b916c93d5bbe1092a6ebe6d561ab54754e408b207f57d6cfa46b201d73b07f90
MD5 74ffef8299ad4ad6e6cc1a57e2d7ca9d
BLAKE2b-256 4b1c3cb6301d8e6b2d34aa95540a2a07c53f2f5c980972277495b6aa6dd95e1f

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page