morgand     01/09/07 15:42:04

  Modified:    latka-webapp/webapp/WEB-INF web.xml
  Log:
  folded in the Latka self-tests
  
  Revision  Changes    Path
  1.5       +21 -0     jakarta-commons-sandbox/latka-webapp/webapp/WEB-INF/web.xml
  
  Index: web.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/latka-webapp/webapp/WEB-INF/web.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- web.xml   2001/09/07 17:13:42     1.4
  +++ web.xml   2001/09/07 22:42:04     1.5
  @@ -36,4 +36,25 @@
       <taglib-uri>http://jakarta.apache.org/taglibs/io</taglib-uri>
       <taglib-location>/WEB-INF/io.tld</taglib-location>
     </taglib>
  +
  +  <!-- if you want to test basic auth, you have to set it up the latka-auth
  +       role in your servlet container's security interface -->
  +  <security-constraint>
  +    <web-resource-collection>
  +      <web-resource-name>Protected Area</web-resource-name>
  +        
  +      <!-- Define the context-relative URL(s) to be protected -->
  +      <url-pattern>/self-test/basicAuth/*</url-pattern>
  +    </web-resource-collection>
  +    <auth-constraint>
  +       <!-- Anyone with one of the listed roles may access this area -->
  +       <role-name>latka-auth</role-name>
  +    </auth-constraint>
  +  </security-constraint>
  +
  +  <login-config>
  +    <auth-method>BASIC</auth-method>
  +    <realm-name>latka-realm</realm-name>
  +  </login-config>
  +
   </web-app>
  
  
  

Reply via email to