Skip to content

Commit c95e86e

Browse files
authored
Merge pull request #20 from Authress/auto-setup-cfg
Ensure pyjwt is included in every installation and upgrade usage of the rest client. fix #19
2 parents 7be4e91 + 1e8daf9 commit c95e86e

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
},
1414
"cSpell.words": [
1515
"conint",
16+
"eddsa",
1617
"Permissioned"
1718
]
1819
}

authress/api/token_verifier.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ def get_public_key(self, jwkKeyListUrl, kid):
7373

7474
def get_key_uncached(self, jwkKeyListUrl, kid):
7575
rest_client = rest.RESTClientObject()
76-
result = rest_client.GET(jwkKeyListUrl)
76+
result = rest_client.get_request(jwkKeyListUrl)
7777

7878
for index, key in enumerate(json.loads(result.data)['keys']):
7979
if key['kid'] == kid:
8080
return key
8181

82-
raise Exception("Unauthorized", "KID is not valid")
82+
raise Exception("Unauthorized", "KID is not valid")

requirements.txt

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
certifi >= 14.05.14
2-
python_dateutil >= 2.5.3
3-
setuptools >= 21.0.0
4-
urllib3 >= 1.25.3, < 2.1.0
5-
PyJWT >= 2.4.0
6-
cryptography >= 2.9.2
7-
pydantic >= 1.10.5, < 3
8-
aenum >= 3.1.11
1+
# requirements.txt
2+
#
3+
# installs dependencies from ./setup.py, and the package itself,
4+
# in editable mode
5+
.
6+
7+
setuptools >= 21.0.0

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
"urllib3 >= 1.25.3, < 2.1.0",
66
"python-dateutil",
77
"pydantic >= 1.10.5, < 3",
8-
"aenum"
8+
"PyJWT >= 2.4.0",
9+
"cryptography >= 2.9.2",
10+
"aenum",
11+
"certifi >= 14.05.14",
12+
"python_dateutil >= 2.5.3"
913
]
1014

1115
# To install the library, run the following

0 commit comments

Comments
 (0)