Fiber: 馃殌 Add support for casbin Authorization as a middleware

Created on 3 Oct 2020  路  11Comments  路  Source: gofiber/fiber

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.

馃槑 Nice to Have

Most helpful comment

Hi @alwindoss
There is already a Casbin middleware for Fiber
https://github.com/arsmn/fiber-casbin

All 11 comments

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

Was this page helpful?
0 / 5 - 0 ratings