Skip to content

[feature] integrate the default detector into Enforcer #1664

@hsluoyz

Description

@hsluoyz

the default detector(s) should be enabled by default for Casbin enforcer.

the detector will auto run after all policy rules are loaded (like at the end of LoadPolicy).

Enforcer should also add RunDetections() method to explicitly run all detectors

Enforcer should also have SetDetector() and SetDetectors() to let user configure detectors. (the default detector(s) are set automatically and internally inside Casbin enforcer, if user doesn't explicitly call SetDetector() and SetDetectors())

there should be a test case to test enforcer + default detector, and detect the error in the enforcer's method

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions