Infinite Loop with HTTP Auth
-
Hi there – I think I’ve tracked down an issue and I wanted to share. We wanted to use HTTP Auth to restrict access to a development site. It seems there is a conflict with the HTTP Auth you all are using for API requests. Around line 106 of RestAPIAuth.php, there is an error message generated that uses translation. I believe the translation call is also requiring an auth check, which is leading to an infinite loop. My stopgap solution was to just remove the translation call from the error message, but you all likely have a better solution.
Steps to replicate:
– setup HTTP Auth or add plugin to do so and enable it
– attempt to go to any Masteriyo backend page, it will not render and cause issues. I needed to use xdebug to limit the loop otherwise it was challenging to get logs.
– disable the HTTP Auth or plugin (must be disabled, not just turned off)
– Masteriyo CMS pages render as expected
You must be logged in to reply to this topic.