Skip to content

Commit

Permalink
Merge pull request #27988 from jhanders34/fix-build-break
Browse files Browse the repository at this point in the history
Add appSecurity-6.0 to list of features to enable security
  • Loading branch information
jhanders34 authored Mar 25, 2024
2 parents 8c32643 + 6fb01f5 commit 4dccbf3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2011, 2023 IBM Corporation and others.
* Copyright (c) 2011, 2024 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -508,7 +508,8 @@ public boolean isCDINeeded() {
return false;
}
Set<String> features = provisionerService.getInstalledFeatures();
return features.contains("appSecurity-3.0") || features.contains("appSecurity-4.0") || features.contains("appSecurity-5.0") || features.contains("mpJwt-2.1");
return features.contains("appSecurity-3.0") || features.contains("appSecurity-4.0") || features.contains("appSecurity-5.0") || features.contains("appSecurity-6.0")
|| features.contains("mpJwt-2.1");
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*******************************************************************************
* Copyright (c) 2020, 2021 IBM Corporation and others.
* Copyright (c) 2020, 2024 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-2.0/
*
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
Expand Down Expand Up @@ -283,7 +283,8 @@ private void setSecurityEnabled() {
Set<String> currentFeatureSet = _featureProvisioner.getService().getInstalledFeatures();
if (currentFeatureSet.contains("appSecurity-2.0") || currentFeatureSet.contains("appSecurity-1.0")
|| currentFeatureSet.contains("appSecurity-3.0") || currentFeatureSet.contains("appSecurity-4.0")
|| currentFeatureSet.contains("appSecurity-5.0") || currentFeatureSet.contains("mpJwt-2.1")) {
|| currentFeatureSet.contains("appSecurity-5.0") || currentFeatureSet.contains("appSecurity-6.0")
|| currentFeatureSet.contains("mpJwt-2.1")) {
useSecurity = true;
return;
}
Expand Down

0 comments on commit 4dccbf3

Please sign in to comment.