2 Replies Latest reply on Sep 16, 2005 2:09 PM by Michael Small

    J2EE Client Authenticated but Subject has no Principals

    alanboshier Newbie

      I'm hoping this is a really easy one to answer.

      I have a JBOSS J2EE application client that is using JAAS to log in and access EJB resources.

      I have a very simple setup for the client - it uses the ClientLoginModule only and a standard UsernamePasswordCallbackHandler. Authentication to the server is clearly working because my credentials are getting mapped to the correct roles inside the server EJBs.

      However in the client app the Subject returned from the LoginContext.login() calls has no Principals i.e.


      returns 0.

      Is there something obvious I've missed in order to allow the client to get at the list of principals?