RE: Getting USERNAME/PASSWORD from HTTP headers
request.getUserPrincipal().getName() if you use an auth-method -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Getting USERNAME/PASSWORD from HTTP headers
request.getHeader() see the documentation for HttpServletRequest On 5/23/02 12:27 PM, Donie Kelly [EMAIL PROTECTED] wrote: Hi all How do I get the username and password from the http authentication headers... Thanks Donie -- 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]
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:[EMAIL PROTECTED]] 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 [EMAIL PROTECTED] wrote: Hi all How do I get the username and password from the http authentication headers... Thanks Donie -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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 [EMAIL PROTECTED] wrote: Hi all How do I get the username and password from the http authentication headers... Thanks Donie -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Getting USERNAME/PASSWORD from HTTP headers
i believe there is free code somewhere available for this -- it's really easy. search google for base64 decode java source it's the second result. it's public domain with no restrictions. fillup On 5/23/02 12:35 PM, Donie Kelly [EMAIL PROTECTED] wrote: 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:[EMAIL PROTECTED]] 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 [EMAIL PROTECTED] wrote: Hi all How do I get the username and password from the http authentication headers... Thanks Donie -- 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] -- 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]
RE: Getting USERNAME/PASSWORD from HTTP headers
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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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 [EMAIL PROTECTED] wrote: Hi all How do I get the username and password from the http authentication headers... Thanks Donie -- 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] -- 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]
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 [EMAIL PROTECTED] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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 [EMAIL PROTECTED] wrote: Hi all How do I get the username and password from the http authentication headers... Thanks Donie -- 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] -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Getting USERNAME/PASSWORD from HTTP headers
OK fillup, I'll do that :( Donie -Original Message- From: Phillip Morelock [mailto:[EMAIL PROTECTED]] 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 [EMAIL PROTECTED] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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 [EMAIL PROTECTED] wrote: Hi all How do I get the username and password from the http authentication headers... Thanks Donie -- 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] -- 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] -- 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]