Skip to content

Commit 8b72d7c

Browse files
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 variable
1 parent 7fa19df commit 8b72d7c

File tree

8 files changed

+681
-409
lines changed

8 files changed

+681
-409
lines changed

AUTHORS.md

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
This project is currently maintained by Mostafa Moradian and various contributors:
2+
3+
# Django SAML2 Auth
4+
5+
- Original author:
6+
- [Li Fang](https://github.com/fangli)
7+
8+
- Current maintainer:
9+
- [Mostafa Moradian](https://github.com/mostafa) (k6.io & Grafana Labs)
10+
11+
# Dependencies
12+
13+
PySAML2: [c00kiemon5ter](https://github.com/c00kiemon5ter) and other contributors.
14+
15+
PyJWT: [José Padilla](https://github.com/jpadilla) (Auth0) and other contributors.
16+
17+
cryptography: [Paul Kehrer](https://github.com/reaperhulk) and other contributors.
18+
19+
dictor: [perfecto25](https://github.com/perfecto25) and other contributors.
20+
21+
# Test dependencies
22+
23+
django: [various contributors](https://github.com/django/django/blob/master/AUTHORS).
24+
25+
pytest: Holger Krekel and [other contributors](https://github.com/pytest-dev/pytest/blob/master/AUTHORS).
26+
27+
pytest-django: Ben Firshman, Andreas Pelme and [other contributors](https://github.com/pytest-dev/pytest-django/blob/master/AUTHORS).
28+
29+
responses: [markstory](https://github.com/markstory) and other contributors.
30+
31+
# Contributors
32+
33+
If your code or changes are here, but you are not mentioned, please open
34+
an issue.
35+
36+
- [Mostafa Moradian](https://github.com/mostafa) (k6.io & Grafana Labs)
37+
- [DSpeichert](https://github.com/DSpeichert)
38+
- [jacobh](https://github.com/jacobh)
39+
- [Gene Wood](http://github.com/gene1wood/)
40+
- [Terry](https://github.com/tpeng)
41+
- [Tim Pierce](https://github.com/qwrrty/) (Adobe Systems)
42+
- [Tonymke](https://github.com/tonymke/)
43+
- [pintor](https://github.com/pintor)
44+
- [BaconAndEggs](https://github.com/BaconAndEggs)
45+
- [Ryan Mahaffey](https://github.com/mahaffey)
46+
- [ayr-ton](https://github.com/ayr-ton)
47+
- [kevPo](https://github.com/kevPo)
48+
- [chriskj](https://github.com/chriskj)
49+
- [Griffin J Rademacher](https://github.com/favorable-mutation)
50+
- [Akshit Dhar](https://github.com/akshit-wwstay)
51+
- [Jean Vincent](https://github.com/jean-sh)
52+
- [Søren Howe Gersager](https://github.com/syre)

AUTHORS.rst

-55
This file was deleted.

README.md

+314
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)