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

allow for own matcher function

Open call-me-matt opened this issue 1 year ago • 3 comments

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

call-me-matt avatar Mar 15 '24 07:03 call-me-matt

@WenyXu @nodece @noneback

casbin-bot avatar Mar 15 '24 07:03 casbin-bot

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

Do you know how to generate a function at runtime?

nodece avatar Mar 15 '24 16:03 nodece

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.

call-me-matt avatar Mar 15 '24 19:03 call-me-matt