Thierry, Thanks for the update. After restructuring to match your new example, everything almost worked. I was still missing the DigestHelper. But I found a post about Engine.setUserClassLoader which fixed that (I'm running in an eclipse plugin/OSGI environment).
THe changes really simplify use of DIGEST Authentication. Glad to see the progress. Thanks, Rich > Hello Rich, > > I've updated the sample code of the wiki: > http://wiki.restlet.org/docs_2.0/112-restlet.html > I hope this will help you. > > Best regards, > Thierry Boileau > > > > Jerome, > > > > Thanks for the reply. Unfortuanately, I already have > > org.restlet.ext.crypto.jar on my classpath. > > > > Do you have any other ideas? > > > > Thanks > > Rich > > > > > > > >> Hi Rich, > >> > >> You should add the org.restlet.ext.crypto.jar to your classpath. > >> > >> Cheers, > >> Jérôme > >> > >> Le 23 nov. 2009, 7:20 PM, <webp...@tigris.org> a écrit : > >> > >> I just migrated our client and server from 2.0m3 to 2.0M6. All of the > >> changes were fairly easy to figure out except those related to adding > >> ChallengeResponse for HTTP_DIGEST authentication. Our code was based upon > >> the example in the user guide (which is still the example in today's > >> version. > >> > >> We would build a form with the username, ri, nonce, realm, domain, > >> algorithm > >> and QOP from the result, and then calculate and add the d5 digest. The we > >> call request.setCredentialComponents(form). > >> > >> Since setCredentialComponents() is gone, I tried to find an alternative > >> example and was not able to find one, I tried calling the individual > >> setters > >> for each of the prpoerties that had been placed into the form, and then > >> call > >> Request.setChallengeResponse(). This compiles fine, but I get the following > >> warning and the a 401 response. > >> > >> Nov 23, 2009 10:36:49 AM org.restlet.engine.security.AuthenticatorUtils > >> formatResponse > >> WARNING: Challenge scheme HTTP_DIGEST not supported by the Restlet engine. > >> Nov 23, 2009 10:36:49 AM org.restlet.engine.security.AuthenticatorUtils > >> parseMessage > >> WARNING: Couldn't find any helper support the HTTP_Digest challenge scheme. > >> > >> Is there a current example I should be looking at? If not, can you point me > >> in the right direction. > >> > >> Thanks for your help > >> Rich > >> > >> ------------------------------------------------------ > >> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2423509 > >> > > > > ------------------------------------------------------ > > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2423548 > > > > ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2423962