TRIRIGA

 View Only

UX Offline Mode with SSO not working

  • 1.  UX Offline Mode with SSO not working

    Posted Fri April 22, 2022 12:34 PM
    Has anyone gotten UX offline mode to work with SSO? 
    We are implementing the workTaskServices UX app and with both Offline Mode and SSO enabled we run into an issue where the user gets "stuck" in offline mode. 

    To Recreate the issue: ( you must have both SSO and Offline mode enabled running with HTTPS )
    1. Clear your browser cache to ensure a clean test
    2. Open the browser and navigate directly to the workTaskServices URL.
    3. First time login is successful and data is downloaded to the users device.
    4. Close the browser
    5. Open the browser and navigate directly to the workTaskServices URL.
    6. The workTaskServices app says you are in offline mode (even though you are not offline) and there is no way to get back to online mode.

    The underlying problem seems to be in the service worker. 
    It does not seem to properly handle the redirects that occur as part of the SSO process.
    Additionally the SSO redirect that happen from the /p/webapi/echo calls from the service worker are receiving CORS errors, so the service worker never thinks that the device is back online

    ------------------------------
    Robert Nenne
    ------------------------------