From 531308c6c82d6d021f3b233a25a5fd3529d1f704 Mon Sep 17 00:00:00 2001 From: Alexa Bird Date: Thu, 5 Jul 2018 13:11:46 -0700 Subject: [PATCH] DDF-3921 Minor CAS updates (#3356) * DDF-3921 Minor CAS updates --- .../codice/ddf/security/handler/cas/CasLogoutService.java | 4 +++- .../src/main/resources/OSGI-INF/blueprint/casfilters.xml | 8 +++++++- .../src/main/resources/OSGI-INF/metatype/metatype.xml | 4 ++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/platform/security/cas/security-cas-client/src/main/java/org/codice/ddf/security/handler/cas/CasLogoutService.java b/platform/security/cas/security-cas-client/src/main/java/org/codice/ddf/security/handler/cas/CasLogoutService.java index 49a5afaef0ae..452ab984d6eb 100644 --- a/platform/security/cas/security-cas-client/src/main/java/org/codice/ddf/security/handler/cas/CasLogoutService.java +++ b/platform/security/cas/security-cas-client/src/main/java/org/codice/ddf/security/handler/cas/CasLogoutService.java @@ -27,6 +27,7 @@ import javax.ws.rs.core.UriBuilder; import org.apache.shiro.subject.Subject; import org.apache.shiro.util.ThreadContext; +import org.codice.ddf.configuration.PropertyResolver; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -74,7 +75,8 @@ public void sendLogoutRequest( } public void setCasServerLogoutUrl(String url) { - this.casServerLogoutUrl = url; + PropertyResolver resolver = new PropertyResolver(url); + this.casServerLogoutUrl = resolver.getResolvedString(); } public String getCasServerLogoutUrl() { diff --git a/platform/security/cas/security-cas-client/src/main/resources/OSGI-INF/blueprint/casfilters.xml b/platform/security/cas/security-cas-client/src/main/resources/OSGI-INF/blueprint/casfilters.xml index c79892e16c36..13a0071bcea9 100644 --- a/platform/security/cas/security-cas-client/src/main/resources/OSGI-INF/blueprint/casfilters.xml +++ b/platform/security/cas/security-cas-client/src/main/resources/OSGI-INF/blueprint/casfilters.xml @@ -44,6 +44,12 @@ + + + value="${org.codice.ddf.external.protocol}${org.codice.ddf.external.hostname}:8443/cas/logout"/> diff --git a/platform/security/cas/security-cas-client/src/main/resources/OSGI-INF/metatype/metatype.xml b/platform/security/cas/security-cas-client/src/main/resources/OSGI-INF/metatype/metatype.xml index ce53f909bdb0..15af93ad9a75 100644 --- a/platform/security/cas/security-cas-client/src/main/resources/OSGI-INF/metatype/metatype.xml +++ b/platform/security/cas/security-cas-client/src/main/resources/OSGI-INF/metatype/metatype.xml @@ -35,13 +35,13 @@