We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9270e2 commit 0b06a64Copy full SHA for 0b06a64
backend/cmd/headlamp.go
@@ -876,12 +876,17 @@ func (c *HeadlampConfig) refreshAndSetToken(oidcAuthConfig *kubeconfig.OidcConfi
876
tokenType = "access_token"
877
}
878
879
+ idpIssuerURL := c.oidcIdpIssuerURL
880
+ if idpIssuerURL == "" {
881
+ idpIssuerURL = oidcAuthConfig.IdpIssuerURL
882
+ }
883
+
884
newToken, err := refreshAndCacheNewToken(
885
oidcAuthConfig,
886
cache,
887
tokenType,
888
token,
- c.oidcIdpIssuerURL,
889
+ idpIssuerURL,
890
)
891
if err != nil {
892
logger.Log(logger.LevelError, map[string]string{"cluster": cluster},
0 commit comments