Advertisement
Guest User

Untitled

a guest
Mar 10th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. <user username="admin" password="admin" roles="manager-gui,admin-gui"/>
  2.  
  3. ?xml version="1.0" encoding="UTF-8"?>
  4. <web-app>
  5. <security-constraint>
  6. <web-resource-collection>
  7. <web-resource-name>Role Authenticate</web-resource-name>
  8. <url-pattern>/index.jsp</url-pattern>
  9. <url-pattern>/logout.jsp</url-pattern>
  10. <http-method>GET</http-method>
  11. <http-method>POST</http-method>
  12. </web-resource-collection>
  13. <auth-constraint>
  14. <role-name>user</role-name>
  15. <role-name>admin</role-name>
  16. </auth-constraint>
  17. </security-constraint>
  18.  
  19.  
  20. <login-config>
  21. <auth-method>FORM</auth-method>
  22. <realm-name>Authentication</realm-name>
  23. <form-login-config>
  24. <form-login-page>/login.jsp</form-login-page>
  25. <form-error-page>/error.jsp</form-error-page>
  26. </form-login-config>
  27. </login-config>
  28.  
  29. <welcome-file-list>
  30. <welcome-file>welcome.jsp</welcome-file>
  31. </welcome-file-list>
  32. </web-app>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement