0 Replies Latest reply on May 20, 2002 9:40 AM by ashraf_afifi

    can't make basic auth. work please help

    ashraf_afifi


      The following section of web.xml works fine with sun j2ee reference server. I doesn't work with jboss 3.0 + tomcat
      (I dont get any login box) what did I miss?

      <security-constraint>
      <web-resource-collection>
      <web-resource-name>WRCollection</web-resource-name>
      <url-pattern>/servlet/com.nybot.ecops.seller.ControlServlet_1</url-pattern>
      <http-method>GET</http-method>
      <http-method>POST</http-method>
      </web-resource-collection>
      <auth-constraint>
      <role-name>seller</role-name>
      </auth-constraint>
      <user-data-constraint>
      <transport-guarantee>NONE</transport-guarantee>
      </user-data-constraint>
      </security-constraint>
      <login-config>
      <auth-method>BASIC</auth-method>
      <realm-name>MemoryRealm</realm-name>
      </login-config>
      <security-role>
      seller role
      <role-name>seller</role-name>
      </security-role>