Ken Johanson wrote: > Hi all, > > I am able to access the current context's org.apache.catalina.Realm > object using Yoav Shapira's Tomcat-Realm example; however, when I call > Realm.authenticate(String user, String pass), the Principal object that > it returns is not being registered with the session.. > > In other words, subsequent requests (inside the same webapp / context > that I'm calling invoking Realm.authenticate from) just return null for > getRemoteUser() and getPrincipal()... > > Shouldn't authenticate() register the Principal with the Session > automatically? Or do I need to call register() in interface Authenticator? > > Thank, > ken What are you trying to do? From the amount of access you seem to need to Tomcat internals, you might be better off just writing a custom realm and/or authenticator.
Mark --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
