<?xml version="1.0" encoding="UTF-8"?>

<web-app version="2.4"
   xmlns="http://java.sun.com/xml/ns/j2ee"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

   <description>Programmatic Web Login Tests</description>

   <!-- ### Servlets -->
   <servlet>
      <servlet-name>TestServlet</servlet-name>
      <servlet-class>org.jboss.test.web.servlets.ProgrammaticLoginTestServlet</servlet-class>
   </servlet>

   <!-- The servlet and jsp page mappings -->
   <servlet-mapping>
      <servlet-name>TestServlet</servlet-name>
      <url-pattern>/TestServlet</url-pattern>
   </servlet-mapping>

   <login-config>
      <auth-method>BASIC</auth-method>
      <realm-name>JBossTest Servlets</realm-name>
   </login-config>

   <security-role>
      <description>An AuthorizedUser is one with a valid username and password</description>
      <role-name>AuthorizedUser</role-name>
   </security-role>
</web-app>

