-
Notifications
You must be signed in to change notification settings - Fork 2
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
Authentication doesn't work #1
Comments
Experimentation with running cli scripts through php-fpm look promising. In basic tests, References: |
While authentication still isn't working, running PHP-PM under PHP-FPM does allow the request to pass the I'll post notes about this setup when I get a chance. |
Upon further inspection, I think the authentication and other form submission issues are more likely due to the apparent lack of support for cookies and POST data in I've made a pull request for the cookies and am experimenting with POST data. |
I take it back. POST is supported: // parse body?
if (isset($headers['Content-Type']) && (0 === strpos($headers['Content-Type'], 'application/x-www-form-urlencoded'))
&& in_array(strtoupper($method), array('POST', 'PUT', 'DELETE', 'PATCH'))
) {
parse_str($content, $post);
} |
I can't consistently log in when running Drupal under php-pm. I suspect this is somewhat due to it running under the
cli
SAPI, based on stepping through a request process and observing behavior around lines such as this in\Drupal\Core\StackMiddleware\Session::handle()
:Given that there are several other cases of guards for
PHP_SAPI !== 'cli'
in core, it's probably a broader problem.The text was updated successfully, but these errors were encountered: