8000 decoding a not safe url in load_kube_config · FlorianJDF/kubernetes-python@9152c48 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9152c48

Browse files
authored
decoding a not safe url in load_kube_config
for issue kubernetes-client#1911 fixing load_kube_config for decoding unsafe url token
1 parent 8cc9f98 commit 9152c48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kubernetes/base/config/kube_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def _load_oid_token(self, provider):
398398

399399
if PY3:
400400
jwt_attributes = json.loads(
401-
base64.b64decode(parts[1] + padding).decode('utf-8')
401+
base64.urlsafe_b64decode(parts[1] + padding).decode('utf-8')
402402
)
403403
else:
404404
jwt_attributes = json.loads(

0 commit comments

Comments
 (0)
0