SiLe Zhou

Results 43 comments of SiLe Zhou

@rawmarshmellows Thank you for your feedback. I need some time to verify and check the performance issues. Before that, you can try the following optimization methods: 1. Use CachedEnforcer 2....

`With regards to authentication, after running some benchmarks, I can see that with hasPolicy it seems like each check takes ~1ms per 10000 policies:` Authentication is generally done using `Enforce()`,...

> No the reason I'm using `hasPolicy` is because the more policies I add, the longer it takes to run `Enforce` and any of its variants. So I end up...

`Enforce` requires complex calculations and traversing policies for wider applicability, whereas `HasPolicy` is basically indexed with maps. There is a performance gap in a particular case, which I think is...

@longtengz Hey,I remember the issue, but it wasn't dealt with because the consistency wasn't reproduced I tried the following code, but no error occurred. ```go package main import ( "fmt"...

Casbin does not support this function for the time being, we will expand the function of g later

@kooksee Sorry to bother you, but can I ask the result of the review?

@nengc Yes, this is the current drawback, and we're thinking about how to enhance the API in question. There are two main aspects: 1. support for multiple `g` types (This...

@JK-97 Thanks for your feedback, GetImplicitUsersForResource does not currently support matching obj and resource based on g type, and we will update it in a later release

@arun0009 You can try using the ABAC model. For more details on this model please refer to https://casbin.org/docs/abac.