The invention discloses a
permission system implementation method and
system based on interface detection, and relates to the technical field of
computer software security, and the method comprises the following steps: full-interface forced permission
verification: all service interfaces are covered by a permission
verification layer; centralized dynamic authority management and unified maintenance of authority configuration are realized, updating during operation and business customization expansion are supported, and authority rules are associated to an interface through annotations; front and back end authority
processing is simplified, and the
server side directly configures the authority through
interface layer annotation. According to the method, all service interfaces are ensured to be verified by a unified permission
verification layer without exception, security vulnerabilities caused by verification omission are thoroughly eliminated, the
maintainability and the flexibility of a
system are remarkably improved, permission rules are directly bound to the interfaces in an
annotation-driven mode, and the permission rules are intercepted by a section to automatically execute verification, so that the verification efficiency is improved. Therefore, the
server does not need to write redundant permission codes, the development complexity is greatly reduced, the development efficiency is improved, and meanwhile the consistency, integrity and safety of permission control are guaranteed.