File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat 7 digest authentication issues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 7 digest authentication issues" Watch "Tomcat 7 digest authentication issues" New topic
Author

Tomcat 7 digest authentication issues

Gomes Queries
Greenhorn

Joined: Jan 12, 2012
Posts: 1
Hi,

I wanted to test my application with enabling digest authentication in Tomcat 7 server. I did required changes for enabling digest authentication in server.xml and web.xml files.
Now if i send request with digest authentication credentials in challenge response, the digest authentication is not successful. Server is sending Challenge request again... Is there any issue with the digest authentication in tomcat 7?
If anyone can point me in the right direction, I would be most grateful.

Server response:
HTTP/1.1 401 Unauthorized
Cache-Control: private
Expires: Wed, 31 Dec 1969 18:00:00 CST
WWW-Authenticate: Digest realm="kn-poc", qop="auth", nonce="1326368848804:e3974bce21f6f499e32f2d28cc7b7491", opaque="17353BDB66CF1F07CA16E58C642FD62E"
Content-Type: text/html;charset=utf-8
Content-Length: 954
Date: Thu, 12 Jan 2012 11:47:28 GMT
Connection: close
Server: POCWS


Request with digest credentials:
GET /kn-subscriber-config/users/tel:+918123023338/index HTTP/1.0
Authorization: Digest username="918123021238", realm="kn-poc", nonce="1326368848804:e3974bce21f6f499e32f2d28cc7b7491", uri="/kn-subscriber-config/users/tel:+918123023338/index", algorithm=MD5, response="b771a29e0de6a1b57c98d82885a0a19e", qop=auth, nc=1, cnonce="1ba5062265113e506b85074861d02aae", opaque="17353BDB66CF1F07CA16E58C642FD62E"


Server response:
HTTP/1.1 401 Unauthorized
Cache-Control: private
Expires: Wed, 31 Dec 1969 18:00:00 CST
WWW-Authenticate: Digest realm="kn-poc", qop="auth", nonce="1326368849174:02cd2c03f3e47a01e018cc3020fe3cf0", opaque="17353BDB66CF1F07CA16E58C642FD62E"
Content-Type: text/html;charset=utf-8
Content-Length: 954
Date: Thu, 12 Jan 2012 11:47:28 GMT
Connection: close
Server: POCWS
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16054
    
  21

The right direction leads this way: http://www.javaranch.com/name.jsp


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 7 digest authentication issues