casdoor / casdoor-dotnet-sdk

.NET client SDK for Casdoor
https://github.com/casdoor/casdoor
Apache License 2.0
28 stars 25 forks source link

Support Casbin Enforce API #35

Closed ISulimanov closed 1 year ago

ISulimanov commented 1 year ago

Should CasdoorClient provide Enforce method like in go-sdk ? https://github.com/casdoor/casdoor-go-sdk/blob/master/casdoorsdk/enforce.go

Looks like it should be because in case of using RBAC where permissions belong to Role, I have to call api/enforce to verify that User has permission.

casbin-bot commented 1 year ago

@seriouszyx @ComradeProgrammer @Resulte

hsluoyz commented 1 year ago

@ISulimanov hi, can you make a PR to add it?

ISulimanov commented 1 year ago

@ISulimanov hi, can you make a PR to add it?

Sure! Just help me figure out little bit how it works and I will send PR I have issue so far when trying to achieve it: https://github.com/casdoor/casdoor/issues/1696