Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 6b8ca57

Browse files
committed
Updated to work with latest cryptojwt version
Copy key jar to service context. Add 'jose' message type support
1 parent 85d09e4 commit 6b8ca57

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

chrp/cprp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
from urllib.parse import parse_qs
88

99
import cherrypy
10-
from cryptojwt import as_bytes
10+
11+
from cryptojwt.utils import as_bytes
1112

1213
logger = logging.getLogger(__name__)
1314

src/oidcrp/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ def init_client(self, issuer):
215215
logger.error(message)
216216
raise
217217

218+
client.service_context.keyjar = self.keyjar.copy()
218219
client.service_context.base_url = self.base_url
219220
return client
220221

src/oidcrp/util.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ def get_deserialization_method(reqresp):
203203
deser_method = 'json'
204204
elif match_to_("application/jwt", _ctype):
205205
deser_method = "jwt"
206+
elif match_to_("application/jose", _ctype):
207+
deser_method = "jose"
206208
elif match_to_(URL_ENCODED, _ctype):
207209
deser_method = 'urlencoded'
208210
elif match_to_("text/plain", _ctype) or match_to_("test/html", _ctype):

0 commit comments

Comments
 (0)