0 Replies Latest reply on Feb 28, 2014 4:59 AM by cfillot

    UserPrincipal lost with Servlet 3.0 programmatic login

    cfillot

      Hello all,

       

      I've a JSF application that uses HttpServletRequest.login() for user authentication (the authentication is done through a

      dedicated security domain in Wildfly configuration). I get the current user with FacesContext.getCurrentInstance().getExternalContext().getUserPrincipal().

      This worked perfectly with JBoss EAP 6.1. Now with Wildfly 8.0.0.Final, getUserPrincipal() returns null when I navigate to another page. It seems that

      the security info is lost (calls to secured EJB from a JSF bean fail with an EJBAccessException).

       

      Thanks in advance for any suggestion,

       

      Christophe