summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKajur, Harish (vk250x) <vk250x@att.com>2018-09-17 15:13:40 -0400
committerKajur, Harish (vk250x) <vk250x@att.com>2018-09-18 09:46:02 -0400
commit1e3c9bde6ceb3920aa1695d59e6f677510ca649c (patch)
tree2ba57f243f997d9685ae994e534c4a201cb79442 /src
parent886f66042472d9f1c4a7f9e848263d55750e8cfe (diff)
Disable authorization for /util/echo
Issue-ID: AAI-1612 Change-Id: I261d0bdf005d696a825f18624059a2e5abf395fc Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/onap/aai/interceptors/pre/OneWaySslAuthorization.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/onap/aai/interceptors/pre/OneWaySslAuthorization.java b/src/main/java/org/onap/aai/interceptors/pre/OneWaySslAuthorization.java
index 6563e23..b9fc978 100644
--- a/src/main/java/org/onap/aai/interceptors/pre/OneWaySslAuthorization.java
+++ b/src/main/java/org/onap/aai/interceptors/pre/OneWaySslAuthorization.java
@@ -52,6 +52,10 @@ public class OneWaySslAuthorization extends AAIContainerFilter implements Contai
public void filter(ContainerRequestContext containerRequestContext) throws IOException
{
+ if(containerRequestContext.getUriInfo().getRequestUri().getPath().matches("^.*/util/echo$")){
+ return;
+ }
+
String basicAuth = containerRequestContext.getHeaderString("Authorization");
List<MediaType> acceptHeaderValues = containerRequestContext.getAcceptableMediaTypes();