Fix bugs in SSO autologin.
Review Request #12999 — Created May 1, 2023 and submitted
The port of the SSO autologin to 5.0.x had a couple problems. First, we
were using a bad reference for the
django had deprecated
is_safe_urland inadventantly changed the way it
works in the process. This change updates the code to use its successor
in the correct way.
Enabled SSO auto-login and was able to successfully go through the login