0 Replies Latest reply on Oct 9, 2010 12:35 PM by ko1yagi

    About Digest Authentication in JBoss 5.1.0 GA

    ko1yagi

      Dear all,

       

      Could anyone teach me to enable digest authentication in JBoss 5.1.0 GA?

      Though I tried to execute digest authentication in JBoss 5.1.0 GA including the following web.xml,

      "Bad password for username=yagi" was displayed on a JBoss console enabling "DEBUG".

      Next, after trying to input the username and the hashed password on web browser,

      the authentication has passed.

      I think basic authentication has operated in this JBoss, not digest authentication.

       

      web.xml:

      <web-app>
        <login-config>
          <auth-method>DIGEST</auth-method>
          <realm-name>SampleRealm</realm-name>
        </login-config>

       

        <security-role>
          <role-name>AuthorizedUsers</role-name>
        </security-role>

       

        <security-constraint>
          <web-resource-collection>
            <web-resource-name>restricted contents</web-resource-name>
            <url-pattern>/HelloServlet/*</url-pattern>
          </web-resource-collection>
          <auth-constraint>
            <role-name>AuthorizedUsers</role-name>
          </auth-constraint>
        </security-constraint>
      </web-app>

      Regards,

      Yagishita