Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP $_SERVER['REMOTE_USER'] not set #94

Closed
xombiemp opened this issue Dec 9, 2018 · 3 comments
Closed

PHP $_SERVER['REMOTE_USER'] not set #94

xombiemp opened this issue Dec 9, 2018 · 3 comments

Comments

@xombiemp
Copy link

xombiemp commented Dec 9, 2018

I've been able to get Caddy with http.login and http.jwt working with htpasswd. I'm presented with a login page and after I authenticate I can see the resources.

I'm using fastcgi with php-fpm to server php files. The app I'm running relies on $_SERVER['REMOTE_USER'] to get the logged in user, but this variable is not set after I login and try to print it from php.

Is there anything I can do to make sure this variable is populated with the name I authenticated with?

@magikstm
Copy link
Contributor

magikstm commented Dec 9, 2018

Thanks for mentioning this issue. I'm adding this feature to loginsrv.

I'll submit a PR in 1-2h.

@magikstm
Copy link
Contributor

magikstm commented Dec 9, 2018

PR #96 should be reviewed and merged soon. In the meantime, if you can compile yourself, add this PR to your build of Caddy.

@xombiemp
Copy link
Author

Awesome! Thanks for looking at this so quick. I’ve not compiled, but I’ll look into that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants