• 
      

    Fix bugs in SSO autologin.

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

    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.

    Summary ID
    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
    Description From Last Updated

    line too long (85 > 79 characters) Column: 80 Error code: E501

    reviewbot reviewbot

    This needs to be changed to ItemLookupError too.

    maubin maubin
    Checks run (1 failed, 1 succeeded)
    flake8 failed.
    JSHint passed.

    flake8

    david
    maubin
    1. Thanks for adding this, was gonna make a change for it later.

    2. reviewboard/accounts/views.py (Diff revision 2)
       
       
      Show all issues

      This needs to be changed to ItemLookupError too.

    3. 
        
    david
    maubin
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-5.0.x (1ef483e)