Files
hartmann-foto_documentation/hartmann-foto-documentation-web/src/main/webapp/WEB-INF/web.xml
2026-01-23 15:09:34 +01:00

26 lines
985 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">
<!-- <context-param> <param-name>resteasy.role.based.security</param-name> <param-value>true</param-value> </context-param> -->
<security-constraint>
<web-resource-collection>
<web-resource-name>Secure</web-resource-name>
<url-pattern>/api/customer</url-pattern>
<url-pattern>/api/picture</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
<http-method>PUT</http-method>
<http-method>DELETE</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>**</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BEARER_TOKEN</auth-method>
<realm-name>fotoDocumentationRealm</realm-name>
</login-config>
</web-app>