This content has been marked as final.
Show 2 replies
-
1. Re: Unexpected behaviour of jetty when accessing a restricte
jimbrady Nov 19, 2003 4:38 AM (in response to wdrai)Did you get an answer to this. I have the same problem.
-
2. Re: Unexpected behaviour of jetty when accessing a restricte
jimbrady Nov 19, 2003 8:21 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!)