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.9.0.tar.gz (15.9 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.9.0-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gl_mitid-1.9.0.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.11.14 Linux/6.6.113+

File hashes

Hashes for gl_mitid-1.9.0.tar.gz
Algorithm Hash digest
SHA256 126be7572f52d77808e870cf69ecdae6339709ee0ddfcf0e9422ed7584b043f7
MD5 b61e2c3c1420c06d90b01da77374251b
BLAKE2b-256 e665f7b6eedf096aaf0f77a47dee4de4fb38c08f6fa7fb5d3163d2e9ce3cadb6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gl_mitid-1.9.0-py3-none-any.whl
  • Upload date:
  • Size: 25.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.11.14 Linux/6.6.113+

File hashes

Hashes for gl_mitid-1.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9564855989417a0bde95fe3cb7824cc0b67e141da7422551d7f70378f646a4a
MD5 0430e3f1cef26eb0805af5ceb89df9c1
BLAKE2b-256 a4765a866d18d81edd756662636c08671078d11c3eac50d32225cc674a0d07ff

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