Open petRUShka opened 12 years ago
Agreed. This would be an extremely useful feature.
Though I'm a year late, you can add
proxy_set_header REMOTE_USER $remote_user;
in your nginx config file to setup the request.env['HTTP_REMOTE_USER
] variable.
Or if you're using uwsgi you can add to uwsgi_params
file the following line
uwsgi_param REMOTE_USER $remote_user;
There should be REMOTE_USER enviroment variable following the original CGI standard.
In this case domain username can be accesable by _SERVER['REMOTE_USER'] in PHP or request.env['REMOTE_USER'] in Ruby on Rails.
It is very important part of SSO-based authentication.
For example mod_spnego and mod_auth_kerb for Apache2 do it.