Skip to content

Commit dc408ea

Browse files
committed
tests: adapted tests
1 parent bc9fe58 commit dc408ea

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pyeudiw/tests/satosa/test_backend.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,15 @@ def test_trust_patameters_in_response(self, context):
941941
assert header["x5c"]
942942
assert len(header["x5c"]) == 3
943943

944+
# verify that the JWT is signed using the leaf key from the x5c certificate chain
945+
leaf_key = parse_pem(header["x5c"][0]).as_dict()
946+
947+
verification = JWSHelper(leaf_key).verify(
948+
req_resp.message,
949+
)
950+
951+
assert verification
952+
944953
def test_handle_error(self, context):
945954
error_message = "server_error"
946955
error_resp = self.backend._handle_500(context, error_message, Exception())

0 commit comments

Comments
 (0)