[jboss-user] [JBoss Seam] - Re: Seam security example failure.

Dabubble do-not-reply at jboss.com
Wed Nov 22 19:25:15 EST 2006


anonymous wrote : 
  | 2.) I tried using a custom principal class (UserInformation implements Principal) by specifying the principalClass option for my login module and it was used throughout the login process. however in my web app I always got a SimplePrincipal object, when doing
  | 

You have to override the login() method in you CustomLoginModule in order to use your own principal.

ex:

public boolean login() throws LoginException
   {
      if (super.login())
      {
         caller = new CustomPrincipal(getUsername());
         return true;
      }
      return false;
   }


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988020#3988020

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988020



More information about the jboss-user mailing list