We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54985bd commit ff34d06Copy full SHA for ff34d06
1 file changed
controllers/argocd/dex.go
@@ -79,10 +79,10 @@ func needsDexTokenRenewal(secret *corev1.Secret) bool {
79
// isDexTokenExpiryFeatureEnabled returns true if Dex token renewal expiry is enabled.
80
// Users can set enableDexTokenExpiry: false (default) in the ArgoCD CR to use the legacy non-expiring token approach.
81
func isDexTokenExpiryFeatureEnabled(cr *argoproj.ArgoCD) bool {
82
- if cr.Spec.EnableDexTokenExpiry == nil {
+ if cr.Spec.SSO.Dex.EnableDexTokenExpiry == nil {
83
return false // Disabled by default (old behavior with non-expiring tokens)
84
}
85
- return *cr.Spec.EnableDexTokenExpiry
+ return *cr.Spec.SSO.Dex.EnableDexTokenExpiry
86
87
88
// getDexOAuthClientSecret returns a time-limited Dex OAuth client token via the TokenRequest API.
0 commit comments