This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes DIGEST auth-method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "DIGEST auth-method" Watch "DIGEST auth-method" New topic
Author

DIGEST auth-method

Ahmed Agizaa
Greenhorn

Joined: Oct 12, 2003
Posts: 4
Hello,
- I'm using tomcat-5.0.9 and I'm trying to test the Digest auth method but it does not work.
- I got the login dialog , but it does not accept my correct id and pwd.
- I do not have this problem when I use the FORM auth method with the same id/pwd.
Thanks and regards, Ahmed
mounika paruchuri
Greenhorn

Joined: Feb 12, 2002
Posts: 26
How are you authenticating the user id and password in the code??
Ahmed Agizaa
Greenhorn

Joined: Oct 12, 2003
Posts: 4
Here is the Auth. related parts in web.xml.
<security-constraint>
<web-resource-collection>
<web-resource-name>MyTravelServlet</web-resource-name>
<url-pattern>/mine/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>myrole</role-name>
</auth-constraint>
</security-constraint>

<login-config>
<auth-method>DIGEST</auth-method>
</login-config>

<security-role>
<role-name>myrole</role-name>
</security-role>
I'm using IE6.0 , do you know whether it supports DIGEST or not? cuz I read that some browsers do not support DIGEST.
Thanks for your help, Ahmed
Anselm Paulinus
Ranch Hand

Joined: Sep 05, 2003
Posts: 389
I sure know that IE supports Digest authentication.
Anselm Paulinus
Ranch Hand

Joined: Sep 05, 2003
Posts: 389
Hope you did not forget to set your tomcat-users.xml file; just in case, because I can not find anything wrong with the web.xml code you have here.
Ner min
Ranch Hand

Joined: Sep 14, 2005
Posts: 76
im having the same Problem, does aybody knows does IE 6 or firefox 1.0 supports DIGEST. Or is tomcat the troublemaker? im usin 5.0.28
 
wood burning stoves
 
subject: DIGEST auth-method