Please, I need you help. I have an application running on Tomcat and a JAAS module. Before JAAS, I use a filter, in order to get some parameters from httprequest. In this filter, I create LoginContext with my jaas login and call the login()method. All goes fine, the commit returns true and all is good.
I get subject from session:
session.setAttribute("javax.security.auth.subject", subject);
in this subject I put the principal that is created. The problem is that after login, everything is like this login was never called. Then user is not authenticated and I become a blank page. What is wrong?
I guess that Tomcat doesn't accept theLoginContext I created or something like that, but what can I do to fix that? Thanks in advance!