tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ikonne, Ike" <Ike_Iko...@stercomm.com>
Subject RE: How do I get user credential in Tomcat
Date Mon, 01 Aug 2005 23:56:56 GMT
Hi Chris,

Thanks, the information you provided is very useful.

Ike

-----Original Message-----
From: Chris Holden [mailto:ch1902uk@hotmail.com] 
Sent: Monday, August 01, 2005 6:48 PM
To: Tomcat Users List
Subject: Re: How do I get user credential in Tomcat

Well thanks to Frank I have been looking into filters so I'll probably
use
j_security_check and a filter to do what I want.

I did look at BASIC authentication as an alternative, as you can extract
the
user:pass combo from the Authorization header with a little
base64decoding,
have a look at this site you might find it useful
http://www.unix.org.ua/orelly/java-ent/servlet/ch08_01.htm#ch08-3-fm2xml


Chris.


----- Original Message ----- 
From: "Jo" <jojada@speedlegal.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Tuesday, August 02, 2005 12:36 AM
Subject: Re: How do I get user credential in Tomcat


> Previous mails on 'j-security_check & sessions' could give you a
useful
> information.
> Since you're looking at Basic authentication, try to extract the
credential
> from the authorization header.
>
> Jo.-
>
> ----- Original Message ----- 
> From: "Ikonne, Ike" <Ike_Ikonne@stercomm.com>
> To: <tomcat-user@jakarta.apache.org>
> Sent: Tuesday, August 02, 2005 7:30 AM
> Subject: How do I get user credential in Tomcat
>
>
> > Hi all,
> >
> >
> >
> > I am implementing Basic authentication, I would like to make both
the
> > Principal and Credential visible to my
> >
> > servlet being managed by Tomcat, I know how to get the Principal,
but I
> > can't seem to find a away to get the
> >
> > Credential.  Does anyone have an idea as to how I can get this
> > information inside my servlet.
> >
> >
> >
> > Thanks,
> >
> >
> >
> > Ike
> >
> >
> >
> >
> >
> > !DSPAM:42ee992a207451223150608!
> >
>
>
> ---------------------------------------------------------------------
> 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