Hello guys, I hope someone is willing to help me with my problem.
I'm currently developing a portal based on JBoss Portal, and have to use my own LoginModule for authentication because of some specific contraints to the authentication model.
My problem is that if I login using a LoginContext, this all works fine within the portlet I called the LoginContext on, but when I switch to another page or portlet, my subject is gone.
Subject mySubject = (Subject)PolicyContext.getContext("javax.security.auth.Subject.container");