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.6.0.tar.gz (15.1 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.6.0-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gl_mitid-1.6.0.tar.gz
  • Upload date:
  • Size: 15.1 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.6.0.tar.gz
Algorithm Hash digest
SHA256 f6e337b77563e84f7506441052851c207130978e8c1bb9937e160abc100abd13
MD5 855d32e0b0a2bad6e9a1c6609dd61e42
BLAKE2b-256 d5350ff9fcb37777280524e602f707e3f0891e88d2077d93560bd4bfa9119216

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gl_mitid-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 24.3 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.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aae691a76982c3115c9fb1e8c8ba73201cf950cc95443bd6915fbcc371d20d91
MD5 89de2a24f4a61e97376c8f75e4a37a27
BLAKE2b-256 6d7941c48bd1c54bcbf2b23025d046c6a845ca79d3265766fa9af6f839fccf50

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