The invention relates to the technical field of data permission, and provides a micro-service architecture-oriented user
permission system building method and
management system.The method comprises a permission initialization stage and a permission
verification stage, in the initialization stage, each micro-service declarates the data permission through
annotation, and in the permission
verification stage, the data permission is verified; during starting, a permission
list is generated through scanning, a mapping relation between interfaces and permissions is established, a unified permission module collects, synchronizes and constructs a global permission
list, in a runtime stage, after a user logs in, a permission set of the user is inquired and cached to a session, and when a user request arrives, the permission
list is stored. And whether access is allowed or not is determined by matching the permission required by the interface with the user cache permission. According to the method,
centralized management and distributed
authentication of the authority are realized through
annotation, responsive and non-responsive technology stacks are supported, refined
authority control is carried out based on the improved RBAC model, and the efficiency and safety of authority management of the micro-
service system are improved.