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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gl_mitid-0.0.0.tar.gz.
File metadata
- Download URL: gl_mitid-0.0.0.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.10.12 Linux/5.15.0-163-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aade56b9a492f3b975ac14b5cb6bb1fea6323c5ca8dc16fc50d55120c1faffd5
|
|
| MD5 |
fc616fcc64eb4c882345d394698484ed
|
|
| BLAKE2b-256 |
303e7d3b2be7465bd0cb892677e94fbbc848316385f0573d67c7c8f2d23c408e
|
File details
Details for the file gl_mitid-0.0.0-py3-none-any.whl.
File metadata
- Download URL: gl_mitid-0.0.0-py3-none-any.whl
- Upload date:
- Size: 26.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.10.12 Linux/5.15.0-163-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4543a4b7fc25a62bc10e1643ca1fbc5b7633c31226796ed00c0c2f3ac34df1f9
|
|
| MD5 |
ee140256be7d3677717fcf203970cd14
|
|
| BLAKE2b-256 |
4162cbdd1be89caaf25b82d1d2a77e9e51223a214bd38331496e6c5914ef2d8d
|