You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying to debug user login failure using basic auth, I found that the loginpage_hook() function doesn't return anything for isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW'], and so never gets to the 'has credentials' part, instead returning an error of invalid login and nothing further.
I assume you can still log in through the login/index.php page when a user's authentication method is basic?
My Moodle uses a proxy server. Do you think that has anything to with it?
Really struggling here! How can I troubleshoot? Any ideas?
The text was updated successfully, but these errors were encountered:
It sounds like you have already debugged it enough, if the basic auth headers are not getting through to php then it must be a problem further upstream, either in the php setup or in the reverse proxy in front of it.
There is an admin setting auth_basic | debug which you can turn on which dump debugging into extra X- response headers but it won't tell you much you don't already know.
I assume you can still log in through the login/index.php page when a user's authentication method is basic?
While trying to debug user login failure using basic auth, I found that the loginpage_hook() function doesn't return anything for isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW'], and so never gets to the 'has credentials' part, instead returning an error of invalid login and nothing further.
I assume you can still log in through the login/index.php page when a user's authentication method is basic?
My Moodle uses a proxy server. Do you think that has anything to with it?
Really struggling here! How can I troubleshoot? Any ideas?
The text was updated successfully, but these errors were encountered: