1 |
48350
|
katerina.i
|
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
|
|
<web-app>
|
3 |
43480
|
katerina.i
|
|
4 |
48350
|
katerina.i
|
<display-name>uoa-user-management</display-name>
|
5 |
|
|
<context-param>
|
6 |
|
|
<param-name>webAppRootKey</param-name>
|
7 |
|
|
<param-value>uoa-user-management</param-value>
|
8 |
|
|
</context-param>
|
9 |
|
|
<context-param>
|
10 |
|
|
<param-name>contextConfigLocation</param-name>
|
11 |
|
|
<param-value>
|
12 |
|
|
/WEB-INF/applicationContext.xml
|
13 |
|
|
/WEB-INF/security-context.xml
|
14 |
|
|
</param-value>
|
15 |
|
|
</context-param>
|
16 |
|
|
<context-param>
|
17 |
|
|
<param-name>log4jConfigLocation</param-name>
|
18 |
|
|
<param-value>/WEB-INF/log4j.properties</param-value>
|
19 |
|
|
</context-param>
|
20 |
|
|
|
21 |
|
|
<listener>
|
22 |
|
|
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
|
23 |
|
|
</listener>
|
24 |
|
|
<listener>
|
25 |
|
|
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
26 |
|
|
</listener>
|
27 |
|
|
|
28 |
|
|
|
29 |
|
|
<servlet>
|
30 |
|
|
<servlet-name>User API</servlet-name>
|
31 |
|
|
<servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class>
|
32 |
|
|
<init-param>
|
33 |
|
|
<param-name>com.sun.jersey.config.property.packages</param-name>
|
34 |
|
|
<param-value>eu.dnetlib.openaire.user.api.services</param-value>
|
35 |
|
|
</init-param>
|
36 |
|
|
</servlet>
|
37 |
|
|
<servlet-mapping>
|
38 |
|
|
<servlet-name>User API</servlet-name>
|
39 |
|
|
<url-pattern>/api/*</url-pattern>
|
40 |
|
|
</servlet-mapping>
|
41 |
|
|
|
42 |
|
|
|
43 |
|
|
<filter>
|
44 |
|
|
<filter-name>CorsFilter</filter-name>
|
45 |
|
|
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
|
46 |
|
|
<init-param>
|
47 |
|
|
<param-name>cors.allowed.origins</param-name>
|
48 |
|
|
<param-value>*</param-value>
|
49 |
|
|
</init-param>
|
50 |
|
|
<init-param>
|
51 |
|
|
<param-name>cors.allowed.methods</param-name>
|
52 |
|
|
<param-value>GET, POST</param-value>
|
53 |
|
|
</init-param>
|
54 |
|
|
<init-param>
|
55 |
|
|
<param-name>cors.exposed.headers</param-name>
|
56 |
|
|
<param-value>Access-Control-Allow-Origin,Access-Control-Allow-Credentials,Access-Control-Allow-Methods</param-value>
|
57 |
|
|
</init-param>
|
58 |
|
|
<init-param>
|
59 |
|
|
<param-name>cors.support.credentials</param-name>
|
60 |
|
|
<param-value>true</param-value>
|
61 |
|
|
</init-param>
|
62 |
|
|
</filter>
|
63 |
|
|
<filter-mapping>
|
64 |
|
|
<filter-name>CorsFilter</filter-name>
|
65 |
|
|
<url-pattern>/*</url-pattern>
|
66 |
|
|
</filter-mapping>
|
67 |
|
|
|
68 |
|
|
<!--
|
69 |
|
|
<filter>
|
70 |
|
|
<filter-name>requestContextFilter</filter-name>
|
71 |
|
|
<filter-class>org.springframework.web.filter.RequestContextFilter</filter-class>
|
72 |
|
|
</filter>
|
73 |
|
|
|
74 |
|
|
<filter-mapping>
|
75 |
|
|
<filter-name>requestContextFilter</filter-name>
|
76 |
|
|
<url-pattern>/*</url-pattern>
|
77 |
|
|
</filter-mapping>
|
78 |
|
|
-->
|
79 |
|
|
<filter>
|
80 |
|
|
<filter-name>springSecurityFilterChain</filter-name>
|
81 |
|
|
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
|
82 |
|
|
</filter>
|
83 |
|
|
|
84 |
|
|
<filter-mapping>
|
85 |
|
|
<filter-name>springSecurityFilterChain</filter-name>
|
86 |
|
|
<url-pattern>/*</url-pattern>
|
87 |
|
|
</filter-mapping>
|
88 |
|
|
|
89 |
|
|
</web-app>
|