()
| 206 | |
| 207 | |
| 208 | def test_use_jwe(): |
| 209 | payload = {"name": "hi"} |
| 210 | private_key = read_file_path("rsa_private.pem") |
| 211 | pub_key = read_file_path("rsa_public.pem") |
| 212 | _jwt = JsonWebToken(["RSA-OAEP", "A256GCM"]) |
| 213 | data = _jwt.encode({"alg": "RSA-OAEP", "enc": "A256GCM"}, payload, pub_key) |
| 214 | assert data.count(b".") == 4 |
| 215 | |
| 216 | claims = _jwt.decode(data, private_key) |
| 217 | assert claims["name"] == "hi" |
| 218 | |
| 219 | |
| 220 | def test_use_jwks(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…