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

Fix for Basic Auth not being passed through with PHP in CGI mode #32

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

graham73may
Copy link

#1 Issue fixed.

PHP_AUTH_USER & PHP_AUTH_PW are now being set if PHP is using fast CGI

@mnelson4
Copy link

mnelson4 commented May 9, 2016

FYI pulled into https://github.com/eventespresso/Basic-Auth

@sebastienbarre
Copy link

This is sorely needed, this was hard to track. Please consider merging.

@kadamwhite
Copy link
Contributor

Just flagged this in core slack to see if @rmccue et al can take a look

@bigandy
Copy link

bigandy commented Dec 8, 2016

Any progress on this issue? For the moment I am using @mnelson4 version https://github.com/eventespresso/Basic-Auth which works A+

@alkema
Copy link

alkema commented Apr 5, 2017

The solution developed here https://github.com/eventespresso/Basic-Auth is the best one in my opinion because it does not suggest any Apache-specific solutions. The handling of HTTP headers is best handled in PHP, then the plugin just works with any web server. Thanks @mnelson4!

@kadamwhite
Copy link
Contributor

@rmccue Could you review this?

@MrToph
Copy link

MrToph commented Feb 15, 2018

Thanks so much, this fixed my issue with Basic Authentication not working 👍

Copy link

@Tug Tug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is quite an old one but I did a similar patch and just found out about this PR :)

This should be quite useful for sites who use CGI/FastCGI imo!

basic-auth.php Outdated Show resolved Hide resolved
basic-auth.php Outdated Show resolved Hide resolved
basic-auth.php Outdated Show resolved Hide resolved
basic-auth.php Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@Ipstenu
Copy link

Ipstenu commented May 22, 2020

This was approved a year ago.

A number of hosts use FastCGI and telling customers to use an htaccess workaround to force HTTP for auth is not really a good security practice. Can this please be revisited for WP 5.5?

@graham73may
Copy link
Author

I know this is an incredibly old PR at this point but I've resolved the review comments in the hope that this might be merged one day.

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.