tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: get User object from tomcat
Date Fri, 14 Feb 2003 05:26:27 GMT

"Barney Hamish" <Hamish.Barney@ect-telecoms.de> wrote in message
news:11EF704D97C1D41186520002B30902C9465B2B@mucs001.ect-telecoms.de...
> You can't. You need to go and retrieve whatever other info from your
> database yourself probably using the username as the primary key.
> Hamish
>

Or implement your own custom Realm, which implements it's own custom
Principal that you can cast to to get the additional info you need.

> > -----Original Message-----
> > From: fangfang cai [mailto:fcai@findlaw.com]
> > Sent: Thursday, February 13, 2003 6:01 PM
> > To: Tomcat Users List
> > Subject: RE: get User object from tomcat
> >
> >
> > But how can we get the all user info from principal
> > like user fullname?
> >
> > -Fang
> >
> > -----Original Message-----
> > From: Jeanfrancois Arcand [mailto:jfarcand@apache.org]
> > Sent: Wednesday, February 12, 2003 8:24 PM
> > To: Tomcat Users List
> > Subject: Re: get User object from tomcat
> >
> >
> > Humm...not clear. I guess you mean the principal. Looks at:
> >
> > HttpServletRequest.getUserPrincipal() that returns the current
> > authenticated user
> > HttpServletRequest.isUserInRole(String role) to see if the current
> > authenticated user is included in the specified logical role.
> >
> > -- Jeanfrancois
> >
> > fangfang cai wrote:
> >
> > >Hi,
> > >
> > >Does anyone know how to get the User object(MemoryUser object) which
> > >contains user's fullname, roles .....?
> > >
> > >Thanks,
> > >
> > >Fang
> > >
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > >
> > >
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message