thomasvvugt / fiber-boilerplate

A boilerplate for the Fiber web framework
MIT License
275 stars 45 forks source link

Auth Middleware for API Route is not applied? #14

Open yusrenaltair opened 3 years ago

yusrenaltair commented 3 years ago

Looks like authentication for api routes is not implemented. ex: api/v1/users will display all users without restrictions even though they are not logged in

pilotso11 commented 1 year ago

If you'd like to see a fork of this with a middleware example securing some pages take a look at https://github.com/pilotso11/fiber-boilerplate

This also uses OAUTH2 integration for users as well as the internal DB and adds some additional boilerplate I found useful.