Hello,
I've implemented a LoginModule to perform some custom authentication, and call the authentication using the login() method of the LoginContext class. The login module's login() and commit() methods are called successfully, but instead of being able to use the web app I am being sent back to the login page immediately. request.getUserPrincipal() is null, as well as request.getRemoteUser().
Any ideas would be greatly appreciated. Thanks!
ADDITIONAL INFO
Also, right after I call loginContext.login()
on the front end, calling loginContext.getSubject().getPrincipals()
gives me the proper list of principals and roles for the user that just logged in.
I'm using Tomcat 6.0.29 as my server.