Metadata-Version: 1.1
Name: auth-signals-connector
Version: 0.1.0
Summary: Simple abstraction layer for django.contrib.auth.signals
Home-page: https://github.com/e0ne/auth-signals-connector
Author: Ivan Kolodyazhny
Author-email: e0ne@e0ne.info
License: The MIT License (MIT)

Copyright (c) 2014 Ivan Kolodyazhny

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Description: django-auth-signals
        ===================
        
        Simple abstraction layer for django.contrib.auth.signals <https://docs.djangoproject.com/en/dev/ref/contrib/auth/#module-django.contrib.auth.signals>.
        
        Usage
        -----
        Add `auth_signals_connector` to `INSTALLED_APPS`:
        ```
        INSTALLED_APPS = (
            'django.contrib.admin',
            'django.contrib.auth',
            'django.contrib.contenttypes',
            'django.contrib.sessions',
            'django.contrib.messages',
            'django.contrib.staticfiles',
            'auth_signals_connector'
        )
        ```
        
        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 `settings.py`:
        ```
        AUTH_SIGNALS = {
            '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.
        
Keywords: django,auth,signals,login,logout
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
