Is there a programmatic way to force a user to authenticate without using a
security-constraint in web.xml? It seems like I should be able to do something
like:
String myremotename = request.getRemoteUser();
if (myremotename == null){
LoginConfig myconfig = new LoginConfig();
myconfig.setAuthMethod("FORM");
myconfig.setErrorPage("/admin/error.html");
myconfig.setLoginPage("/admin/Login");
myconfig.setRealmName("My Login");
if (authenticate(request, response, myconfig)){
return;
}
} else {
out.println("username: " + myremotename + "<br>");
}
but needless to say, that doesn't work -- I've been through the javadocs and
source and can't figure it out. hints?
Thanks,
Adi
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>