Handle Business Applications

A MatrixAuthDemo project is provided in GitHub project to show how to connect business application into MatrixAuth, which is under the demo folder of the project.github home page of MatrixAuth

1 Controlled authority verification

Matrixauth uses the @perm annotation to complete the verification of the controlled permission. It will automatically complete the permission determination based on the RBAC model.

@RequestMapping("/01")
@Perm({"PM_01"})
public Result interface01() {
    return ResultUtil.getSuccessResult("Interface 01 operated successfully");
}

In the above code, if the current user has the permission code (permkey) of PM_01, the user can operate the interface. Otherwise, the user’s operation will be blocked.


MatrixAuth-High performance lightweight distributed permission system.