mfa redirection issue in Moodle 4.5.2

mfa redirection issue in Moodle 4.5.2

by Holger Schultheis -
Number of replies: 2

We are running Moodle 4.5.2 behind a reverse proxy and would like to enable the mfa plugin. But when we do this, users cannot login because of a redirect exception.

I was able to trace this to the Circular checks in manager.php (see screenshot), but I have no idea what to do about this. Is the reverse proxy the problem or anything else?

Any hints are appreciated.

Attachment Screenshot 2025-03-18 133450.png
Average of ratings: -
In reply to Holger Schultheis

mfa redirection issue in Moodle 4.5.2

by Raymond Frangie -
Hi Holger,
 
I don't think it's an issue with your reverse proxy, as I'm not using one, and I just got the same problem on Moodle 5.0 with OAuth2.

My instance has MFA enabled. OAuth2 works great with Microsoft, authenticates, and then goes to the User Profile screen (as there are some other mandatory fields they need to complete). Once they click on Update Profile, I get the redirect error:

image.png
 
The URL it is trying to redirect to is 
https://<<domain>>/admin/tool/policy/view.php?versionid=2&returnurl=https%3A%2F%2F<<domain>>%2Fadmin%2Ftool%2Fpolicy%2Findex.php
 
I can't seem to work out a resolution to the issue yet. Did you manage to find any other clues as to what the problem could be?
 
Cheers,
Ray