Metadata-Version: 1.1
Name: django-password-session
Version: 0.1
Summary: A reusable Django app that will invalidate all active sessions after change password.
Home-page: https://github.com/alikus/django-password-session
Author: Albert Tugushev
Author-email: albert@tugushev.ru
License: MIT License
Description: =======================
        Django Password Session
        =======================
        
        A reusable Django app that will invalidate all active sessions after change password.
        
        .. image:: https://badge.fury.io/py/django-password-session.png
           :target: http://badge.fury.io/py/django-password-session
        
        .. image:: https://api.travis-ci.org/alikus/django-password-session.png
           :target: https://travis-ci.org/alikus/django-password-session
        
        .. image:: https://coveralls.io/repos/alikus/django-password-session/badge.png?branch=master
            :target: https://coveralls.io/r/alikus/django-password-session?branch=master
        
        Installation
        ------------
        
        1. Install a package.
        
        .. code-block:: bash
        
            $ pip install django-password-session
        
        2. Add "password_session" to your INSTALLED_APPS setting:
        
        .. code-block:: python
        
            INSTALLED_APPS = (
                ...
                'password_session',
            )
        
        3. Add middleware:
        
        .. code-block:: python
        
            MIDDLEWARE_CLASSES = (
                ...
                'password_session.middleware.CheckPasswordHash',
            ),
        
        4. Make sure that you have the following settings:
        
        .. code-block:: python
        
            INSTALLED_APPS = (
                ...
                'django.contrib.auth',
                'django.contrib.contenttypes',
                'django.contrib.sessions',
            )
        
            AUTHENTICATION_BACKENDS = (
                ...
                'django.contrib.auth.backends.ModelBackend',
            )
        
            MIDDLEWARE_CLASSES = (
                ...
                'django.contrib.sessions.middleware.SessionMiddleware',
                'django.contrib.auth.middleware.AuthenticationMiddleware',
            )
        
        Settings
        --------
        Default application settings can be overriden in settings.py:
        
        .. code-block:: python
        
            PASSWORD_SESSION_PASSWORD_HASH_KEY = 'password_session_password_hash_key' #  default key stored in session
            PASSWORD_SESSION_PASSWORD_HASH_LENGTH = 4 #  default key length
        
        Requirements
        ------------
        
        * Python 2.6+ or 3+
        * Django 1.3+
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Topic :: Internet :: WWW/HTTP
