Skip to content

Commit

Permalink
Fix signBytes for impersonated credentials
Browse files Browse the repository at this point in the history
Fixes google-auth-library-python#338
  • Loading branch information
maroux committed May 7, 2020
1 parent 7c9e8c2 commit cec645e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/auth/impersonated_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def sign_bytes(self, message):

iam_sign_endpoint = _IAM_SIGN_ENDPOINT.format(self._target_principal)

body = {"payload": base64.b64encode(message), "delegates": self._delegates}
body = {"payload": base64.b64encode(message).decode("utf-8"), "delegates": self._delegates}

headers = {"Content-Type": "application/json"}

Expand Down

0 comments on commit cec645e

Please sign in to comment.