casbin / casbin-mesh

A scalable authorization layer built on Casbin (The experimental project is currently unstable)
https://mesh.casbin.org
Apache License 2.0
25 stars 13 forks source link

allow for own matcher function #72

Open call-me-matt opened 7 months ago

call-me-matt commented 7 months ago

Hello,

I would like to add my own mqttMatcher. How can I add my own function to the enforcer with casbin-mesh?

Thanks

Originally posted by @call-me-matt in https://github.com/casbin/casbin-mesh/discussions/71

casbin-bot commented 7 months ago

@WenyXu @nodece @noneback

nodece commented 7 months ago

This is hard to generate a function at runtime and register that to casbin.

Do you know how to generate a function at runtime?

call-me-matt commented 7 months ago

Well, to be honest, I know how to add my own matcher function with python-casbin but I do not know where to start with casbin as a service. It would be sufficient to generate the function statically before runtime.