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

let upstream middleware (e.g. fastcgi and cgi) know about authenticated user #96

Merged
merged 1 commit into from Dec 26, 2018

Conversation

magikstm
Copy link
Contributor

@magikstm magikstm commented Dec 9, 2018

Fixes #94.

Tested on Windows 7 x64 with PHP 7.3.0 and it sets value for $_SERVER['REMOTE_USER']. This value is empty when user isn't logged in.

Implemented like Caddy's basicauth:
https://github.com/mholt/caddy/blob/master/caddyhttp/basicauth/basicauth.go#L80

I tried adding tests, but I've not been able to for now.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 90.595% when pulling f836aef on magikstm:issue-94 into 23bd16e on tarent:master.

@magikstm
Copy link
Contributor Author

@smancke could you please review this PR?

It would be great if it could be added in a new release.

@smancke
Copy link
Member

smancke commented Dec 21, 2018

Hi @magikstm , @xombiemp,
sorry for my delays, I plan to do the next release at least at mid of january.
This will be included, than.

@smancke smancke merged commit dfc3994 into qvest-digital:master Dec 26, 2018
greyarch added a commit to greyarch/loginsrv that referenced this pull request Oct 10, 2019
let upstream middleware (e.g. fastcgi and cgi) know about authenticated user
greyarch added a commit to greyarch/loginsrv that referenced this pull request Oct 10, 2019
let upstream middleware (e.g. fastcgi and cgi) know about authenticated user
greyarch added a commit to greyarch/loginsrv that referenced this pull request Oct 10, 2019
let upstream middleware (e.g. fastcgi and cgi) know about authenticated user
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

Successfully merging this pull request may close these issues.

None yet

3 participants