diff --git a/util/oidc/provider.go b/util/oidc/provider.go index 39675d056d9e1..d956aca248dc1 100644 --- a/util/oidc/provider.go +++ b/util/oidc/provider.go @@ -187,7 +187,6 @@ func (p *providerImpl) VerifyJWT(tokenString string, argoSettings *settings.Argo return key, nil }) - if err != nil { return nil, fmt.Errorf("failed to parse/verify JWT: %w", err) } diff --git a/util/settings/settings.go b/util/settings/settings.go index ecb44feb98c34..67e6a868c3df2 100644 --- a/util/settings/settings.go +++ b/util/settings/settings.go @@ -1500,7 +1500,7 @@ func getDownloadBinaryUrlsFromConfigMap(argoCDCM *apiv1.ConfigMap) map[string]st func updateSettingsFromConfigMap(settings *ArgoCDSettings, argoCDCM *apiv1.ConfigMap) { settings.DexConfig = argoCDCM.Data[settingDexConfigKey] settings.OIDCConfigRAW = argoCDCM.Data[settingsOIDCConfigKey] - + // Parse JWT config if present if jwtConfigStr, ok := argoCDCM.Data["jwt.config"]; ok && jwtConfigStr != "" { var jwtConfig JWTConfig