Skip to main content

MitID middle layer

Project description

Django MitID Auth

Module for authenticating against an OpenID backend and against a MitID backend, with common middleware to intercept requests, check path against a whitelist, and delegate to configured handler.

The auth mechanism is a bit different from the standard Django auth system, in that we don't leverage the User classes, but instead write relevant data directly to the session, which also determines whether a user is logged in. This means that we don't collide with standard login mechanisms (e.g. normal django username/password), and an admin of staff user that's logged in "the normal way" can also be logged in through our session, in essence faking a citizen login.

The Saml2 code borrows heavily from https://pypi.org/project/python3-saml-django/ (MIT Licensed). It does so in order to avoid using the default django auth system.

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

gl_mitid-1.7.0.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

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

gl_mitid-1.7.0-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

Details for the file gl_mitid-1.7.0.tar.gz.

File metadata

  • Download URL: gl_mitid-1.7.0.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.11.14 Linux/6.6.105+

File hashes

Hashes for gl_mitid-1.7.0.tar.gz
Algorithm Hash digest
SHA256 99c912fd78240df615b6918aca095040589c1f3bf2db598bfbc896cd1812e01f
MD5 71b4eb0a3d0cb04e92bd56b7c32e7067
BLAKE2b-256 e05ced34913970bfd8c589dcaa0e43e5151b5ae948166ac6904773aeb9c60d42

See more details on using hashes here.

File details

Details for the file gl_mitid-1.7.0-py3-none-any.whl.

File metadata

  • Download URL: gl_mitid-1.7.0-py3-none-any.whl
  • Upload date:
  • Size: 23.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.11.14 Linux/6.6.105+

File hashes

Hashes for gl_mitid-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16fb16fcbbe30c7ab5e7151951675423d48aeb3d58695322253ac444a2abea27
MD5 aafedd961a0f9481c4fbf4ef172ecd49
BLAKE2b-256 49878b63bf58ed1639a82e53931f9a4b949ee8cbb4d717b180e3bf47a074defa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page