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

Auth Middleware for API Route is not applied? #14

Open
yusrenaltair opened this issue Sep 9, 2021 · 1 comment
Open

Auth Middleware for API Route is not applied? #14

yusrenaltair opened this issue Sep 9, 2021 · 1 comment

Comments

@yusrenaltair
Copy link

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
Copy link

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.

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