-
Notifications
You must be signed in to change notification settings - Fork 2
/
web.xml
58 lines (51 loc) · 2.02 KB
/
web.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?xml version="1.0"?>
<web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
<security-constraint>
<web-resource-collection>
<web-resource-name>api</web-resource-name>
<url-pattern>/api/1.0/albums/*</url-pattern>
<url-pattern>/api/1.0/artists/*</url-pattern>
<url-pattern>/api/1.0/languages/*</url-pattern>
<http-method>POST</http-method>
<http-method>PUT</http-method>
<http-method>DELETE</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>api</web-resource-name>
<url-pattern>/api/1.0/users/current</url-pattern>
<http-method>GET</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>ApplicationRealm</realm-name>
</login-config>
<security-role>
<role-name>admin</role-name>
</security-role>
<servlet>
<servlet-name>GraphQLEndpoint</servlet-name>
<servlet-class>com.mapr.music.api.graphql.GraphQLEndpoint</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>GraphQLEndpoint</servlet-name>
<url-pattern>/graphql</url-pattern>
</servlet-mapping>
<filter>
<filter-name>UserPrincipalPlainServletFilter</filter-name>
<filter-class>com.mapr.music.util.UserPrincipalPlainServletFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>UserPrincipalPlainServletFilter</filter-name>
<url-pattern>/graphql</url-pattern>
</filter-mapping>
</web-app>