Hi Jerome,
Jerome Louvel wrote:
Hi Bruno,
I'm not sure we want to add such a feature in an official build.
Fair enough.
Also, if you can come up with a patch that would add a
"getChallengeRequests():List<ChallengeRequest>" method on Response and
deprecate the current "challengeRequest" property, that could go in 1.1 RC.
Of course, that would require doing the proper formatting and parsing
to/from the "WWW-Authenticate" header.
I've just submitted a patch to
http://restlet.tigris.org/issues/show_bug.cgi?id=457
Basically, setChallengeRequest is deprecated (and uses the first entry
in the list) and replaced with addChallengeRequest and
setChallengeRequests; getChallengeRequest is also deprecated and
replaced with getChallengeRequests.
I think the only class that uses getChallengeRequest is Dispatcher in
com.noelios.restlet.ext.shell.controller.
I've just tried it with my toy SPNEGO Filter, and it works. At least
Firefox and Safari support HTTP Basic authentication if a Kerberos
ticket wasn't available.
Best wishes,
Bruno.