I've been experiencing trouble with the basic auth implementation in that
when I add a guard, the basic auth challenge is issue but the response
does seem to be handled properly.
What happens is that the brower (e.g. Firefox) pops the dialog for
the authentication information but the POST doesn't seem to happen
again. If I then request the POST again, the authenticate header
is provided by Firefox and the POST operation succeeds (as long
as the username/password matches).
Any ideas?
My guard looks like:
Guard byPathGuard = new
Guard(getContext(),ChallengeScheme.HTTP_BASIC,"Atom User") {
protected boolean checkSecret(String user,char [] password) {
...db lookup code...
}
};
and the guarded application is added through the setNext() method.
--Alex Milowski