From: "Mariusz Pękala" Date: 2007-05-31T21:11:05+09:00 Subject: Re: How can access to AUTH_USER? --St7VIuEGZ6dlpu13 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2007-05-31 20:35:10 +0900 (Thu, May), music wrote: > Robert Klemme wrote: > >On 30.05.2007 16:05, music wrote: > >>With php I can access to AUTH_USER and REMOTE_ADDR to know the=20 > >>authenticated user and the ip from which he come. > >>With ruby there is available REMOTE_ADDR but not AUTH_USER. > >>How can I access to the authenticated users? > > > >Guessing that you are talking about CGI the value is likely accessible= =20 > >via ENV['AUTH_USER'] *if* the webserver you are using chose to put it=20 > >there (i.e. if it supports authentication and the user actually=20 > >authenticated). Just guessing of course... >=20 > Yes I'm talking about cgi in ruby. > I've used ENV["AUTH_USER"] but it has no value. > In php the variable AUTH_USER give me the authenticated user in ruby no. >=20 Look for HTTP_AUTH_USER, maybe. --=20 No virus found in this outgoing message. Checked by 'grep -i virus $MESSAGE' Trust me. --St7VIuEGZ6dlpu13 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7-ecc0.1.6 (GNU/Linux) iD8DBQFGXrtMsnU0scoWZKARAgpHAKCAHOdTTTCDeBFGEckThmBbTnBoOQCcCaiR iCF0aERBXDnbmSjptEPQJY4= =Mwby -----END PGP SIGNATURE----- --St7VIuEGZ6dlpu13--