.encode() this JSON key.

This commit is contained in:
Robert Kästel
2018-11-07 11:08:29 +01:00
parent 547e51854c
commit 5e94d8ece0
+1 -1
View File
@@ -269,7 +269,7 @@ class ExternalAccountBinding(object):
def from_data(cls, account_public_key, kid, hmac_key, directory):
"""Create External Account Binding Resource from contact details, kid and hmac."""
key_json = json.dumps(account_public_key.to_partial_json())
key_json = json.dumps(account_public_key.to_partial_json()).encode()
decoded_hmac_key = jose.b64.b64decode(hmac_key)
url = directory["newAccount"]