Subject: Re: Login Question
From: "Vic C." <[EMAIL PROTECTED]>
 ===
As this post says
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg36670.html

to extend JAAS you do this:
(i cut and paste now)
"
Then if you want more you do servlet api, getuserpricipal or 
getremoteuser, snipet:
         String authenUser = ae.getReq().getUserPrincipal().getName(); 
//security
         UserBean userBn = new UserBean();
         userBn.find(authenUser);
         String userid = userBn.getId();
         frm.setUserid(userid);

Here is a link on servlet api
http://java.sun.com/webservices/docs/ea2/api/";

V




Graham Lounder wrote:
> I've searched the archives on this one.  There is a lot of information but I
> can't seem to find what I'm looking for.
> 
> I'm currently using form based authentication in my application.  Works
> great.  The problem is that now I need to add some business logic checks to
> the mix (such as 'does the current user have an active account').  What is
> the recommended way of doing this?  Add a filter?  Session Listener?  Do I
> need to get rid of my form based authentication and role my own solution?
> 
> Any Ideas?
> Graham
> 
> ============================================
>   Graham Lounder
>   Java Developer
>   Spatial Components Division
>   CARIS
>   264 Rookwood Ave
>   Fredericton NB E3B-2M2
>   Office 506 462-4218
>   Fax    506 459-3849
>   [EMAIL PROTECTED]
>   http://www.spatialcomponents.com
> ============================================
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to