Feature Request: Safari Web App; better login experience
On MacOS, I have found that the best experience is to use the web interface. For the most part, it actually works best if you save it as a web app. The only draw back is the login/logout experience.
In safari, it looks like you need to log in again whenever you quit and reopen safari, and there's no option to stay logged in. When you're logged out, and you need to login, loading the url of the server always take you to the login page.
But, it works differently if you use it as a web app, in this case, when you quit the web app, you get logged out, but, when you reopen the web app, it takes you to the last page you were on (live, captures, Dashboard, etc.) even though you're logged out. The live screen shows all black camera views, and the capture page hangs on "obtaining file list ...". If you select settings, you get a page that tells you you're logged out and has a link to click on to log back in, but there's no way to trigger that login link when you first open the app. The best you can do is to select "log out" from the drop down, only so that you can get back to a login page.
Is there an easy fix for this? An option to stay logged in would be great, or even just a direct line to a login page).
Thanks so much.
Comments
-
I have just tested this, and I can confirm your results. However, this isn't a problem with the way that SecuritySpy handles login/sessions - it seems to be a problem with how these standalone Safari web apps are handling this. SecuritySpy uses cookies to create and maintain login sessions, which is the standard way to handle this. Cookies should be maintained by browsers across different web sessions (e.g. if you quit and reload the web browser, your session is still live and you shouldn't have to log in again), however this doesn't appear to be happening with the web app: the next time the app is loaded, it does not send any cookies to the server, so the server can't authenticate it.
In addition, it isn't even requesting the main index.html page when you load the web app - it seems to be using a cached version (even though SecuritySpy explicitly specifies that this page should not be cached), which is why you see a non-functional interface rather than what should happen, which is a redirect to the login page.
Unfortunately, this behaviour means that SecuritySpy's web interface cannot be used in a standalone Safari web app at this time, and there is no easy workaround we can implement to get it working. Therefore, the best option at this time is to simply use a bookmark in Safari, or drag-drop the URL from the address bar in Safari to the Finder to create a web location shortcut file, and add this file to your Dock for easy access.
