web.xml 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. <web-app version="4.0"
  2. xmlns="http://xmlns.jcp.org/xml/ns/javaee"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd">
  5. <security-constraint>
  6. <display-name>REST</display-name>
  7. <web-resource-collection>
  8. <web-resource-name>REST</web-resource-name>
  9. <description>REST</description>
  10. <url-pattern>/api/*</url-pattern>
  11. </web-resource-collection>
  12. <auth-constraint>
  13. <description>REST</description>
  14. <role-name>user</role-name>
  15. </auth-constraint>
  16. </security-constraint>
  17. <login-config>
  18. <auth-method>FORM</auth-method>
  19. <realm-name>TOTVSTech</realm-name>
  20. </login-config>
  21. <security-role>
  22. <role-name>totvstech</role-name>
  23. </security-role>
  24. <security-role>
  25. <role-name>user</role-name>
  26. </security-role>
  27. <security-role>
  28. <role-name>sysadmin</role-name>
  29. </security-role>
  30. </web-app>