Following situation: a RaspberryPI is in the local network, and has a webserver on it. it contains a local webpage where the user has to log in.
This local Raspberry is connected to a sensor that reads data. Additionally the user can make some changes to the local page's settings.
When done there is a button, the user clicks and the data is transfered from the local PI to the online webserver. Obviously only if he is logged in. (Online and local have the same accounts)
problems:
how to update the local username/passwords in a safe way? The local raspberry could be stolen, and that should not put all the user accounts to risk. Ideally the accounts stay stored online only, and when the user logs in locally he actually logs in online and the session is valid remotely and locally.
how to send the informations online in a safe way? we are talking of roughly 50 variables to send online.