-
-
Notifications
You must be signed in to change notification settings - Fork 78
Closed
Description
We usually use casbin-rs in a web server, that is when a request comes in, a middleware or controller asks casbin whether it's authenticated. A common situation is that we also have a frontend ui that needs to do permission control. If we can compile casbin to wasm file, then we can do enforce at browser, no need to ask for the server all the time.
Rust has very good wasm support, I think this idea can be implemented. After that we need to consider how to sync user's policy from server, maybe we need to add a get_all_policies_for_user
in internal_api.rs
0x8f701, PsiACE, hackerchai and parqbanq
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request