PalisadoesFoundation / pattoo-web

Web front end for the pattoo IoT timeseries data poller
https://palisadoesfoundation.github.io/pattoo.github.io/
GNU General Public License v3.0
2 stars 6 forks source link

Need to have username / password logins for web UI #21

Open palisadoes opened 4 years ago

palisadoes commented 4 years ago
    1. Local database with encrypted passwords generated by a random salt
    2. Using LDAP
gill876 commented 4 years ago

Would using Flask be suitable to create the login page? Also, the flask file would manage the database for the username and password. There would also be an admin page to add more users with different access types. The web pages would have similar styles to the current Pattoo web pages.

palisadoes commented 4 years ago

Yes you’d need to use flask for this task. The real question is what happens after the person logs in. Some suggestions after login.

  1. The ability to do all the tasks a person can do from the command line. The underlying libraries are there, the task would be to create the screens to do this.
  2. At the moment, the pattoo api will accept any validly formatted data that any agent sends. We need a way to prevent this from automatically happening. One way to do this is to have an authorization screen for newly detected agents. The code to ignore such data and flag it in the console until accepted will be required.

Passwords will need to be encrypted with a high security level hash.