-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Set basic auth from admin page #9
Comments
I don't think you should need to set up HTTP Basic Auth manually if you enable the checkbox on the SatisPress admin screen. Package downloads are proxied through PHP so it can handle authentication using the users that are available in WordPress. If you try accessing the packages in the same browser window that is logged in to WordPress, then your existing cookies will prevent the Basic Auth prompt from displaying. You'll need to test from a private window. |
Ah, there's no indication anywhere that the WP username and WP password are the way to get access in a private window. I'll give it a try. |
Still having trouble with the WP user and password being recognised. I'm wondering if http://php.net/manual/en/features.http-auth.php#114877 is relevant here. |
Some CGI/FastCGI implementations don't set the PHP_AUTH_* variables, so potentially set them from a .htaccess environment rule. See https://github.com/blazersix/satispress/wiki/Basic-Auth and http://stackoverflow.com/questions/3663520/php-auth-user-not-set See #9.
@bradyvercher Would you be happy for this to be merged into |
Will this only work if someone manually sets the environment variable in .htaccess? I believe there's a related issue and potentially some code in the OAuth repo for the WP REST API that might shed some more light on this. In any case, merging it into |
Yes. If it's not set, this code should do nothing. |
Actually, on a closer look, I don't think this will work as is. It assumes the auth scheme is always There's a lot more discussion over in the WP API repos about how to work around this, but I haven't seen a solution. |
For whatever reason, I'm struggling to set HTTP Basic Auth on the right folder, either manually, or through my hosts cPanel.
Since SatisPress appears to be creating a
.htaccess
file in theuploads/satispress
directory anyway, it would be cool if SatisPress could have the option of creating the .htpasswd too and update the.htaccess
file.The text was updated successfully, but these errors were encountered: