Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Story Points:
      3
    • Sprint:
      Spring 5 : 16 Mar to 27 Mar, Spring 6 : 30 Mar to Apr 10, Spring 7 : 13 Apr to 24 Apr, Spring 8 : 24 Apr to 8 May, Spring 8 : 11 May to 25 May, Spring 9 : 25 May to 8 Jun, Summer 1: 8 Jun - 19 Jun

      Description

      Situation: The access token generated by CyVerse automatically expires after 57,600 seconds (16 hours). This effectively forces users to log back in to the system every day. Unfortunately there is no way around this as refresh tokens do not exist for the Terrain API (as of March 23, 2020). After the access token has expired, if a user does anything in BioViz Connect that requires an API call, they receive an error (for example that files/folders could not be retrieved). This is somewhat confusing as it appears that something has gone wrong on our end.

      Task: Come up with a user-friendly way to log the user out after 16 hours. Something like: after 16 hours the user receives a notification/popup informing them that their session has expired and that they will need to re-login. There would be a button that would return them to the CyVerse-BioViz Connect login page so they could quickly re-enter their credentials and then get back to work.

        Attachments

          Issue Links

            Activity

            Hide
            nfreese Nowlan Freese added a comment -

            Testing on Mac on chaitanya.bioviz.org on Firefox.

            Using the logout URL to test: https://auth.cyverse.org/cas5/logout?service=https://chaitanya.bioviz.org/

            User redirected successfully to prior location if in analyses log, home directory, shared, or community.

            BioViz Connect breaks if the user is in Search when logged out. When I logged back in and it tried to redirect back to Search, it then logged me back out again and upon logging in went to connect.bioviz.org.

            Show
            nfreese Nowlan Freese added a comment - Testing on Mac on chaitanya.bioviz.org on Firefox. Using the logout URL to test: https://auth.cyverse.org/cas5/logout?service=https://chaitanya.bioviz.org/ User redirected successfully to prior location if in analyses log, home directory, shared, or community. BioViz Connect breaks if the user is in Search when logged out. When I logged back in and it tried to redirect back to Search, it then logged me back out again and upon logging in went to connect.bioviz.org.
            Hide
            nfreese Nowlan Freese added a comment -

            For the redis expiry, make sure we update the documentation for setting up the redis database.

            Show
            nfreese Nowlan Freese added a comment - For the redis expiry, make sure we update the documentation for setting up the redis database.
            Hide
            chaitanya Chaitanya Kintali (Inactive) added a comment -

            One Edge Case to keep in mind for future purposes.

            1) Search for a file
            2) Hit the logout URL in another tab
            3) Refresh the page

            The user is redirected to the login page and when logged back in the user is shown a new list of files. The root cause for this issue is the page cannot identify which section the user is currently in from the URL after a page refresh.

            All other Scenario's are working as expected.

            Show
            chaitanya Chaitanya Kintali (Inactive) added a comment - One Edge Case to keep in mind for future purposes. 1) Search for a file 2) Hit the logout URL in another tab 3) Refresh the page The user is redirected to the login page and when logged back in the user is shown a new list of files. The root cause for this issue is the page cannot identify which section the user is currently in from the URL after a page refresh. All other Scenario's are working as expected.
            Show
            nfreese Nowlan Freese added a comment - Merged https://bitbucket.org/nfreese/django-cyversedev/pull-requests/169/master/diff
            Hide
            nfreese Nowlan Freese added a comment -

            Working correctly, closing issue.

            Show
            nfreese Nowlan Freese added a comment - Working correctly, closing issue.

              People

              • Assignee:
                chaitanya Chaitanya Kintali (Inactive)
                Reporter:
                nfreese Nowlan Freese
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: