From 892c0539e407e37c34e81f4e7ca3fccdbec50f1f Mon Sep 17 00:00:00 2001 From: "Benjamin, Max" Date: Wed, 8 Jan 2020 10:33:35 -0500 Subject: configurable aaf user expires aaf user expires now configurable via properties Issue-ID: SO-2590 Signed-off-by: Benjamin, Max (mb388a) Change-Id: Ib4cd4f9062862fe8833ee2009a65e8984d8692bf --- common/src/main/java/org/onap/so/security/SoCadiFilter.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common/src') diff --git a/common/src/main/java/org/onap/so/security/SoCadiFilter.java b/common/src/main/java/org/onap/so/security/SoCadiFilter.java index 93700db682..9849db380f 100644 --- a/common/src/main/java/org/onap/so/security/SoCadiFilter.java +++ b/common/src/main/java/org/onap/so/security/SoCadiFilter.java @@ -83,6 +83,9 @@ public class SoCadiFilter extends CadiFilter { @Value("${mso.config.cadi.apiEnforcement:#{null}}") private String apiEnforcement; + @Value("${mso.config.cadi.userExpires:#{null}}") + private String userExpires; + private void checkIfNullProperty(String key, String value) { /* * When value is null, it is not defined in application.yaml set nothing in System properties @@ -108,6 +111,7 @@ public class SoCadiFilter extends CadiFilter { checkIfNullProperty(Config.AAF_LOCATE_URL, aafLocateUrl); checkIfNullProperty(Config.AAF_URL, aafUrl); checkIfNullProperty(Config.CADI_API_ENFORCEMENT, apiEnforcement); + checkIfNullProperty(Config.AAF_USER_EXPIRES, userExpires); // checkIfNullProperty(AFT_ENVIRONMENT_VAR, aftEnv); logger.debug(" *** init Filter Config *** "); super.init(filterConfig); -- cgit 1.2.3-korg