Is your feature request related to a problem? No
Describe the solution you'd like
Implement a middleware for casbin Authorization
Describe alternatives you've considered
Basic auth was considered but for more robust Authorization support a middleware for casbin makes sense.
Thanks for opening your first issue here! 馃帀 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord
I would like it implement this if it gets approved as a valid feature request.
I think this middleware would be a nice addon but as an external dependency, we could always merge it into core later on.
So how would you want me to approach it? Should I create the middleware in my personal repository first?
Yeah, make a POC / working project in a personal repo 馃挴
Will do that
@Fenny any pointers on how to create a middleware?
Browse https://github.com/gofiber/fiber/tree/master/middleware to get an idea how to setup the boilerplate.
Also check out our Discord server if you need help
Hi @alwindoss
There is already a Casbin middleware for Fiber
https://github.com/arsmn/fiber-casbin
Totally missed that, closing in favor of https://github.com/arsmn/fiber-casbin
Most helpful comment
Hi @alwindoss
There is already a Casbin middleware for Fiber
https://github.com/arsmn/fiber-casbin