Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
Merge 1f6a28e into 46f2738
Browse files Browse the repository at this point in the history
  • Loading branch information
twz123 committed Sep 4, 2019
2 parents 46f2738 + 1f6a28e commit f913edd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pykube/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,11 @@ def send(self, request, **kwargs):
auth_config.get("expiry"),
config,
)
# @@@ support oidc
elif auth_provider.get("name") == "oidc":
auth_config = auth_provider.get("config", {})
# @@@ support token refresh
if "id-token" in auth_config:
request.headers["Authorization"] = "Bearer {}".format(auth_config["id-token"])
elif "client-certificate" in config.user:
kwargs["cert"] = (
config.user["client-certificate"].filename(),
Expand Down

0 comments on commit f913edd

Please sign in to comment.