Skip to main content

In projects that use djangosaml2 in production environment it is usefull 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.10.0.zip (16.9 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.10.0-py2-none-any.whl (16.4 kB view details)

Uploaded Python 2

File details

Details for the file mockdjangosaml2-0.10.0.zip.

File metadata

  • Download URL: mockdjangosaml2-0.10.0.zip
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mockdjangosaml2-0.10.0.zip
Algorithm Hash digest
SHA256 fd3282852099ca3d3af955380ddc3cd7a5201cd16ba07a634a0548a32483052d
MD5 ef850da3b6963db4e4b2965caedc4600
BLAKE2b-256 46985d82999a67f391ddd1e0dfadd0b3db5d5314a49719dd0b7e8ce125500048

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mockdjangosaml2-0.10.0-py2-none-any.whl
Algorithm Hash digest
SHA256 adcff774b0039328dbc365f27faabab6b2fd5660b5f2f8bc499f46f56480a3b9
MD5 878df46c803cd5213ccad42d509e734c
BLAKE2b-256 b033ea380b497f1ede133af020e42fd51d3ac22442a35492760d0360bcc4c3b6

See more details on using hashes here.

Release history Release notifications | RSS feed

0.16.1

2 files

0.16.0

2 files

0.10.3

1 file

0.10.2

2 files

0.10.1

1 file

This release

0.10.0 This release

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