-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 07/06/2016 01:05 PM, Michael Merickel wrote:
> REMOTE_USER is a special variable with a specific meaning. It's not
> some generic variable for identifying your user unless you have taken
> steps to have REMOTE_USER set. It is a way for a webserver
REMOTE_USER is a special variable with a specific meaning. It's not some
generic variable for identifying your user unless you have taken steps to
have REMOTE_USER set. It is a way for a webserver upstream of you to
identify the credentials and pass them down to your app in a secure way.
Anyway,
Hello,
I try to use get the request.remote_user method in an existing pyramid
project.
What I tried is this:
logging.error(request.remote_user)
logging.error(request.environ.get('REMOTE_USER'))
logging.error(type(request))
With this results:
*2016-07-05 18:08:36,335 ERROR