Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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.

Release History

This version
History Node


History Node


History Node


History Node


History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(16.0 kB) Copy SHA256 Hash SHA256
py2 Wheel Oct 7, 2017
(14.0 kB) Copy SHA256 Hash SHA256
Source Oct 7, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting