Advertisement
Guest User

Untitled

a guest
Apr 13th, 2016
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. <role rolename="myrole"/>
  2. <user username="myuser" password="mypassword" roles="myrole"/>
  3.  
  4. <security-constraint>
  5. <web-resource-collection>
  6. <web-resource-name>MY WEBSITE</web-resource-name>
  7. <url-pattern>/*</url-pattern>
  8. <http-method>GET</http-method>
  9. <http-method>POST</http-method>
  10. </web-resource-collection>
  11. <auth-constraint>
  12. <role-name>myrole</role-name>
  13. </auth-constraint>
  14. </security-constraint>
  15.  
  16. <login-config>
  17. <auth-method>BASIC</auth-method>
  18. </login-config>
  19.  
  20. <security-role>
  21. <description>LOGIN</description>
  22. <role-name>myrole</role-name>
  23. </security-role>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement