casbin / casbin-cpp

An authorization library that supports access control models like ACL, RBAC, ABAC in C/C++
https://casbin.org
Apache License 2.0
219 stars 61 forks source link

Make middleware for No.1 C/C++ web framework #40

Open hsluoyz opened 4 years ago

hsluoyz commented 4 years ago

Casbin has a tradition to make authz middlewares for web frameworks of that language (see: https://github.com/casbin/casbin-rs/issues/93). We need to make some middlewares for the most popular C/C++ web frameworks (if there any cuz I even didn't have a name). The middlewares will be put into: https://github.com/casbin-cpp

The first question is: what are the most popular C/C++ web frameworks?

hsluoyz commented 4 years ago

@xcaptain @divy9881 @ZipoChan do you have any ideas?

GopherJ commented 4 years ago

I think https://github.com/an-tao/drogon is a good option which wins actix-web framework in bench and becomes the Top1.

See it from here: https://www.techempower.com/benchmarks/#section=data-r19&hw=ph&test=composite

It's also under active development

hsluoyz commented 4 years ago

@GopherJ great! Let's make a middleware for drogon first!

hsluoyz commented 4 years ago

@ZipoChan @0625wzw can you do this?

KaranaLJX commented 4 years ago

i want to try it

divy9881 commented 4 years ago

@KaranaLJX You can take up this issue, but before starting writing the code, let us know, what middleware are you going to code up and related to which framework.

For reference you can take the inspiration from following organisation's middleware repos, https://github.com/casbin https://github.com/jcasbin https://github.com/node-casbin https://github.com/casbin-rs

divy9881 commented 4 years ago

Apart from drogon, this are some of the well-known web frameworks from which you can start working, CivetWeb : https://github.com/civetweb/civetweb CppCMS : http://cppcms.com/wikipp/en/page/main

I would prefer CppCMS, its very famous and easy to work with.

divy9881 commented 4 years ago

@KaranaLJX, what's the status of this issue, have you achieved some progress on this?

KaranaLJX commented 4 years ago

@KaranaLJX, what's the status of this issue, have you achieved some progress on this?

not yet

tech-bash commented 2 years ago

I would like to work on this issue , A lil guidance from ur side will be highly helpful !!

hsluoyz commented 2 years ago

@EmperorYP7 @sheny1xuan plz give some advices

sheny1xuan commented 2 years ago

Hi, I think we can pick one web framework in this list as a start. I don't know which one is best, but I think we can pick a framework with more active community, such as Crow, TreeFrog, Drogon etc.

EmperorYP7 commented 2 years ago

Drogon and oat++ are good candidates for us.