decoding a not safe url in load_kube_config
for issue #1911 fixing load_kube_config for decoding unsafe url token
This commit is contained in:
parent
8cc9f981eb
commit
9152c48f0a
@ -398,7 +398,7 @@ class KubeConfigLoader(object):
|
||||
|
||||
if PY3:
|
||||
jwt_attributes = json.loads(
|
||||
base64.b64decode(parts[1] + padding).decode('utf-8')
|
||||
base64.urlsafe_b64decode(parts[1] + padding).decode('utf-8')
|
||||
)
|
||||
else:
|
||||
jwt_attributes = json.loads(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user