-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error Accessing Dashboard with FlowFuse Authentication Enabled #1588
Comments
This is stopping a customer (https://app-eu1.hubspot.com/contacts/26586079/record/0-2/10868925937) from using one of our Blueprints. They were planning to roll this out to their UK factory on Monday. It would be very good for their confidence in FF if we can maintain that timeline. |
Just to make sure this has been seen @knolleary @joepavitt |
Investigating now |
So, we know the cause - it's due to the way that Safari caches the auth session. The session token expires (either due to timeout, or due to an underlying instance restart). When a user then navigates to the page, Safari goes to get More details here: https://medium.com/prodigy-engineering/is-safari-getting-stricter-with-cors-8767c809c726#:~:text=If%20you%20have%20an%20issue,control%2Dallow%2Dorigin%20domains |
I have installed MS Edge on MacOS and can reproduce the error (as the customer has reported this on Edge rather than safari). To reproduce, given a NR instance serving dashboard with FF Auth enabled, start with a clean browser session having cleared the cache/cookies for the NR instance.
I have found a difference in behaviour between edge and safari that I cannot currently explain:
|
The root issue here is the PWA handling. The first time a user accesses the page (with nothing cached), Some time later (for example, after the NR instance is restarted as auth sessions are not persistent in the runtime), the user reloads the dashboard.
In digging through the pwa stack, I found some references on handling fetch errors during the service worker cache validation stage, but I couldn't see how to relate them to the apis provided by I see two possible courses of action:
|
Current Behavior
When I try to access the dashboard page while flowfuse authentication is enabled getting following error page, for more information read this slack thread : https://flowforgeworkspace.slack.com/archives/C03FAUBPPJ7/p1737623419750459
Expected Behavior
It should open the dashboard page with a form to enter credentials, or, if already logged in, display the expected dashboard UI.
Steps To Reproduce
Environment
Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate
The text was updated successfully, but these errors were encountered: