This content has been marked as final.
Show 3 replies
-
1. Re: Strange behaviour of jetty when accessing a protected re
jimbrady Nov 19, 2003 5:31 AM (in response to wdrai)Did you get an answer to this. I have the same problem.
-
2. Re: Strange behaviour of jetty when accessing a protected re
jimbrady Nov 19, 2003 8:22 AM (in response to wdrai)I found the answer. I have a copy of the source.
The problem lies in org.mortbay.http.SecurityConstraint
if (!inRole)
{
Code.warning("AUTH FAILURE: role for "+user.getName());
if ("BASIC".equalsIgnoreCase (authenticator.getAuthMethod()))
((BasicAuthenticator)authenticator).sendChallenge(realm,response);
else
response.sendErrorHttpResponse.__403_Forbidden,
"User not in required role");
return -1; // role failed.
}
i.e. Jetty is programmed to do this for Basic Authentication. Looks like I will have to change to use ssomething else. (sigh!) -
3. Re: Strange behaviour of jetty when accessing a protected re
jonlee Nov 19, 2003 4:42 PM (in response to wdrai)You could change the code. You could also ask the Jetty developers via the Jetty forums about the authentication.