summaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main/webapp
diff options
context:
space:
mode:
authorm.kowalski3 <m.kowalski3@partner.samsung.com>2019-08-30 16:02:56 +0200
committerOfir Sonsino <ofir.sonsino@intl.att.com>2019-09-02 12:45:58 +0000
commit34e04405d887089ddc638607646849af0d9ba932 (patch)
treeae522c29d12c9297099841ef406f3bf3e7f15da8 /catalog-be/src/main/webapp
parent05d0a1772ba64089db033e1e4ce55e0549aef81d (diff)
Basic authorization for unsecured endpoint
Issue-ID: OJSI-90 Signed-off-by: Marcin Kowalski <m.kowalski3@partner.samsung.com> Change-Id: I3423d316e4853cfd5fa4aee50ad6506937bd6381
Diffstat (limited to 'catalog-be/src/main/webapp')
-rw-r--r--catalog-be/src/main/webapp/WEB-INF/web.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/catalog-be/src/main/webapp/WEB-INF/web.xml b/catalog-be/src/main/webapp/WEB-INF/web.xml
index 027601b952..812faba440 100644
--- a/catalog-be/src/main/webapp/WEB-INF/web.xml
+++ b/catalog-be/src/main/webapp/WEB-INF/web.xml
@@ -50,6 +50,17 @@
<servlet-name>EsGateway</servlet-name>
<url-pattern>/sdc2/esGateway/*</url-pattern>
</servlet-mapping>
+
+ <filter>
+ <filter-name>AuthenticationFilter</filter-name>
+ <filter-class>
+ org.openecomp.sdc.be.filters.RestAuthenticationFilter
+ </filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>AuthenticationFilter</filter-name>
+ <url-pattern>/sdc2/rest/v1/consumers</url-pattern>
+ </filter-mapping>
<servlet>
<servlet-name>jerseyDistribution</servlet-name>