Skip to content
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

24h Temperature Chart #3

Closed
4 tasks done
ZempTime opened this issue May 26, 2018 · 1 comment
Closed
4 tasks done

24h Temperature Chart #3

ZempTime opened this issue May 26, 2018 · 1 comment

Comments

@ZempTime
Copy link
Collaborator

ZempTime commented May 26, 2018

  • initial auth request
  • query for temps
  • adapt feed temps into graph
  • avg temp calc

Possibly Included:

  • (celsius/centigrade) and fahrenheight conversions
@webbhm
Copy link

webbhm commented May 27, 2018

Security and Authentication is brilliantly simple with CouchDB. _users is a special database of users (except for sys admin). Only sys admin and the owner of the record can query a record in the _users database (table).
To authenticate a user, simply query _users for the user name, passing the users credentials (name and pwd). If you get the record back, they are authenticated.
Anyone can create a record in this table, but users cannot create roles on their own record (you cannot grant access to a database to yourself)
Since the _users record is JSON, you can add additional structures to the dictionary. I am simply storing a list of MVPs (uuid) that a user has permission to query in the _user record, then when they validate themselves, I can display the MVPs they can select from when they now run a query for data.
Try it out with any of the dummy users I created in 5985.

This was referenced May 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants