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

Proxy issues? #41

Open
PickledKitty opened this issue Aug 17, 2022 · 1 comment
Open

Proxy issues? #41

PickledKitty opened this issue Aug 17, 2022 · 1 comment

Comments

@PickledKitty
Copy link

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?

@brendanheywood
Copy link
Contributor

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?

Yes, but as always test it

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

No branches or pull requests

2 participants