I've been using the "ChallengeResponse" mechanism to authenticate users so far.
ChallengeResponse challengeResponse = getRequest().getChallengeResponse();
if( challengeResponse == null ){
throw new RuntimeException("not authenticated");
}
String login = challengeResponse.getIdentifier();
String password = new String(challengeResponse.getSecret());
>From my understanding, "ChallengeResponse" requires that the username and
>password are put into headers. However a client needs to put the credentials
>into the url like so:
https://username:[email protected]/my_secure_document
I wasn't able to figure out how to pull this information from the URL in order
to authenticate. How is this done?
Thanks so much!
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2623156