I have another web service reading scada data from file or DB for plotting figures on the same server.
The web is embedded to scada interface as iframe.
But this web service has no user authentication, so the user can bypass scada and enter this webpage by entering the url directly.
Is there any way to user check scada user authentication, so that this web service decide whether to show so information or not.
User auth information is stored in cookies. Browser protects cookies from access by other websites. So your web service cannot get login information, because it has another origin and another browser session.
May be it’s possible if you somehow join the Webstation web app and your web service in a one origin (host and port).
In V5 there is a Grafana integration module, how’s that deal with the user authentication? Or they are 2 complete different service with different authentication?
I am thinking it is possible to store the login authentication in Webstation, let the Webstation to pass the authentication info and login when going to the views embedding the my other service.
Integration with Grafana is similar. Grafana dashboards have URL with long GUID. Depending on the settings, they can be open separately by a user who knows that URL.
Rapid SCADA web page can interact with your page by sending HTTP requests. POST requests more hidden from a user comparing with GET requests. For example, your page may require special POST request before providing data.