Django application that mocks functionality of djangosaml2 app for testing and development purposes.
Project description
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.
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
mockdjangosaml2-0.16.0.tar.gz
(14.0 kB
view hashes)
Built Distribution
Close
Hashes for mockdjangosaml2-0.16.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 282960e91330b8c4771e623b6461226a74a4e8ac4ec7a3f605da70e0190faa60 |
|
MD5 | d0ad2bf05ff46e88a603720be4f77ef6 |
|
BLAKE2b-256 | 4260a749574562078a8399c1a01654b57da1af2aba11e3ac04629f4d48376c5c |