Skip to content

Commit

Permalink
Merge pull request kubernetes-client#1912 from ramvikrams/%1
Browse files Browse the repository at this point in the history
decoding a not safe url in load_kube_config
  • Loading branch information
k8s-ci-robot authored Oct 13, 2022
2 parents a4c43ed + 9152c48 commit e36a91b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubernetes/base/config/kube_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def _load_oid_token(self, provider):

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(
Expand Down

0 comments on commit e36a91b

Please sign in to comment.