MCPcopy
hub / github.com/authlib/authlib / test_with_zip_header

Function test_with_zip_header

tests/jose/test_jwe.py:184–194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

182
183
184def test_with_zip_header():
185 jwe = JsonWebEncryption()
186 s = jwe.serialize_compact(
187 {"alg": "RSA-OAEP", "enc": "A128CBC-HS256", "zip": "DEF"},
188 "hello",
189 read_file_path("rsa_public.pem"),
190 )
191 data = jwe.deserialize_compact(s, read_file_path("rsa_private.pem"))
192 header, payload = data["header"], data["payload"]
193 assert payload == b"hello"
194 assert header["alg"] == "RSA-OAEP"
195
196
197def test_aes_jwe():

Callers

nothing calls this directly

Calls 4

serialize_compactMethod · 0.95
deserialize_compactMethod · 0.95
JsonWebEncryptionClass · 0.90
read_file_pathFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…