WOEIP / truck-tracker

trucktracker.net
1 stars 0 forks source link

Authenticate API Requests #85

Open Ajay-Vishwanath opened 3 years ago

Ajay-Vishwanath commented 3 years ago

Right now - our APIs are exposed where you can navigate to 'api.trucktracker.net/users' for example and see all the user information including sensitive data. We need to secure these endpoints.

motching commented 3 years ago

We probably should create a middleware for authorization checking, like here

https://jaketrent.com/post/local-auth-koa-api

Our architecture is dynamically assembling routes so it's a little different than the example but the gist should be the same