I try to use login module, "org.jboss.security.auth.spi.UsersRolesLoginModule", to perform authetication. But it seems not support <redirect /> tag in faces-config.xml.

I paste here.

<navigation-case>

<from-outcome>SUCCESS</from-outcome>

<to-view-id>/pages/home/home.xhtml</to-view-id>

<redirect/>

</navigation-case>

I feel that if using <redirect />, it will generate another thread. The previous info (which using LoginContext.login() retrieved) will be lost in new thread. Thus system will push you back to the login page that define in form-login-page section of web.xml file.

So, is there any solution about this issue, can somebody help me? Thanks a lot.