Any way to get cgi.auth_user populated

Hello,

I’m using Lucee with an HTTP proxy, similar to the setup in the Lucee Docker image. Before version 6.0.1.83, cgi.remote_user was empty but I could populate cgi.auth_user by sending the auth_user header from the web server.

However, since updating to version 6.0.1.83, cgi.auth_user is now empty, even though the header is still present in getHttpHeaders().

I noticed that LDEV-4126 was supposed to set the same value for cgi.auth_user and cgi.remote_user, but now both are empty.

I’ve come across solutions involving the AJP connector, but I haven’t found anything specific to the HTTP proxy setup.

Any help would be appreciated!

There’s probably a more elegant solution, but one thing you can do is make the CGI scope writable in the Lucee server admin, then set the value from the headers in your app’s onRequestStart()

1 Like