Skip to main content

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.


pip install mockdjangosaml2


  • in project’s

    if DEBUG:
        INSTALLED_APPS += ('mockdjangosaml2',)
        INSTALLED_APPS += ('djangosaml2',)
  • update project’s file to include separate set of patterns for DEBUG = True case:

    if settings.DEBUG:
        urlpatterns += patterns('',
            (r'^saml2/', include('mockdjangosaml2.urls')),
        urlpatterns += patterns('',
            (r'^saml2/', include('djangosaml2.urls')),
  • add mock users and their attributes to MOCK_SAML2_USERS in It should be formated as sample given in applications file.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mockdjangosaml2, version 0.16.1
Filename, size File type Python version Upload date Hashes
Filename, size mockdjangosaml2-0.16.1-py2-none-any.whl (16.0 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size mockdjangosaml2-0.16.1.tar.gz (14.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page