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

    UserPrincipal lost with Servlet 3.0 programmatic login

    Christophe Fillot Newbie

      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