1.1 --- a/java/nekurak.net-rest/web/WEB-INF/web.xml Mon Apr 05 19:08:52 2010 +0200
1.2 +++ b/java/nekurak.net-rest/web/WEB-INF/web.xml Sun Jun 13 17:20:20 2010 +0200
1.3 @@ -14,4 +14,25 @@
1.4 30
1.5 </session-timeout>
1.6 </session-config>
1.7 + <!-- <zabezpečení> -->
1.8 + <security-role>
1.9 + <role-name>redaktor</role-name>
1.10 + </security-role>
1.11 + <security-constraint>
1.12 + <web-resource-collection>
1.13 + <web-resource-name>Nekuřák.net REST API</web-resource-name>
1.14 + <url-pattern>/*</url-pattern>
1.15 + <http-method>PUT</http-method>
1.16 + <http-method>POST</http-method>
1.17 + <http-method>DELETE</http-method>
1.18 + </web-resource-collection>
1.19 + <auth-constraint>
1.20 + <role-name>redaktor</role-name>
1.21 + </auth-constraint>
1.22 + </security-constraint>
1.23 + <login-config>
1.24 + <auth-method>BASIC</auth-method>
1.25 + <realm-name>nekurakNET</realm-name>
1.26 + </login-config>
1.27 + <!-- </zabezpečení> -->
1.28 </web-app>