Hi,
 
  I was wondering if someone could help me with authentication.
I have set up my tomcat-user.xml file and in my web.xml
in my $TOMCAT_HOME/conf directory I have
 
<security-constraint>
      <web-resource-collection>
        <web-resource-name>Protected</web-resource-name>
        <url-pattern>/ROOT</url-pattern>
        <url-pattern>/ROOT/jsp</url-pattern>
        <http-method>GET</http-method>
        <http-method>POST</http-method>
      </web-resource-collection>
      <auth-constraint>
        <role-name>test</role-name>
      </auth-constraint>
    </security-constraint>
    <login-config>
      <auth-method>
        BASIC
      </auth-method>
      <realm-name>
        Default
      </realm-name>
    </login-config>
    <security-role>
      <role-name>test</role-name>
    </security-role>
 
Am I missing something here or do I need to have it in each web.xml file
in each of my application directories. Currently I am getting no login
window at all?
 
Thanks in advance for your help!!
 
Mike
 
 

Reply via email to