-
Notifications
You must be signed in to change notification settings - Fork 79
Hang with Connection Lost message when using authentication proxy and session times out whilst page is inactive #2074
Description
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
- Open a dashboard page in a browser on a PC
- Suspend the PC
- Wait for the authentication session to expire, or revoke the session
- Resume the PC
OR
- Open a dashboard page in a browser on a PC
- Wait for the authentication session to expire, or revoke the session
- Disconnect the network between browser and node red
- Wait for transport errors in the developer console
- 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
Labels
Type
Projects
Status