WearableIntelligenceSystem icon indicating copy to clipboard operation
WearableIntelligenceSystem copied to clipboard

Add user accounts and secure endpoints with JWT

Open simonevetere opened this issue 1 year ago • 0 comments

  • [ ] adding user accounts, a frontend to make new accounts
  • [ ] saving transcripts with userids
  • [ ] JWT to secure endpoints
    JWT token : we need to expose a login http://127.0.0.1:5000/login to which username and password will be passed (eg {"user": "simonexyz", "password": "my_password"}, all this must already be encrypted according to a predefined client / server key), if the user exists in the database, the token must be returned to the user, with which he can encrypt and send the message, a session must have a maximum duration beyond which it will expire and must be generated another token and renewed the login according to the first step, it will also be more useful to organize a gateway that all the bees will point and verify the authentication, from there it will then be sorted into the various services. example of autentication -> https://www.youtube.com/watch?v=LKveAwao9HA

simonevetere avatar Oct 22 '22 11:10 simonevetere