First, change authentication to "Web Basic Authentication", then assign an user template from existing users in DB.
Then in auth_login.php, we did this change
Code: Select all
195,196c195,197
< if (isset($_SERVER["HTTP_REFERER"])) {
< $referer = $_SERVER["HTTP_REFERER"];
---
> # Under shib protected site, the referer would be idp, so we'll use REQUEST_URI first
> if (isset($_SERVER["REQUEST_URI"])) {
> $referer = $_SERVER["REQUEST_URI"];
200,201c201,202
< } else if (isset($_SERVER["REQUEST_URI"])) {
< $referer = $_SERVER["REQUEST_URI"];
---
> } else if (isset($_SERVER["HTTP_REFERER"])) {
> $referer = $_SERVER["HTTP_REFERER"];
I don't know if there is any bad implication with this change tho, please comment on the thread if you see any.