The company where I work use their own authentication server and when user is authenticated, his username is put in session.
When I go to the portal, I'm redirected to authentication server and after sucessful authentication, I'm redirected to JBoss portal.
The problem is that in JBoss portal, I'm not logged in. How can I do to tell Jboss portal to log in with the username that I got from the authentication server?
I hope my question is clear enough.
Take a look at SSO section in the reference guide.
You could provide your implementation of AuthenticationValve and specify that in your portal-server.war/WEB-INF/context.xml
<Valve className="com.yourcompany.portal.identity.AuthenticationValve" logoutURL="/portal" />