I'm getting closer. Now I'm trying to implement the writer to automatically
return the WWW-Authenticate header with the realm when authentication fails.
Here is the overridden method in my helper following the documentation on the
Wiki site:
@Override
public void formatRawRequest(ChallengeWriter cw,
ChallengeRequest cr,
Response
response,
Series<Parameter> httpHeaders) throws IOException
{
if (cr.getRealm() != null)
cw.appendQuotedChallengeParameter("realm",
cr.getRealm());
}
Unfortunately this method never gets called when the challenge response fails
and a 401 is sent back. What am I missing?
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2757670