tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donie Kelly <donie.ke...@tecnomen.ie>
Subject RE: Getting USERNAME/PASSWORD from HTTP headers
Date Thu, 23 May 2002 20:24:32 GMT
OK fillup, I'll do that :( 

Donie


 -----Original Message-----
From: 	Phillip Morelock [mailto:subscriptions@phillipmorelock.com] 
Sent:	23 May 2002 21:27
To:	Tomcat Users List
Subject:	Re: Getting USERNAME/PASSWORD from HTTP headers

there have been several discussions here of problems with getRemoteUser and
my only advice will be to repeat that you should just grab raw headers --
even if just for debugging.  This has always worked for me quite well.

That code link I sent provides direct base64-->String decoding.

fillup


On 5/23/02 1:19 PM, "Donie Kelly" <donie.kelly@tecnomen.ie> wrote:

> Thanks Llyod, I'm using Tomcat in standalone mode and getRemoteUser()
> returned null?? I'm using tomcat 4.0.1
> 
> Thanks
> Donie
> 
> 
> -----Original Message-----
> From:     Lloyd Meinholz [mailto:Meinholz@bmpcoe.org]
> Sent:    23 May 2002 20:48
> To:    'Tomcat Users List'
> Subject:    RE: Getting USERNAME/PASSWORD from HTTP headers
> 
> This nice way is: request.getRemoteUser(). However, this doesn't seem to
> work with mod_webapp, I haven't figured out why and no one had an
> explanation when I asked. I'm using an ugly base64 decode as a work around
> until I get another connector working. getRemoteUser() does seem to work
> (from what others have posted) with jk if you put the following in the
> connector part of you server.xml
> 
> tomcatAuthentication="false"
> 
> I haven't figured out what relation coyote has to all this, related to jk,
> competitor, etc. Seems to be different than mod_webapp.
> 
> Lloyd
> 
> 
>> -----Original Message-----
>> From: Donie Kelly [mailto:donie.kelly@tecnomen.ie]
>> Sent: Thursday, May 23, 2002 3:35 PM
>> To: 'Tomcat Users List'
>> Subject: RE: Getting USERNAME/PASSWORD from HTTP headers
>> 
>> 
>> That's grand but I then have to base64 decode the result. I
>> was hoping there
>> was a nice way ;)
>> 
>> Donie
>> 
>> 
>>  -----Original Message-----
>> From:     Phillip Morelock
>> [mailto:subscriptions@phillipmorelock.com]
>> Sent:    23 May 2002 20:38
>> To:    Tomcat Users List
>> Subject:    Re: Getting USERNAME/PASSWORD from HTTP headers
>> 
>> request.getHeader()
>> 
>> see the documentation for HttpServletRequest
>> 
>> 
>> 
>> 
>> On 5/23/02 12:27 PM, "Donie Kelly" <donie.kelly@tecnomen.ie> wrote:
>> 
>>> Hi all
>>> 
>>> How do I get the username and password from the http authentication
>>> headers...
>>> 
>>> Thanks
>>> 
>>> Donie
>>> 
>>> 
>>> 
>>> --
>>> To unsubscribe, e-mail:
>> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>>> For additional commands, e-mail:
>> <mailto:tomcat-user-help@jakarta.apache.org>
>>> 
>> 
>> 
>> --
>> To unsubscribe, e-mail:
>> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>> For additional commands, e-mail:
>> <mailto:tomcat-user-help@jakarta.apache.org>
>> 
>> --
>> To unsubscribe, e-mail:
>> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>> For additional commands, e-mail:
>> <mailto:tomcat-user-help@jakarta.apache.org>
>> 
> 
> --
> To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>
> 


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

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


Mime
View raw message