This content has been marked as final.
Show 2 replies
-
1. Re: costum auth-method
starksm64 Feb 21, 2005 12:51 PM (in response to felderr)You can install a custom authenticator using a tomcat valve. Tomcat looks to a org/apache/catalina/startup/Authenticators.properties file to find the mapping from the auth type to the default authenticator. You can create such a properties on the classpath (under the conf dir for example) and replace the authenticator with your own.
BASIC=org.apache.catalina.authenticator.BasicAuthenticator
CLIENT-CERT=org.apache.catalina.authenticator.SSLAuthenticator
DIGEST=org.apache.catalina.authenticator.DigestAuthenticator
FORM=org.apache.catalina.authenticator.FormAuthenticator
NONE=org.apache.catalina.authenticator.NonLoginAuthenticator -
2. Re: costum auth-method
ricardoarguello Feb 21, 2005 2:50 PM (in response to felderr)request.getUserPrincipal()
This only works on a secured page