Skip to content

Hang with Connection Lost message when using authentication proxy and session times out whilst page is inactive #2074

@colinl

Description

@colinl

Current Behavior

When using an authentication proxy such as cloudflare zero trust and the authentication session times out whilst the page is inactive (for example the PC is suspended or when running on a mobile device the OS puts the browser to sleep) then a Connection Lost is shown when the page is activated and remains shown until 5 minutes have elapsed or the page is refreshed.
The same effect can be seen if the machine is left active, then after the session has expired disconnect the network connection between the browser and the server, wait (about 30 secs) for errors to appear in the developer console and then reconnect the network. The developer console will continue to show errors for 5 minutes before showing the login request.
If the browser developer console is opened it can be seen that the software is repeatedly trying to open the websocket connection but this fails because it gets redirected to the login session. After 5 minutes this times out and the s/w reloads the page, which brings up the login screen.

Expected Behavior

The user should be taken to the login screen.

Steps To Reproduce

  1. Open a dashboard page in a browser on a PC
  2. Suspend the PC
  3. Wait for the authentication session to expire, or revoke the session
  4. Resume the PC

OR

  1. Open a dashboard page in a browser on a PC
  2. Wait for the authentication session to expire, or revoke the session
  3. Disconnect the network between browser and node red
  4. Wait for transport errors in the developer console
  5. Reconnect the network

Environment

  • Dashboard version: 1.30.2
  • Node-RED version: 4.1.7
  • Node.js version: 20.20.0
  • npm version:
  • Platform/OS: Ubuntu on Laptop
  • Browser: Edge

Have you provided an initial effort estimate for this issue?

I am not a FlowFuse team member

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageNeeds looking at to decide what to do

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions