8 Replies Latest reply on Jan 1, 2009 11:49 PM by sachin1506

    request.getUserPrincipal returns null

    jbosslogin

      Hi,

      I am using JBOSS 3.2.3. I have a filter to do programmatic login. I have DatabaseServerLoginModule configured in the login-config.xml, and I do authentication using loginContext. Right after I get authenticated, if I call request.getUserPrincipal(), it returns null. I would like to know, if I am missing anything here or the programmatic login do not stick the identity in the HTTPServletRequest? Please provide me the solution.

      Thanks in advace!!!