Skip to content

Commit ff34d06

Browse files
committed
fix: Make Renewal Token Expiry Feature Configurable
Signed-off-by: akhil nittala <nakhil@redhat.com>
1 parent 54985bd commit ff34d06

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

controllers/argocd/dex.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ func needsDexTokenRenewal(secret *corev1.Secret) bool {
7979
// isDexTokenExpiryFeatureEnabled returns true if Dex token renewal expiry is enabled.
8080
// Users can set enableDexTokenExpiry: false (default) in the ArgoCD CR to use the legacy non-expiring token approach.
8181
func isDexTokenExpiryFeatureEnabled(cr *argoproj.ArgoCD) bool {
82-
if cr.Spec.EnableDexTokenExpiry == nil {
82+
if cr.Spec.SSO.Dex.EnableDexTokenExpiry == nil {
8383
return false // Disabled by default (old behavior with non-expiring tokens)
8484
}
85-
return *cr.Spec.EnableDexTokenExpiry
85+
return *cr.Spec.SSO.Dex.EnableDexTokenExpiry
8686
}
8787

8888
// getDexOAuthClientSecret returns a time-limited Dex OAuth client token via the TokenRequest API.

0 commit comments

Comments
 (0)