Skip to main content

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.

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mockdjangosaml2-0.16.0-py2-none-any.whl (16.0 kB view details)

Uploaded Python 2

File details

Details for the file mockdjangosaml2-0.16.0.tar.gz.

File metadata

  • Download URL: mockdjangosaml2-0.16.0.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.7.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.1.post1 CPython/2.7.9

File hashes

Hashes for mockdjangosaml2-0.16.0.tar.gz
Algorithm Hash digest
SHA256 bbc4b968bc85c4fabd0b3d83e00af43b9744aee3a29a7bf5006fcb9f61e3042b
MD5 a864e0cd501d3d6e1d4e138fc5199094
BLAKE2b-256 1bbd6fd1839d9db964d8d0d1e82efde02dc8b29ab0752d3bd3e1e9aff2126de1

See more details on using hashes here.

File details

Details for the file mockdjangosaml2-0.16.0-py2-none-any.whl.

File metadata

  • Download URL: mockdjangosaml2-0.16.0-py2-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.7.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.1.post1 CPython/2.7.9

File hashes

Hashes for mockdjangosaml2-0.16.0-py2-none-any.whl
Algorithm Hash digest
SHA256 282960e91330b8c4771e623b6461226a74a4e8ac4ec7a3f605da70e0190faa60
MD5 d0ad2bf05ff46e88a603720be4f77ef6
BLAKE2b-256 4260a749574562078a8399c1a01654b57da1af2aba11e3ac04629f4d48376c5c

See more details on using hashes here.

Release history Release notifications | RSS feed

0.16.1

2 files

This release

0.16.0 This release

2 files

0.10.3

1 file

0.10.2

2 files

0.10.1

1 file

0.10.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page