Skip to main content

Simple abstraction layer for django.contrib.auth.signals

Project description


Simple abstraction layer for django.contrib.auth.signals <>.

Add `auth_signals_connector` to `INSTALLED_APPS`:

By defaults, `auth_signals_connector` uses `auth_signals_connector.connector`
logger to log about 'login', 'logout' and 'login failed' actions.

You could change default behaviour in your ``:
'use_defaults': True,
'on_logged_in': some_login_func,
'on_logged_out': some_logout_func,
'on_login_failed': some_loginfail_func,

If `use_defaults` is `True`, default log handlers will be used too.

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

auth-signals-connector-0.1.0.tar.gz (3.0 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page