casbin-cpp icon indicating copy to clipboard operation
casbin-cpp copied to clipboard

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

Open hsluoyz opened this issue 4 years ago • 13 comments

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 avatar Jun 21 '20 08:06 hsluoyz

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

hsluoyz avatar Jun 21 '20 08:06 hsluoyz

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

0x8f701 avatar Jun 21 '20 10:06 0x8f701

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

hsluoyz avatar Jun 24 '20 04:06 hsluoyz

@ZipoChan @0625wzw can you do this?

hsluoyz avatar Jun 24 '20 04:06 hsluoyz

i want to try it

KaranaLJX avatar Jun 24 '20 12:06 KaranaLJX

@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 avatar Jun 24 '20 12:06 divy9881

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 avatar Jun 24 '20 12:06 divy9881

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

divy9881 avatar Jun 29 '20 16:06 divy9881

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

not yet

KaranaLJX avatar Jun 30 '20 03:06 KaranaLJX

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

tech-bash avatar Jan 23 '22 18:01 tech-bash

@EmperorYP7 @sheny1xuan plz give some advices

hsluoyz avatar Jan 24 '22 03:01 hsluoyz

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.

sheny1xuan avatar Jan 24 '22 04:01 sheny1xuan

Drogon and oat++ are good candidates for us.

EmperorYP7 avatar Jan 25 '22 08:01 EmperorYP7