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 3 (Latest)

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.
ce83c80ecfcdda99284146e284c080e48219c735 David Trowbridge
reviewboard/accounts/views.py
reviewboard/extensions/hooks.py
Loading...