Fix bugs in SSO autologin.

Review Request #12999 — Created May 1, 2023 and submitted — Latest diff uploaded

Information

Review Board
release-5.0.x

Reviewers

The port of the SSO autologin to 5.0.x had a couple problems. First, we
were using a bad reference for the ItemLookupError check. Second,
django had deprecated is_safe_url and 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
flow.

Diff Revision 2

This is not the most recent revision of the diff. The latest diff is revision 3. See what's changed.

orig
1
2
3

Commits

First Last Summary ID Author
Fix bugs in SSO autologin.
The port of the SSO autologin to 5.0.x had a couple problems. First, we were using a bad reference for the `ItemLookupError` check. Second, django had deprecated `is_safe_url` and inadventantly changed the way it works in the process. This change updates the code to use its successor in the correct way. Testing Done: Enabled SSO auto-login and was able to successfully go through the login flow.
fd49c284f966b580921503cccc169bad3c523880 David Trowbridge
reviewboard/accounts/views.py
Loading...