vinitshahdeo / Water-Monitoring-System

Water Monitoring System is an IOT based Liquid Level Monitoring system that has mechanisms to keep the user alerted in case of liquid overflow or when tank depletes.
https://vinitshahdeo.github.io/Water-Monitoring-System/
MIT License
149 stars 263 forks source link

Authorization Token #106

Open ramanaditya opened 4 years ago

ramanaditya commented 4 years ago

Is your feature request related to a problem? Please describe. Since all the hardwares and client application will be directly sending and getting request and from server so for that Authorization token plays an important role. Authorization token will be sent with header that will authorize the user and upon authorization it will allow all the clients to make request to the server.

Describe the solution you'd like In the Django ie., backend side we need to create a token which will be unique for all the users. and that token shall be verified first.

Additional context This should be done in the backend ie., Django using Django Rest Framework.

Mit-Patel commented 4 years ago

I am interested in this task. Please assign me.

Could it be done by using PasswordResetTokenGenerator class?

ramanaditya commented 4 years ago

@Mit-Patel rest_framework.authentication.TokenAuthentication, this class can be used.

Mit-Patel commented 4 years ago

@ramanaditya
Ok. I can do it.

ramanaditya commented 4 years ago

Yeah sure, please work on this and raise a PR once everything is fine

Mit-Patel commented 4 years ago

Please review this. #130

Mit-Patel commented 4 years ago

136