Metadata-Version: 2.0
Name: mockdjangosaml2
Version: 0.16.1
Summary: Django application that mocks functionality of djangosaml2 app for testing and development purposes.
Home-page: http://github.com/darbula/mockdjangosaml2
Author: Damir Arbula
Author-email: damir.arbula@gmail.com
License: BSD
Platform: Windows
Platform: Linux
Platform: Mac OSX
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Security
Requires-Dist: Django (>=1.4)

Mock djangosaml2
================
In projects that use ``djangosaml2`` in production environment it is useful to have a mockup authentication system that can be used in development and testing environments i.e. when ``DEBUG = True``.

Install
-------
``pip install mockdjangosaml2``

Usage
-----
* in project's ``settings.py``::

    if DEBUG:
        INSTALLED_APPS += ('mockdjangosaml2',)
    else:
        INSTALLED_APPS += ('djangosaml2',)

* update project's ``urls.py`` file to include separate set of patterns for ``DEBUG = True`` case::

    if settings.DEBUG:
        urlpatterns += patterns('',
            (r'^saml2/', include('mockdjangosaml2.urls')),
        )
    else:
        urlpatterns += patterns('',
            (r'^saml2/', include('djangosaml2.urls')),
        )

* add mock users and their attributes to ``MOCK_SAML2_USERS`` in ``settings.py``. It should be formated as sample given in applications ``settings.py`` file.


