aboutsummaryrefslogtreecommitdiffstats
path: root/common/src/main
diff options
context:
space:
mode:
authorBenjamin, Max <max.benjamin@att.com>2020-01-08 10:33:35 -0500
committerBenjamin, Max (mb388a) <mb388a@att.com>2020-01-08 10:33:35 -0500
commit892c0539e407e37c34e81f4e7ca3fccdbec50f1f (patch)
tree795caf08c1bd86d3ff452845a1d1af0058598501 /common/src/main
parentcb61daf5cd7fc31facde951780e62807a82775ef (diff)
configurable aaf user expires
aaf user expires now configurable via properties Issue-ID: SO-2590 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Ib4cd4f9062862fe8833ee2009a65e8984d8692bf
Diffstat (limited to 'common/src/main')
-rw-r--r--common/src/main/java/org/onap/so/security/SoCadiFilter.java4
1 files changed, 4 insertions, 0 deletions
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);