Skip to content
This repository has been archived by the owner on Mar 13, 2022. It is now read-only.

Add '==' to base64 decode for py3 #67

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/kube_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def _load_oid_token(self):

if PY3:
jwt_attributes = json.loads(
base64.b64decode(parts[1]).decode('utf-8')
base64.b64decode(parts[1] + "==").decode('utf-8')
)
else:
jwt_attributes = json.loads(
Expand Down