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
Built Distribution
File details
Details for the file mockdjangosaml2-0.16.1.tar.gz
.
File metadata
- Download URL: mockdjangosaml2-0.16.1.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b67c82515045f98a46cdf8189cfcd4c9937d6f323cc1dc6e9a6ba08bb32b5532 |
|
MD5 | ec6a083d1c5d00b2a263d840fe0d4334 |
|
BLAKE2b-256 | 2d67a17c1d98fa7bc21d840ab32f488c6e431a3ae1df700e07f4e494d5ea444d |
File details
Details for the file mockdjangosaml2-0.16.1-py2-none-any.whl
.
File metadata
- Download URL: mockdjangosaml2-0.16.1-py2-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ec29f0e19c9ea6362971ebbcf87a77869ca0e5494eedccf1e27a2fe54c0da0b |
|
MD5 | bb9459c510b5f4dbf66893b7f50e859b |
|
BLAKE2b-256 | 1a96f7edb0f72dbc8e4a29d369b00512acb339c948de8605d065384ad3e4fa28 |