Commit 8b72d7c
authored
Feature: PKI for JWT (#24)
* [feat] Add support for PKI algorithms when signing JWT
* [feat] Add config options for key-pair and the passphrase for private key
* [docs] Update docstrings
* [refactor] Fix error codes and updated them with the latest changes
* [feat] Add cryptography dependency to load encrypted private keys if there's a passphrase
* [refactor] Separate error handling on different config options: algorithm, secret, etc.
* [test] Add parametrized tests for PKI changes for signing JWT
* [refactor] Add type-checking to prevent TypeErrors if passphrase is passed as bytes
* [refactor] Remove default_backend, because the parameter is ignored (probably obsolete)
* [docs] Convert and update readme and authors
* [docs] Add instructions for enabling PKI for JWT and install cryptography dep.
* [tools] Update setup.py to include extra requirements (cryptography)
* [tools] Update version to 3.3.0
* [tools] Fix readme file ext
* [tools] pysaml2 already installs cryptography package
* [refactor] JWT_ALGORITHM decides which algorithm to use if all fields are present
* [docs] Update readme to reflect changes
* [docs] Update explanations section with a table containing extra info like data type, default value and example(s)
* [refactor] Extract validations into separate functions and address comments
* [docs] Update readme with signing algorithm and more detailed instructions
* [refactor] Fix error message
* [refactor] Make errors more generic
* [refactor] Remove unnecessary code and comments
* [refactor] Remove unnecessary variable1 parent 7fa19df commit 8b72d7c
File tree
8 files changed
+681
-409
lines changed- django_saml2_auth
- tests
8 files changed
+681
-409
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
This file was deleted.
Large diffs are not rendered by default.
0 commit comments