Advertisement
Guest User

Relevant web.xml part

a guest
Jun 25th, 2012
1,026
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.92 KB | None | 0 0
  1.   <login-config>
  2.     <auth-method>FORM</auth-method>
  3.     <form-login-config>
  4.       <form-login-page>/login.html</form-login-page>
  5.       <form-error-page>/login-failed.html</form-error-page>
  6.     </form-login-config>
  7.   </login-config>
  8.  
  9.   <security-constraint>
  10.     <web-resource-collection>
  11.       <web-resource-name>Wildcard means whole app requires authentication</web-resource-name>
  12.       <url-pattern>/*</url-pattern>
  13.       <http-method>GET</http-method>
  14.       <http-method>POST</http-method>
  15.     </web-resource-collection>
  16.     <auth-constraint>
  17.       <role-name>site-users</role-name>
  18.     </auth-constraint>
  19.     <user-data-constraint>
  20.       <transport-guarantee>CONFIDENTIAL</transport-guarantee>
  21.     </user-data-constraint>
  22.   </security-constraint>
  23.  
  24.    <security-role>
  25.       <description>This logical role includes all authenticated users</description>
  26.       <role-name>site-users</role-name>
  27.    </security-role>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement