Data processing method and device
By querying the virtual user relationship table and establishing the user information table, multi-tenant access for the same user in a multi-system multi-tenant environment is realized, which solves the problem of being unable to access multiple tenant information in the existing technology and realizes multi-tenant information for users. Integration and rights management.
Patent Information
- Application Number
- CN201910944628.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-30
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2039-09-30
AI Technical Summary
In a multi-system multi-tenant environment, the same user cannot access multiple tenant information, and existing technologies cannot effectively solve this problem.
By receiving the data access request, the virtual user relationship table is queried to obtain the user's corresponding virtual user in the second system, and different tenant information of the second system is accessed through the virtual user information, and a user information table and a virtual user relationship table are established to realize a single Click login and virtual user creation, and provide a new tenant interface to achieve multi-tenant access for users.
It enables the same user to access multiple tenant information, solves the access problem in a multi-system multi-tenant environment, and realizes multi-tenant information integration and permission management for users.
Smart Images

Figure CN112579999B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to a data processing method and device. Background Art
[0002] Single Sign On, abbreviated as SSO, is one of the more popular solutions for enterprise business integration. The definition of SSO is that in multiple application systems, users only need to log in once to access all mutually trusted application systems. The essence of single sign-on is the transmission or sharing of security context or credentials between multiple application systems. When a user logs in to the system, the client software establishes a security context for the user based on the user's credentials (such as user name and password). The security context contains security information used to verify the user. The system uses this security context and security policy to determine whether the user has the authority to access system resources.
[0003] SaaS is the abbreviation of Software as a Service, which is a model for providing application software to the public, especially small and medium-sized enterprises, through the Internet. Multi-tenancy is one of the core advantages of SaaS. The multi-tenant SaaS application architecture mainly supports simultaneous access by multiple tenants and different users through a single instance. Users can realize the multi-tenant SaaS application model of on-demand service by customizing the business functions of software services.
[0004] When integrating multiple systems, the relationship between tenants and users is often a one-to-many relationship. However, in certain business scenarios, it is necessary to enable the same user to access information of multiple tenants. At this time, the current SaaS application model will find it difficult to solve this problem.
[0005] With regard to the problem in the related art that the same user cannot access information of multiple tenants in a multi-system multi-tenant environment, no effective solution has been proposed yet. Summary of the invention
[0006] The main purpose of the present invention is to provide a data processing method and device to solve the problem that the same user cannot access information of multiple tenants in a multi-system multi-tenant environment.
[0007] To achieve the above-mentioned purpose, according to one aspect of the present invention, a data processing method is provided, the method comprising: receiving a data access request, wherein the data access request comes from a first user in a first system; querying a virtual user relationship table to obtain one or more virtual users corresponding to the first user in the first system in a second system, wherein the virtual user relationship table stores the correspondence between users in the first system and virtual users in the second system, and each virtual user in the second system corresponds to a tenant in the second system; and accessing information of different tenants of the second system through information of the virtual users.
[0008] Furthermore, before receiving a data access request, the method also includes: establishing a user information table in a server of the third system, storing user information of the third system in the user information table; sharing the user information table of the third system with the first system and the second system to implement single sign-on between the first system and the third system, and between the second system and the third system; establishing corresponding virtual users for users in the first system under different tenants of the second system; and creating the virtual user relationship table in the first system.
[0009] Furthermore, before creating corresponding virtual users for users in the first system under different tenants of the second system, the method further includes: controlling the second system to provide a tenant creation interface and a user creation interface to the first system.
[0010] Furthermore, before receiving the data access request, the method further includes: establishing a first system, wherein the first system is an integrated platform system, and the first system at least integrates the second system.
[0011] Furthermore, the first system integrates a customer relationship management system, a monitoring system, and an office system, and the second system is a customer relationship management system.
[0012] In order to achieve the above-mentioned purpose, according to another aspect of the present invention, a data processing device is further provided, which includes: a receiving unit, used to receive a data access request, wherein the data access request comes from a first user in a first system; a query unit, used to query a virtual user relationship table to obtain one or more virtual users corresponding to the first user in the first system in the second system, wherein the virtual user relationship table stores the correspondence between users in the first system and virtual users in the second system, and each virtual user in the second system corresponds to a tenant in the second system; and an access unit, used to access information of different tenants of the second system through information of the virtual users.
[0013] Furthermore, the device also includes: a first establishing unit, used to establish a user information table in the server of the third system before receiving a data access request, and a storage unit, used to store user information of the third system in the user information table; a sharing unit, used to share the user information table of the third system with the first system and the second system to achieve single sign-on between the first system and the third system, and between the second system and the third system; a second establishing unit, used to establish corresponding virtual users for users in the first system under different tenants of the second system; and a creation unit, used to create the virtual user relationship table in the first system.
[0014] Furthermore, the device also includes: a control unit, which is used to control the second system to provide a tenant creation interface and a user creation interface to the first system before creating corresponding virtual users for users in the first system under different tenants of the second system.
[0015] In order to achieve the above object, according to another aspect of the present invention, a storage medium is further provided, comprising a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the data processing method of the present invention.
[0016] In order to achieve the above-mentioned purpose, according to another aspect of the present invention, a device is also provided, comprising at least one processor, and at least one memory and a bus connected to the processor, wherein the processor and the memory communicate with each other through the bus, and the processor is used to call program instructions in the memory to execute the data processing method described in the present invention.
[0017] The present invention receives a data access request, wherein the data access request comes from a first user in a first system; queries a virtual user relationship table to obtain one or more virtual users corresponding to the first user in the first system in a second system, wherein the virtual user relationship table stores the correspondence between users in the first system and virtual users in the second system, and each virtual user in the second system corresponds to a tenant in the second system; accesses information of different tenants of the second system through information of virtual users, thereby solving the problem that the same user cannot access information of multiple tenants in a multi-system and multi-tenant environment, thereby achieving the effect that the same user can access information of multiple tenants. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings constituting a part of this application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0019] Figure 1 is a flow chart of a data processing method according to an embodiment of the present invention;
[0020] Figure 2 is a schematic diagram of a data processing device according to an embodiment of the present invention; and
[0021] Figure 3 is a block diagram of a device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0022] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0025] An embodiment of the present invention provides a data processing method.
[0026] Figure 1 is a flow chart of a data processing method according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0027] Step S102: receiving a data access request, wherein the data access request comes from a first user in the first system;
[0028] Step S104: query the virtual user relationship table to obtain one or more virtual users corresponding to the first user in the first system in the second system, wherein the virtual user relationship table stores the correspondence between the users in the first system and the virtual users in the second system, and each virtual user in the second system corresponds to a tenant in the second system;
[0029] Step S106: Access information of different tenants of the second system through the information of the virtual user.
[0030] This embodiment adopts receiving a data access request, wherein the data access request comes from a first user in a first system; querying a virtual user relationship table to obtain one or more virtual users corresponding to the first user in the first system in the second system, wherein the virtual user relationship table stores the correspondence between users in the first system and virtual users in the second system, and each virtual user in the second system corresponds to a tenant in the second system; accessing information of different tenants of the second system through information of virtual users solves the problem that the same user cannot access information of multiple tenants in a multi-system and multi-tenant environment, thereby achieving the effect that the same user can access information of multiple tenants.
[0031] In an embodiment of the present invention, a data access request is issued by a first user in a first system, and the data access request requests access to information of one or more tenants in a second system. A virtual user corresponding to the first user is obtained by querying a virtual user relationship table. The virtual user is a virtual user allocated to the first user in the second system. Each virtual user corresponds to a tenant in the second system. Tenant 1 in the second system is accessed through virtual user 1, and tenant 2 in the second system is accessed through virtual user 2. In this way, the same user can access information of multiple tenants.
[0032] Optionally, before receiving a data access request, a user information table is established in the server of the third system, and user information of the third system is stored in the user information table; the user information table of the third system is shared with the first system and the second system to implement single sign-on between the first system and the third system, and between the second system and the third system; corresponding virtual users are established for users in the first system under different tenants of the second system; and a virtual user relationship table is created in the first system.
[0033] The establishment of the virtual user relationship table needs to be based on the third system. A user information table is established in the server of the third system to store the user information of the third system. Then the user information table is shared with the first system and the second system. In this way, single sign-on can be achieved between the first system and the third system, and between the second system and the third system. After single sign-on is achieved, corresponding virtual users can be established for users in the first system under different tenants of the second system. In this way, a virtual user relationship table can be established, which stores the association relationship between the user information of the first system and the virtual user information corresponding to each tenant of the second system.
[0034] Single Sign On, abbreviated as SSO, is one of the more popular solutions for enterprise business integration. The definition of SSO is that in multiple application systems, users only need to log in once to access all mutually trusted application systems. The essence of single sign-on is the transmission or sharing of security context or credentials between multiple application systems. When a user logs in to the system, the client software establishes a security context for the user based on the user's credentials (such as user name and password). The security context contains security information used to verify the user. The system uses this security context and security policy to determine whether the user has the authority to access system resources.
[0035] In this embodiment, the user information table can store a first correspondence between user information of the third system and user information of the first system, and a second correspondence between user information of the third system and user information of the second system. The user information table stores user credentials (such as user name and password). After sharing the user information table, both the first system and the second system can achieve single sign-on with the third system based on the security context established by the credentials.
[0036] Optionally, before creating corresponding virtual users for users in the first system under different tenants of the second system, the second system is controlled to provide the first system with a tenant creation interface and a user creation interface.
[0037] The two systems can communicate only after the second system is controlled to provide the first system with a tenant creation interface and a user creation interface.
[0038] Optionally, before receiving the data access request, a first system is established, wherein the first system is an integrated platform system and the first system integrates at least the second system.
[0039] Optionally, the first system integrates a customer relationship management system, a monitoring system, and an office system, and the second system is a customer relationship management system.
[0040] The first system is an integrated platform system, which integrates at least the second system. For example, the first system integrates a customer relationship management system, a monitoring system, and an office system, and the second system is a customer relationship management system.
[0041] The present application also provides a preferred implementation:
[0042] Take three systems as an example. System A is an integrated platform system. Other business systems such as CRM (Customer relationship management) system, monitoring system, office system, etc. will be integrated in System A for unified management. System B is a CRM system. System C is a permission authentication system, namely, an SSO authentication service system.
[0043] First of all, both systems A and B will have their own business permission system to control the access rights of different users and tenants.
[0044] Secondly, both A and B systems implement the SSO authentication mechanism based on the C system. The C system provides a unified authentication function, and the communication between A and B systems will be authenticated and authorized through the C system. The implementation steps are as follows:
[0045] 1) Build a single sign-on server, namely system C, to provide unified authentication and authorization management for different systems, such as user registration, login, logout, user information acquisition, token acquisition, etc.;
[0046] 2) Implement the business authority system of system A, such as user management authority, system setting authority, etc.; and realize login integration with system C.
[0047] 3) Implement the business authority system of system B, such as user management authority, customer exploration authority, material management authority, etc.; and realize login integration with system C.
[0048] 4) System B provides system A with a tenant creation interface and a user creation interface.
[0049] 5) Use the interface provided by system B to create corresponding tenants and users (users are SSO users) under system B in system A, and manage a relationship table between system A users and system B users (also figuratively called a virtual user relationship table) in system A. The corresponding relationship at this time is a one-to-many relationship, that is, one user A corresponds to multiple users under different tenants of system B.
[0050] At this point, a complete integrated system has been built. In system A, when a user wants to access information of different tenants in system B, he only needs to find the user (virtual user) corresponding to the tenant he wants to access in the relationship table, and then access system B through the virtual user. At this time, the customization of user access control policies in a cross-system, multi-tenant environment is realized.
[0051] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0052] An embodiment of the present invention provides a data processing device, which can be used to execute the data processing method of the embodiment of the present invention.
[0053] Figure 2 is a schematic diagram of a data processing device according to an embodiment of the present invention. Figure 2 As shown, the device comprises:
[0054] A receiving unit 10, configured to receive a data access request, wherein the data access request comes from a first user in a first system;
[0055] A query unit 20 is used to query a virtual user relationship table to obtain one or more virtual users corresponding to a first user in the first system in the second system, wherein the virtual user relationship table stores a correspondence between users in the first system and virtual users in the second system, and each virtual user in the second system corresponds to a tenant in the second system;
[0056] The access unit 30 is used to access the information of different tenants of the second system through the information of the virtual user.
[0057] This embodiment uses a receiving unit 10 for receiving a data access request, wherein the data access request comes from a first user in a first system; a query unit 20 for querying a virtual user relationship table to obtain one or more virtual users corresponding to the first user in the first system in the second system, wherein the virtual user relationship table stores a correspondence between users in the first system and virtual users in the second system, and each virtual user in the second system corresponds to a tenant in the second system; an access unit 30 for accessing information of different tenants of the second system through information of virtual users, thereby solving the problem that the same user cannot access information of multiple tenants in a multi-system and multi-tenant environment, thereby achieving an effect that the same user can access information of multiple tenants.
[0058] Optionally, the device also includes: a first establishing unit, used to establish a user information table in the server of the third system before receiving a data access request, and a storage unit, used to store user information of the third system in the user information table; a sharing unit, used to share the user information table of the third system with the first system and the second system to achieve single sign-on between the first system and the third system, and between the second system and the third system; a second establishing unit, used to establish corresponding virtual users for users in the first system under different tenants of the second system; and a creation unit, used to create a virtual user relationship table in the first system.
[0059] Optionally, the device further includes: a control unit, configured to control the second system to provide a tenant creation interface and a user creation interface to the first system before establishing corresponding virtual users for users in the first system under different tenants of the second system.
[0060] The data processing device includes a processor and a memory. The receiving unit, query unit, etc. are stored in the memory as program units. The processor executes the program units stored in the memory to realize corresponding functions.
[0061] The processor contains a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the same user can access multiple tenant information by adjusting kernel parameters.
[0062] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0063] An embodiment of the present invention provides a storage medium on which a program is stored. When the program is executed by a processor, the data processing method is implemented.
[0064] An embodiment of the present invention provides a processor, which is used to run a program, wherein the data processing method is executed when the program is run.
[0065] An embodiment of the present invention provides a device, such as Figure 3 As shown, an embodiment of the present invention provides a device, the device includes at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other through the bus; the processor is used to call the program instructions in the memory to execute the above data processing method. The device in this article can be a server, PC, PAD, mobile phone, etc.
[0066] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: receiving a data access request, wherein the data access request comes from a first user in a first system; querying a virtual user relationship table to obtain one or more virtual users corresponding to the first user in the first system in the second system, wherein the virtual user relationship table stores the correspondence between users in the first system and virtual users in the second system, and each virtual user in the second system corresponds to a tenant in the second system; and accessing information of different tenants of the second system through information of the virtual users.
[0067] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0068] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0069] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0070] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0071] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0072] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0073] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0074] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0075] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0076] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A data processing method, It is characterized in that include: receiving a data access request, wherein the data access request comes from a first user in a first system; Querying a virtual user relationship table to obtain one or more virtual users corresponding to a first user in the first system in the second system, wherein the virtual user relationship table stores a correspondence between users in the first system and virtual users in the second system, and each virtual user in the second system corresponds to a tenant in the second system; Accessing information of different tenants of the second system through the information of the virtual user; Before receiving the data access request, the method further includes: A user information table is established in the server of the third system. storing user information of the third system in the user information table; Sharing the user information table of the third system with the first system and the second system to implement single sign-on between the first system and the third system, and between the second system and the third system; Create corresponding virtual users for users in the first system under different tenants of the second system; The virtual user relationship table is created in the first system.
2. The method according to claim 1, It is characterized in that Before creating corresponding virtual users for users in the first system under different tenants of the second system, the method further includes: Control the second system to provide the first system with a tenant creation interface and a user creation interface.
3. The method according to claim 1, It is characterized in that Before receiving the data access request, the method further includes: A first system is established, wherein the first system is an integrated platform system and the first system at least integrates the second system.
4. The method according to claim 3, It is characterized in that The first system integrates a customer relationship management system, a monitoring system, and an office system, and the second system is a customer relationship management system.
5. A data processing device, It is characterized in that include: A receiving unit, configured to receive a data access request, wherein the data access request comes from a first user in a first system; a query unit, configured to query a virtual user relationship table to obtain one or more virtual users corresponding to a first user in the first system in the second system, wherein the virtual user relationship table stores a correspondence between users in the first system and virtual users in the second system, and each virtual user in the second system corresponds to a tenant in the second system; An access unit, used to access information of different tenants of the second system through the information of the virtual user; The device also includes: The first establishing unit is used to establish a user information table in the server of the third system before receiving the data access request. A storage unit, used for storing user information of the third system in the user information table; A sharing unit, used to share the user information table of the third system with the first system and the second system, so as to realize single sign-on between the first system and the third system, and between the second system and the third system; A second establishing unit, used to establish corresponding virtual users for users in the first system under different tenants of the second system; A creating unit is used to create the virtual user relationship table in the first system.
6. The device according to claim 5, It is characterized in that The device also includes: The control unit is used to control the second system to provide a tenant creation interface and a user creation interface to the first system before creating corresponding virtual users for users in the first system under different tenants of the second system.
7. A storage medium, It is characterized in that The storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the data processing method according to any one of claims 1 to 4.
8. A device, It is characterized in that The device includes at least one processor, and at least one memory and bus connected to the processor, wherein the processor and the memory communicate with each other through the bus, and the processor is used to call program instructions in the memory to execute the data processing method described in any one of claims 1 to 4.
