System integrating unified identity authentication and authority management
By introducing application menu management, role management and permission management modules into the unified identity authentication system, and combining the API interface to encapsulate permission information, the independent problem of permission configuration in each application system is solved, and centralized management of user unified identity authentication and permissions is realized. Reduces system complexity and usage costs.
Patent Information
- Application Number
- CN202410937853.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-10-29
AI Technical Summary
In the existing technology, the unified identity authentication system and permission management are relatively independent, which results in the need for separate permission configuration in each application system, which brings challenges to system maintenance and operation personnel. In particular, the mapping of roles and function menus is not implemented, resulting in The cost of learning and using is high.
Provides a system that integrates unified identity authentication and permission management, including application menu management module, application role management module, application permission management module and permission information encapsulation module. Through these modules, centralized configuration of menus, roles and permissions of the application system is achieved. and management, using API interfaces to encapsulate permission information to achieve permission control over functional resources.
It achieves unified user identity authentication and centralized configuration of permissions, reduces system complexity, solves the independent problem of permission configuration for each application system, reduces learning and usage costs, and improves management efficiency.
Smart Images

Figure CN118862035A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of information security management, and in particular to a system integrating unified identity authentication and authority management. Background Art
[0002] In the early days of informatization, enterprises used very few systems, usually one or two. Each system needed to manage users and functional permissions. When users accessed the system, each system required users to log in. However, as the enterprise developed, the number of systems increased sharply. When users used different systems, they needed to log in multiple times, and each system had a different account, which was very inconvenient for users. Therefore, it was necessary to solve the problem of unified identity authentication to improve user experience.
[0003] Unified identity authentication technology means that in a system or service, through a single identity authentication, multiple applications and resources within the authorized scope can be accessed with a single identity verification. With the accelerated advancement of informatization and networking, unified identity authentication technology has received more and more attention and application. Unified identity authentication integrates and unifies different authentication methods. In multiple application systems, users only need to authenticate once to access other application systems with corresponding permissions, thereby realizing single sign-on and access authorization control. At present, the permission control models of various application systems are relatively mature. The mainstream permission models mainly include RBAC, ABAC, PBAC and TBAC. RBAC (Role-Based Access Control) is a common permission model that performs access control based on roles. In RBAC, users are assigned to different roles, each role has specific permissions, and users obtain corresponding permissions through the assigned roles. ABAC (Attribute-Based Access Control) is access control based on attributes. In ABAC, access decisions are based not only on user roles, but also on other attributes (such as user attributes, environmental conditions, etc.). This model is more flexible and can perform access control based on more attribute factors. PBAC (Policy-Based Access Control) is a policy-based permission model that manages access control by defining policies. These policies can be customized by administrators according to the needs of the organization to determine specific access rights. The PBAC model allows for more fine-grained control and supports dynamic access control policies. TBAC (Task-Based Access Control) is a task-based permission model that grants corresponding permissions based on the user's current task or role. Users can only obtain specific permissions under specific tasks or roles to complete specific tasks. Each application selects an appropriate permission model to meet business needs based on different scenarios and needs. Whether from the perspective of unified identity authentication or permission control, each field has relatively mature standards and implementation methods, but the two are currently relatively independent and have not been effectively integrated, which has brought challenges to system maintenance and operation personnel. Specifically, the unified identity authentication system usually solves the problems of unified user management and mapping between users and roles, but the mapping between roles and function menus has not been implemented. The configuration management of permissions of each application system is still configured in each application system. For example, in the currently more commonly used RBAC model, the permission configuration management of each system is managed within this system, which usually includes functions such as menu management, role management, and role and menu mapping.
[0004] Therefore, a common approach in the industry is to use a unified identity authentication system and the permission configuration of each system to complete an overall unified user permission management. At the usage level, system administrators need to complete unified user management in a unified portal, but the specific permissions of each application system need to be configured and managed by logging into each application system. Because each application system has different implementation methods and operation modes for permission management, the learning and use costs are high. Summary of the invention
[0005] In order to solve the problem of performing permission configuration separately in each application system, the present invention provides an application permission configuration management method and device based on a unified identity authentication system.
[0006] The technical solution of the present invention provides a system integrating unified identity authentication and authority management, including an application menu management module, an application role management module, an application authority management module and an authority information encapsulation module; The application menu management module adds, modifies, and maintains the status of menu functions for registered applications. The menu includes directories, menus, and buttons. Directories and menus support nesting, and icons can be configured for directories and menus. The application role management module adds, modifies, and maintains the status of roles for specific applications. Role management includes the management of role names, role codes, descriptions, and role activation status. The application permission management module maintains the menu range owned by the role under a specific application, and assigns the role to a specific user to implement the allocation of user permissions; The permission information encapsulation module encapsulates the permission information of each application system into an API interface, so that each application system can obtain the permission information through the interface to realize the permission control of functional resources.
[0007] As a preferred embodiment of the technical solution of the present invention, the specific operations of the application menu management module include: Select a specific application system. After selecting the application system, select a parent menu, select the type of menu to be created, configure the relevant properties of the menu, and after the configuration is completed, save the menu settings.
[0008] As a preferred embodiment of the technical solution of the present invention, the specific steps of application menu management include: Determine the basic structure and hierarchy of the menu based on the application's functions and business requirements; Design main menus, submenus, and page-level menu items; Define a unique identifier, name, description, and associated icon or image for each menu item; Set properties for each menu item; Associate each menu item with the corresponding function or page to ensure that you can correctly navigate to the corresponding function or page when clicking the menu item; Configure navigation paths for menu items to ensure that users can quickly navigate to different parts of your app through menu items.
[0009] As a preferred embodiment of the technical solution of the present invention, the specific operations of the application role management module include: Select a specific application system, and all subsequent role configurations will take effect on this application system; Maintain the role name, code, description and status information to generate a role list under the application system.
[0010] As a preferred embodiment of the technical solution of the present invention, the steps of performing application role management by the application role management module include: Define the roles in the application and the permissions each role should have; Based on the defined roles and permissions, design database tables to store relevant information, including user tables, role tables, permission tables, user-role association tables, and role-permission association tables; Provide a user interface to receive the administrator's input of role name, description, and permissions assigned to the role, so as to create roles and permissions; Assign the created role to the user. When the user performs an operation, verify whether the user has the required permissions to perform the operation.
[0011] As a preferred embodiment of the technical solution of the present invention, the operation of the application authority management module includes: Select a specific role from a role list of an application system for menu mapping; The mapped menu is selected from the menu range maintained in the application menu management; Assign a role to a specific user.
[0012] As a preferred embodiment of the technical solution of the present invention, the steps of allocating user rights by applying the rights management module include: On the Application Role Management page, select the role to which you want to assign permissions; Assign corresponding menu permissions to roles based on their responsibilities and needs; Select the users to whom you want to assign roles, and assign the roles to the selected users.
[0013] As a preferred embodiment of the technical solution of the present invention, the steps of performing application permission management by the application permission management module include: Start the application to read the protected resources and save them to the global cache; After the unified identity authentication is passed, the user's authorized resources are queried, a token is created based on the resources and returned to the user; Return the current user and role information based on the user's query information, and initialize the application interface based on the menu owned by the role in the application interface; Receive access requests from users carrying tokens, parse the tokens to obtain authorized resources for authentication, and allow access if authentication passes.
[0014] As a preferred embodiment of the technical solution of the present invention, the step of the application permission management module performing application permission management also includes: Get user attribute information; Determine the user's authority level based on the user's attribute information; When a user performs a permission operation on a system resource, it is determined whether the user's attributes meet the execution conditions of the permission operation; If the user's attributes match the access policy of the authorized resource, the permission operation is executed, otherwise it is denied.
[0015] As a preferred embodiment of the technical solution of the present invention, the specific encapsulation process of the permission information encapsulation module is as follows: Get the permission information that needs to be encapsulated, including user roles, menu permissions corresponding to roles, and function operation permissions; Design one or more API interfaces for providing permission information; Structuring the permission information; Encapsulate the obtained permission information into the format expected by the API interface; Serialize the encapsulated permission information into JSON and XML formats; package the code and deploy it to the production environment.
[0016] It can be seen from the above technical scheme that the present invention has the following advantages: it realizes unified user identity authentication and centralized configuration of permissions, solves the problem of needing to enter each application system for permission configuration, and standardizes the management of user permission-related functions. Each application system no longer needs permission configuration-related functions, thereby reducing the complexity of the system.
[0017] In addition, the invention has a reliable design principle, a simple structure and a very broad application prospect.
[0018] It can be seen that compared with the prior art, the present invention has outstanding substantive features and significant progress, and the beneficial effects of its implementation are also obvious. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0020] Figure 1 is a schematic block diagram of a system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0022] like Figure 1 As shown, the technical solution of the present invention provides a system integrating unified identity authentication and authority management, including an application menu management module, an application role management module, an application authority management module and an authority information encapsulation module; The application menu management module adds, modifies, and maintains the status of menu functions for registered applications. The menu includes directories, menus, and buttons. Directories and menus support nesting, and icons can be configured for directories and menus. The application role management module adds, modifies, and maintains the status of roles for specific applications. Role management includes the management of role names, role codes, descriptions, and role activation status. The application permission management module maintains the menu range owned by the role under a specific application, and assigns the role to a specific user to implement the allocation of user permissions; The permission information encapsulation module encapsulates the permission information of each application system into an API interface, so that each application system can obtain the permission information through the interface to realize the permission control of functional resources.
[0023] When configuring permissions for each application system, you first need to select an application system. Subsequent configurations are all based on this system. After the configuration is completed, this system encapsulates the permission information of each application system into an API interface. Each application system obtains permission information through the interface to achieve permission control over functional resources.
[0024] On the basis of realizing unified user management and single sign-on, the centralized configuration management of permissions of each application system is realized. The unified identity authentication system usually consists of several parts such as unified portal, application management, user center, and user authentication.
[0025] (1) Unified portal: The unified portal system is an information system that integrates and combines multiple different application systems and platforms. It is mainly used for information and data management and interaction within enterprises and organizations. It provides a unified portal so that different user groups can access and manage the required information and application systems, such as ERP, CRM, OA, HRM, etc., on the same interface. It provides users with a unified portal, avoiding the tediousness of multiple logins and operations, and improving work efficiency and management level.
[0026] (2) Application management: Each application system is the basic unit managed in the unified portal. Application management mainly requires maintaining the homepage, system name, and charts of each application system. The homepage of each application system is mainly used to access the callback address of the system after single sign-on; the system name is used to display in the application list of the unified portal; the application icon and the contact person responsible for operation and maintenance of the application system and other related information. After the application is registered in the unified portal, it can be enabled, disabled, and the corresponding attributes can be maintained in the application management.
[0027] (3) User Center: The User Center is the foundation of the unified identity authentication system. It is the front desk and foundation for realizing unified identity authentication, unified authorization management and unified services. It supports the maintenance of user information through registration, administrator maintenance, and access to third-party data sources.
[0028] (4) User authentication: User authentication provides open services for user access authentication for each application system, and provides unified account information, unified authentication and user data services for applications built on the system, to achieve user login and authentication. At the same time, authentication provides security protection and audit mechanisms to ensure the security of user data and systems. User authentication provides services such as single sign-on, session persistence and single sign-out, enabling users to access all application systems within the system with one login.
[0029] In some embodiments, specific operations of the application menu management module include: Select a specific application system. After selecting the application system, select a parent menu, select the type of menu to be created, configure the relevant properties of the menu, and after the configuration is completed, save the menu settings.
[0030] Application menu management is to add, modify, maintain the status of menu functions for registered applications. Menus include directories, menus and buttons. Menus can be configured with specific request path related information. Directories and menus support nesting, and icons can be configured for directories and menus. After the menu configuration is completed, each registered application system has an independent and complete set of function menus. The specific steps for adding menus are as follows: First, select a specific application system. All subsequent menu configurations will take effect on this application system. Select a parent menu, which includes the main directory and a specific existing menu. The main directory refers to the first-level function menu of the system. Select the type of menu to be created. The types include three different granularities: directory, menu and button. The directory is a logical concept and does not represent a specific function. It is just a collection of multiple function menus. The menu refers to a specific function that can be operated by a system. The button refers to an operation on a specific function, such as query and reset buttons. The granularity ranges from large to small, which can realize the control of different granularities of function permissions. Configure the menu routing address, whether to cache, and whether to display in full screen. The routing address is the specific resource address of the required range when accessing the menu. Whether to cache is used to improve the efficiency of the menu range, and whether to display in full screen is used to configure the display form of the menu. Through the above steps, you can complete the addition of a menu for a certain application system in the unified identity authentication system, provide the menu list of each application system by application system, support direct editing or deletion of a specific menu, and support the deactivation and activation of the menu.
[0031] It should be noted that the specific steps of application menu management include: Determine the basic structure and hierarchy of the menu based on the application's functions and business requirements; Design main menus, submenus, and page-level menu items; Define a unique identifier, name, description, and associated icon or image for each menu item; Set properties for each menu item; Associate each menu item with the corresponding function or page to ensure that you can correctly navigate to the corresponding function or page when clicking the menu item; Configure navigation paths for menu items to ensure that users can quickly navigate to different parts of your app through menu items.
[0032] In some embodiments, specific operations of the application role management module include: selecting a specific application system on which subsequent role configurations take effect; maintaining the role's name, code, description, and status information to generate a role list under the application system.
[0033] Application role management is a specific application that performs operations such as adding, modifying, and maintaining the status of roles. Role management mainly includes operations such as color calibration name, role code, description, and role activation status. Under a specific application, a set of function menus are defined under the role, which is used to assign different roles to different users in the future and implement the allocation of user permissions. The operation method for adding a specific role is as follows: First, select a specific application system. All subsequent color calibration configurations will take effect on this application system and will not affect other application systems. Maintain the name, code, description, and status information of the role. The status information mainly includes activation and deactivation. After completing the role information maintenance, you can see the color calibration list under an application system, which supports direct editing or deletion of a specific role, and also supports the deactivation and activation of color calibration.
[0034] It should be noted that the steps of application role management performed by the application role management module include: Define the roles in the application and the permissions each role should have; Based on the defined roles and permissions, design database tables to store relevant information, including user tables, role tables, permission tables, user-role association tables, and role-permission association tables; Provide a user interface to receive the administrator's input of role name, description, and permissions assigned to the role, so as to create roles and permissions; Assign the created role to the user. When the user performs an operation, verify whether the user has the required permissions to perform the operation.
[0035] In some embodiments, the operation of the application authority management module includes: selecting a specific role from a role list of an application system for menu mapping; selecting the mapped menu within the menu range maintained in the application menu management; and assigning the role to a specific user.
[0036] Application permission management: Maintain the menu range owned by the role in a specific application. You can also assign the role to a specific user. A user can be assigned multiple roles in multiple systems. The specific application permission management operation is as follows: select a specific role from the role list of an application system, and then map the menu. The mapped menu is the menu range maintained in the application menu management. Select each function menu item according to the planning of the role. It supports multiple selections, cancellation, modification and other operations. After selecting the menu range, the mapping of the role and the application system function is completed. After the role permission is set, the role can be assigned to a specific user. After the user obtains the role, he can enter the function corresponding to the role in the system through the unified portal. Through the mapping relationship between roles and menus, fine-grained management of the permissions of each application system is realized in the unified identity authentication system. Each application system can obtain the user's permission information in the system through the permission interface of the system, and then complete the access permission control.
[0037] It should be noted that the steps of allocating user rights by the application rights management module include: On the Application Role Management page, select the role to which you want to assign permissions; Assign corresponding menu permissions to roles based on their responsibilities and needs; Select the users to whom you want to assign roles, and assign the roles to the selected users.
[0038] The steps of application permission management module for application permission management include: starting the application to read the protected resources and save them to the global cache; after the unified identity authentication is passed, query the user's authorized resources, create a token based on the resources and return it to the user; return the current user and role information based on the user's query information, and initialize the application interface according to the menu owned by the role in the application interface; receive the user's access request carrying the token, parse the token to obtain the authorized resource for authentication, and allow access after authentication.
[0039] The steps of performing application permission management by the application permission management module also include: obtaining the user's attribute information; determining the user's permission level based on the user's attribute information; when the user performs permission operations on system resources, judging whether the user's attributes meet the execution conditions of the permission operations; if the user's attributes match the access policy of the authorized resources, then executing the permission operation, otherwise refusing to execute.
[0040] In some embodiments, the specific encapsulation process of the permission information encapsulation module is as follows: obtaining the permission information content to be encapsulated, including user roles, menu permissions corresponding to the roles, and functional operation permissions; designing one or more API interfaces for providing permission information; structuring the permission information; encapsulating the obtained permission information into the format expected by the API interface; serializing the encapsulated permission information into JSON, XML format; and packaging the code and deploying it to the production environment.
[0041] Steps to structure permission information: The data structure of permission information needs to be clarified. This includes entities such as users, roles, menus, buttons, and the relationships between them. For example, you can define user tables (user), role tables (role), menu tables (menu), permission tables (permission), and association tables between them, such as user role association tables (user_role), role menu association tables (role_menu), etc. According to the defined data structure, design the corresponding tables in the database. Each table should contain necessary fields, such as username (username), password (password), etc. in the user table; role name (rolename), role code (rolecode), etc. in the role table; menu name (menuname), parent menu ID (parentid), etc. in the menu table; permission ID (permissionid), permission description (permissiondesc), etc. in the permission table. Determine the association relationship between each table, such as the many-to-many relationship between users and roles, the many-to-many relationship between roles and menus, etc. These association relationships are implemented by creating association tables in the database or using foreign key constraints. When designing database tables, the principle of data normalization should be followed to avoid data redundancy and inconsistency. For example, you can achieve normalization by storing common information (such as menu names, role names) in separate tables and referencing the IDs of this information in other tables. Implement the mapping relationship of permissions in the database table. This usually includes associating roles with permission items such as menus and buttons. For example, in the role menu association table, you can store the correspondence between role ID and menu ID, indicating that the role has the permission to access the menu. Fill in the initial permission information data in the database table. As the system runs and changes, maintain and update the permission information data in the database in a timely manner.
[0042] Although the present invention has been described in detail with reference to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person of ordinary skill in the art may easily think of changes or substitutions within the technical scope disclosed by the present invention, and these shall be within the scope of protection of the present invention.
Claims
1. A system integrating unified identity authentication and rights management, characterized in that: It includes application menu management module, application role management module, application permission management module and permission information encapsulation module; The application menu management module adds, modifies, and maintains the status of menu functions for registered applications. The menu includes directories, menus, and buttons. Directories and menus support nesting, and icons can be configured for directories and menus. The application role management module adds, modifies, and maintains the status of roles for specific applications. Role management includes the management of role names, role codes, descriptions, and role activation status. The application permission management module maintains the menu range owned by the role under a specific application, and assigns the role to a specific user to implement the allocation of user permissions; The permission information encapsulation module encapsulates the permission information of each application system into an API interface, so that each application system can obtain the permission information through the interface to realize the permission control of functional resources.
2. The system for integrating unified identity authentication and rights management according to claim 1, characterized in that: The specific operations of the application menu management module include: Select a specific application system. After selecting the application system, select a parent menu, select the type of menu to be created, configure the relevant properties of the menu, and after the configuration is completed, save the menu settings.
3. The system for integrating unified identity authentication and rights management according to claim 2 is characterized in that: The specific steps of application menu management include: Determine the basic structure and hierarchy of the menu based on the application's functions and business requirements; Design main menus, submenus, and page-level menu items; Define a unique identifier, name, description, and associated icon or image for each menu item; Set properties for each menu item; Associate each menu item with the corresponding function or page to ensure that you can correctly navigate to the corresponding function or page when clicking the menu item; Configure navigation paths for menu items to ensure that users can quickly navigate to different parts of your app through menu items.
4. The system for integrating unified identity authentication and rights management according to claim 3 is characterized in that: The specific operations of the application role management module include: Select a specific application system, and all subsequent role configurations will take effect on this application system; Maintain the role name, code, description and status information to generate a role list under the application system.
5. The system for integrating unified identity authentication and rights management according to claim 4 is characterized in that: The steps of application role management by the application role management module include: Define the roles in the application and the permissions each role should have; Based on the defined roles and permissions, design database tables to store relevant information, including user tables, role tables, permission tables, user-role association tables, and role-permission association tables; Provide a user interface to receive the administrator's input of role name, description, and permissions assigned to the role, so as to create roles and permissions; Assign the created role to the user. When the user performs an operation, verify whether the user has the required permissions to perform the operation.
6. The system for integrating unified identity authentication and rights management according to claim 5, characterized in that: The operations of the application permission management module include: Select a specific role from a role list of an application system for menu mapping; The mapped menu is selected from the menu range maintained in the application menu management; Assign a role to a specific user.
7. The system for integrating unified identity authentication and rights management according to claim 6, characterized in that: The steps of applying the permission management module to allocate user permissions include: On the Application Role Management page, select the role to which you want to assign permissions; Assign corresponding menu permissions to roles based on their responsibilities and needs; Select the users to whom you want to assign roles, and assign the roles to the selected users.
8. The system for integrating unified identity authentication and rights management according to claim 7, characterized in that: The steps of application permission management by the application permission management module include: Start the application to read the protected resources and save them to the global cache; After the unified identity authentication is passed, the user's authorized resources are queried, a token is created based on the resources and returned to the user; Return the current user and role information based on the user's query information, and initialize the application interface based on the menu owned by the role in the application interface; Receive access requests from users carrying tokens, parse the tokens to obtain authorized resources for authentication, and allow access if authentication passes.
9. The system for integrating unified identity authentication and rights management according to claim 8, characterized in that: The steps of performing application permission management by the application permission management module also include: Get user attribute information; Determine the user's authority level based on the user's attribute information; When a user performs a permission operation on a system resource, it is determined whether the user's attributes meet the execution conditions of the permission operation; If the user's attributes match the access policy of the authorized resource, the permission operation is executed, otherwise it is denied.
10. The system for integrating unified identity authentication and rights management according to claim 9, characterized in that: The specific encapsulation process of the permission information encapsulation module is as follows: Get the permission information that needs to be encapsulated, including user roles, menu permissions corresponding to roles, and function operation permissions; Design one or more API interfaces for providing permission information; Structuring the permission information; Encapsulate the obtained permission information into the format expected by the API interface; Serialize the encapsulated permission information into JSON and XML formats; package the code and deploy it to the production environment.
Citation Information
Cited By
Page control method and system based on coordination and cooperation of front end and rear end
CN120179122A
Packaging management system for various games
CN120762728A
