Skip to content

Commit a458a42

Browse files
- Encoding decrypted payload before API Client receives it
1 parent a3d8d81 commit a458a42

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

client_encryption/api_encryption.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ def encrypt_jwe_payload(conf, body):
9696

9797
@staticmethod
9898
def decrypt_jwe_payload(conf, body):
99-
return decrypt_jwe(body, conf)
99+
decrypted_body = decrypt_jwe(body, conf)
100+
payload = json.dumps(decrypted_body).encode('utf-8')
101+
102+
return payload
100103

101104
@staticmethod
102105
def decrypt_field_level_payload(headers, conf, body):

client_encryption/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
3-
__version__ = "1.2.0"
3+
__version__ = "1.3.0"

0 commit comments

Comments
 (0)