Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Delete netconf
[controller.git]
/
opendaylight
/
md-sal
/
sal-rest-connector
/
src
/
main
/
resources
/
WEB-INF
/
web.xml
diff --git
a/opendaylight/md-sal/sal-rest-connector/src/main/resources/WEB-INF/web.xml
b/opendaylight/md-sal/sal-rest-connector/src/main/resources/WEB-INF/web.xml
index eb2b516d969cdcd3ccc95e0471c3ecea12930ff8..95960b2a553b1aa5c6f0e670c8d5a166ce1dcfb3 100644
(file)
--- a/
opendaylight/md-sal/sal-rest-connector/src/main/resources/WEB-INF/web.xml
+++ b/
opendaylight/md-sal/sal-rest-connector/src/main/resources/WEB-INF/web.xml
@@
-10,6
+10,11
@@
<param-name>javax.ws.rs.Application</param-name>
<param-value>org.opendaylight.controller.sal.rest.impl.RestconfApplication</param-value>
</init-param>
<param-name>javax.ws.rs.Application</param-name>
<param-value>org.opendaylight.controller.sal.rest.impl.RestconfApplication</param-value>
</init-param>
+ <!-- AAA Auth Filter -->
+ <init-param>
+ <param-name>com.sun.jersey.spi.container.ContainerRequestFilters</param-name>
+ <param-value> org.opendaylight.aaa.sts.TokenAuthFilter</param-value>
+ </init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<load-on-startup>1</load-on-startup>
</servlet>
@@
-19,38
+24,43
@@
</servlet-mapping>
<filter>
</servlet-mapping>
<filter>
- <filter-name>
Cors
Filter</filter-name>
- <filter-class>org.
apache.catalina.filters.Cors
Filter</filter-class>
+ <filter-name>
Gzip
Filter</filter-name>
+ <filter-class>org.
eclipse.jetty.servlets.Gzip
Filter</filter-class>
<init-param>
<init-param>
- <param-name>cors.allowed.origins</param-name>
- <param-value>*</param-value>
- </init-param>
- <init-param>
- <param-name>cors.allowed.methods</param-name>
- <param-value>GET,POST,HEAD,OPTIONS,PUT</param-value>
+ <param-name>mimeTypes</param-name>
+ <param-value>application/xml,application/yang.data+xml,xml,application/json,application/yang.data+json</param-value>
</init-param>
</init-param>
+ </filter>
+ <filter-mapping>
+ <filter-name>GzipFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+
+ <filter>
+ <filter-name>cross-origin-restconf</filter-name>
+ <filter-class>org.eclipse.jetty.servlets.CrossOriginFilter</filter-class>
<init-param>
<init-param>
- <param-name>cors.allowed.headers</param-name>
- <param-value>Content-Type,X-Requested-With,accept,authorization,
- origin,Origin,Access-Control-Request-Method,Access-Control-Request-Headers</param-value>
+ <param-name>allowedOrigins</param-name>
+ <param-value>*</param-value>
</init-param>
<init-param>
</init-param>
<init-param>
- <param-name>
cors.exposed.header
s</param-name>
- <param-value>
Access-Control-Allow-Origin,Access-Control-Allow-Credentials
</param-value>
+ <param-name>
allowedMethod
s</param-name>
+ <param-value>
GET,POST,OPTIONS,DELETE,PUT,HEAD
</param-value>
</init-param>
<init-param>
</init-param>
<init-param>
- <param-name>
cors.support.credential
s</param-name>
- <param-value>
true
</param-value>
+ <param-name>
allowedHeader
s</param-name>
+ <param-value>
origin, content-type, accept, authorization
</param-value>
</init-param>
<init-param>
</init-param>
<init-param>
- <param-name>
cors.preflight.maxage
</param-name>
- <param-value>
10
</param-value>
+ <param-name>
exposedHeaders
</param-name>
+ <param-value>
location
</param-value>
</init-param>
</filter>
<filter-mapping>
</init-param>
</filter>
<filter-mapping>
- <filter-name>
CorsFilter
</filter-name>
+ <filter-name>
cross-origin-restconf
</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<url-pattern>/*</url-pattern>
</filter-mapping>
+
<security-constraint>
<web-resource-collection>
<web-resource-name>NB api</web-resource-name>
<security-constraint>
<web-resource-collection>
<web-resource-name>NB api</web-resource-name>