Multi-tenant application management method, apparatus, device, and readable storage medium
By calling the registration information of multi-tenant applications through the application integration platform, obtaining the tenant activation service interface, and performing tenant activation, binding, and authentication, the account management problem of multi-tenant applications in the integration platform is solved, the login authentication process is simplified, and the integration difficulty is reduced.
Patent Information
- Application Number
- CN202410522765.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-28
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2044-04-28
AI Technical Summary
When multi-tenant applications are integrated into application integration platform systems such as workbenches and system portals, there are significant differences in account management systems, which leads to high integration difficulty and the inability to achieve unified authentication through single sign-on.
By calling the application registration information of multi-tenant applications through the application integration platform, the service interface for tenant activation is obtained, and tenant activation, binding and authentication are performed to achieve one-to-one account binding and simplify the login authentication process.
It reduces the integration difficulty of multi-tenant applications, enables account management for multi-tenant applications, simplifies login authentication methods, and improves the unified authentication efficiency of the integration platform.
Smart Images

Figure CN118660076B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a multi-tenant application management method, apparatus, device, and readable storage medium. Background Technology
[0002] With the development of cloud computing, multi-tenancy technology is increasingly being applied to enterprise management systems. Virtual partitioning through data configuration enables multiple tenants to share system instances while also allowing for personalized customization of tenant system instances. However, when integrating multi-tenant applications into application integration platform systems such as workbenches and system portals, the account management system of multi-tenants, which involves tenants, tenant administrators, and sub-accounts (typically one tenant per organization), differs significantly from ordinary account systems, increasing integration difficulty and making unified authentication via single sign-on impossible. Summary of the Invention
[0003] This invention provides a multi-tenant application management method, apparatus, device, and readable storage medium to solve the technical problem of high integration difficulty in existing multi-tenant application management.
[0004] This invention provides a multi-tenant application management method, applied to a multi-tenant application management system including multi-tenant applications and an application integration platform; the method includes:
[0005] Upon receiving a tenant activation request, the application registration information of the multi-tenant application is invoked through the application integration platform to obtain the tenant activation service interface;
[0006] The application integration platform sends tenant activation information to the tenant's service activation interface.
[0007] If the multi-tenant application verifies the tenant activation information, a target tenant corresponding to the tenant activation request is created.
[0008] According to a multi-tenant application management method provided by the present invention, the step of obtaining a tenant activation service interface by calling the application registration information of the multi-tenant application through the application integration platform upon receiving a tenant activation request includes:
[0009] Obtain the application information of the multi-tenant application; the application information includes the address of the service interface used to enable the tenant; the activation of the service interface by the tenant is determined based on the address of the service interface;
[0010] Register the application information on the application integration platform to obtain the application registration information.
[0011] According to a multi-tenant application management method provided by the present invention, the step of creating the target tenant corresponding to the tenant activation request includes:
[0012] Determine the tenant information of the target tenant and the administrator account of the application integration platform;
[0013] The application information, the tenant information, and the administrator account are bound together through a one-to-one mapping method.
[0014] Once the binding is complete, log in to the target tenant's main account using the administrator account.
[0015] According to a multi-tenant application management method provided by the present invention, the step of binding the application information, the tenant information, and the administrator account through a one-to-one mapping method includes:
[0016] Upon receiving a sub-account creation request initiated by the target tenant, determine the target sub-account corresponding to the sub-account creation request;
[0017] Bind the target sub-account to a regular account;
[0018] Once the binding is complete, log in to the target sub-account using the regular account.
[0019] According to a multi-tenant application management method provided by the present invention, the method further includes binding the application information, the tenant information, and the administrator account through a one-to-one mapping, and then further includes:
[0020] Upon receiving a login request, determine the login account and application identifier corresponding to the login request;
[0021] If no tenant information corresponding to the application identifier is found, the login account is determined to have failed to log in.
[0022] According to a multi-tenant application management method provided by the present invention, upon receiving a login request, the step of determining the login account and application identifier corresponding to the login request, and then including:
[0023] If the tenant information corresponding to the application identifier is found, the tenant information corresponding to the application identifier is verified.
[0024] If the verification is successful, the tenant account in the tenant information corresponding to the application identifier is determined;
[0025] Load the target function corresponding to the tenant account, and output the target function on the targeted page corresponding to the tenant account.
[0026] According to a multi-tenant application management method provided by the present invention, the method further includes binding the application information, the tenant information, and the administrator account through a one-to-one mapping, and then further includes:
[0027] Upon receiving a tenant cancellation request, determine the sub-account to be cancelled corresponding to the tenant cancellation request;
[0028] Remove the binding between the sub-account to be cancelled and the target application, and remove the binding between the sub-account to be cancelled and the regular account.
[0029] The present invention also provides a multi-tenant application management device, comprising:
[0030] The tenant activation service interface determination module is used to obtain the tenant activation service interface by calling the application registration information of the multi-tenant application through the application integration platform when a tenant activation request is received.
[0031] The tenant activation information sending module is used to send tenant activation information to the tenant activation service interface through the application integration platform;
[0032] The target tenant creation module is used to create the target tenant corresponding to the tenant activation request when it is determined that the multi-tenant application has successfully verified the tenant activation information.
[0033] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the multi-tenant application management method as described above.
[0034] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the multi-tenant application management method as described above.
[0035] The multi-tenant application management method, apparatus, device, and readable storage medium provided by this invention are applied to a multi-tenant application management system including a multi-tenant application and an application integration platform. Upon receiving a tenant activation request, the application integration platform calls the application registration information of the multi-tenant application to obtain the tenant activation service interface; the application integration platform then sends tenant activation information to the tenant activation service interface; the multi-tenant application verifies the tenant activation information, and if verification is successful, creates the target tenant corresponding to the tenant activation request. This application simplifies the login authentication method of multi-tenant applications through integrated authentication, solves the account management problem of multi-tenant applications, and reduces the integration difficulty of multi-tenant applications. Attached Figure Description
[0036] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0037] Figure 1 This is one of the flowcharts illustrating the multi-tenant application management method provided by the present invention;
[0038] Figure 2 This is the second flowchart of the multi-tenant application management method provided by the present invention;
[0039] Figure 3 This is the third flowchart of the multi-tenant application management method provided by the present invention;
[0040] Figure 4 This is the fourth flowchart of the multi-tenant application management method provided by the present invention;
[0041] Figure 5 This is a schematic diagram of the structure of the multi-tenant application management device provided by the present invention;
[0042] Figure 6 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0043] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0044] Please refer to Figure 1 This invention provides a multi-tenant application management method, comprising:
[0045] Step 100: Upon receiving a tenant activation request, the application registration information of the multi-tenant application is called through the application integration platform to obtain the tenant activation service interface;
[0046] To address the integration challenges of multi-tenant applications on application integration platforms such as workbenches and system portals, this invention provides a multi-tenant application management method. This method enables the integration and authentication login of multi-tenant applications through tenant activation, tenant binding, and tenant authentication.
[0047] First, the multi-tenant application information is registered in the application integration platform. Then, after the multi-tenant application registration is completed, the application integration platform automatically calls the activation address in the multi-tenant application registration information to activate the new tenant. Here, the activation address refers to the service interface address exposed by the multi-tenant application for activating new tenants, that is, the address of the tenant activation service interface in this embodiment.
[0048] Step 200: Send tenant activation information to the tenant's service activation interface through the application integration platform;
[0049] After a multi-tenant application completes registration, the application integration platform automatically calls the activation address from the application registration information to activate the new tenant. The application integration platform sends enterprise information, user information, and verification codes to the multi-tenant application. Upon receiving the new tenant activation request, the multi-tenant application verifies the aforementioned enterprise information and creates the tenant and master account for that enterprise. Enterprise information mainly includes, but is not limited to, identifier, name, type, responsible person, contact information, and address; user information refers to the tenant administrator's user information, including but not limited to name, gender, date of birth, phone number, email address, company, and department; the verification code is a one-time verification string generated by the application integration platform for verifying the legitimacy of the request. The verification code has short-term validity and expires after use, and cannot be reused. After obtaining the verification code, the multi-tenant application first verifies the requesting identity with the application integration platform, and creates the new tenant only after successful verification.
[0050] After successful tenant activation, tenant binding is performed. When a new tenant is activated in a multi-tenant application, the new tenant's information is synchronized to the application integration platform. The application integration platform then binds the new tenant to the current administrator account and creates a shortcut entry for the application.
[0051] The tenant binding process is as follows:
[0052] Step 1: After receiving the information of the newly activated tenant, the application integration platform binds the application information, the new tenant information, and the current administrator account of the application integration platform to establish a one-to-one mapping relationship, that is, the application information, the new tenant information, and the administrator account are bound to each other in pairs.
[0053] Step 2: Create a shortcut to the multi-tenant application in the application integration platform; it is usually presented on the system page of the application integration platform as an application icon plus the application name.
[0054] Step 300: If the multi-tenant application verifies the tenant activation information, create the target tenant corresponding to the tenant activation request.
[0055] After tenant binding is completed, tenant authentication and verification are performed. The tenant authentication process includes: when using the application through the aforementioned application shortcut, the application integration platform obtains the tenant information corresponding to the currently logged-in account through the currently logged-in account, and verifies the identity of the logged-in tenant through the authentication interface of the multi-tenant application, thereby enabling automatic login of the multi-tenant application account.
[0056] The tenant authentication process specifically includes:
[0057] First, the application integration platform queries the mapping relationship established by the current login account and application identifier data to query the tenant information corresponding to the current login account;
[0058] Secondly, a one-time verification code is generated, and the application access address is invoked to initiate access to the multi-tenant application. Upon receiving the access request, the multi-tenant application encapsulates data such as the verification code, application identifier, and application key, and performs two-way verification of the request with the application integration platform. The application identifier and application key are generated during the application registration phase.
[0059] Thirdly, after the application integration platform verifies the login information, it sends the current login information and the application's tenant information to the multi-tenant application. Upon receiving the tenant information, the multi-tenant application verifies the tenant's legitimacy. If the verification is successful, it redirects the page according to the login account's role and permissions. Then, the application integration platform redirects the user to the function corresponding to that tenant account based on the redirected address.
[0060] The multi-tenant application management method provided in this embodiment is applied to a multi-tenant application management system that includes a multi-tenant application and an application integration platform. Upon receiving a tenant activation request, the application integration platform calls the application registration information of the multi-tenant application to obtain the tenant activation service interface; the application integration platform then sends tenant activation information to the tenant activation service interface; the multi-tenant application verifies the tenant activation information, and if verification is successful, creates the target tenant corresponding to the tenant activation request. This application simplifies the login authentication method of multi-tenant applications through integrated authentication, solves the account management problem of multi-tenant applications, and reduces the integration difficulty of multi-tenant applications.
[0061] In one embodiment, the multi-tenant application management method provided in this application may further include:
[0062] Step 10: Obtain the application information of the multi-tenant application; the application information includes the address of the service interface used to activate the tenant; the activation of the service interface by the tenant is determined based on the address of the service interface;
[0063] Step 20: Register the application information on the application integration platform to obtain the application registration information.
[0064] Before accepting tenant activation, the multi-tenant application information needs to be registered in the application integration platform. Multi-tenant application information includes application name, application icon, application type, access address, activation address, and unsubscribe address.
[0065] The application name refers to the name of the multi-tenant application system, which can be represented in multiple languages; the application icon is the logo image of the multi-tenant application system, generally in various image formats such as PNG, SVG, JPEG, and WebP, serving as an application identifier for easy user identification; the application type refers to the application's classification, for example, by function it can be divided into manufacturing, R&D design and operation management, etc.; by field it can be divided into cloud computing, big data, and artificial intelligence, etc.; the access address is the address of the multi-tenant application system accessed in a browser; the activation address is the address of the service interface exposed by the multi-tenant application for activating new tenants; the unsubscribe address corresponds to the activation address and is the address of the service interface exposed by the multi-tenant application for unsubscribing from a tenant.
[0066] After a multi-tenant application successfully registers, an application identifier and application key are automatically generated for subsequent verification. The application key can be generated using a hash algorithm.
[0067] This embodiment enables the activation of multi-tenant applications by registering their information in the application integration platform.
[0068] Please refer to Figure 2 In one embodiment, the multi-tenant application management method provided in this application may further include:
[0069] Step 400: Determine the tenant information of the target tenant and determine the administrator account of the application integration platform;
[0070] Step 500: Bind the application information, the tenant information, and the administrator account through a one-to-one mapping method;
[0071] Step 600: Once the binding is complete, log in to the target tenant's main account using the administrator account.
[0072] After successful tenant activation, tenant binding is performed. When a new tenant is activated in a multi-tenant application, the new tenant's information is synchronized to the application integration platform. The application integration platform then binds the new tenant to its current administrator account and creates a shortcut entry for the application.
[0073] The specific process of tenant binding is as follows:
[0074] Step 1: After receiving the information of the newly activated tenant, the application integration platform binds the application information, the new tenant information, and the current administrator account of the application integration platform to establish a one-to-one mapping relationship. That is, the application information, the new tenant information, and the administrator account are bound to each other in pairs. The application information mainly includes the application identifier and the application name. The tenant information mainly includes the tenant identifier, the tenant name, the main account identifier, the main account name, the main account password, the enterprise identifier, and the user name.
[0075] Step 2: Create a shortcut to the multi-tenant application in the application integration platform; it is usually presented on the system page of the application integration platform as an application icon plus the application name.
[0076] After the application information, tenant information, and administrator account are bound, log in to the target tenant's main account using the administrator account.
[0077] This embodiment solves the account management problem of multi-tenant applications and reduces the integration difficulty of multi-tenant applications by binding application information, tenant information and administrator account.
[0078] Please refer to Figure 3 In one embodiment, the multi-tenant application management method provided in this application may further include:
[0079] Step 700: Upon receiving a sub-account creation request initiated by the target tenant, determine the target sub-account corresponding to the sub-account creation request;
[0080] Step 800: Bind the target sub-account to the regular account;
[0081] Step 900: Once the binding is complete, log in to the target sub-account using the regular account.
[0082] Upon receiving a sub-account creation request initiated by a target tenant, the target sub-account corresponding to the sub-account creation request is determined. The sub-account is then activated and authorized in the multi-tenant application. The multi-tenant application synchronizes the sub-account information to the application integration platform, enabling the binding of the application integration platform's regular account with the sub-account, and creating a quick application entry for the sub-account.
[0083] The management details for sub-accounts are as follows:
[0084] 1. After a tenant is created, the tenant administrator can log in to the multi-tenant application system to create and authorize sub-accounts. Sub-account creation is primarily performed within the multi-tenant application.
[0085] II. After a sub-account is created or updated, a synchronization operation is triggered in the multi-tenant application, synchronizing the user-created or updated sub-account information to the application integration platform. Sub-accounts can be created in batches via import according to the rules. The rules mainly refer to the application integration platform sending the platform account information that needs to be activated to the multi-tenant application, which then creates sub-accounts in batches based on the platform account with a prefix identifier. The platform account information mainly includes account identifier, account name, user name, contact number, email address, and department, etc.
[0086] Third, after obtaining the sub-account information, the application integration platform binds it to the platform's regular accounts, establishing a one-to-one mapping relationship between applications, tenants, sub-accounts, and platform regular accounts. The application integration platform also creates quick access points for multi-tenant applications for platform regular users, typically displayed on the system page as an application icon with the application name.
[0087] IV. After logging into the application integration platform, users can see quick access to applications. When clicking to use an application, the application integration platform automatically retrieves the user's associated tenant and sub-account information, performs automatic authentication with the multi-tenant application, and redirects the user to the function corresponding to the tenant's sub-account upon successful authentication. The sub-account authentication process is consistent with tenant authentication, and sub-account information includes application identifier, tenant identifier, tenant name, sub-account identifier, sub-account name, and sub-account password. This completes the integration authentication of the multi-tenant application on the application integration platform.
[0088] This embodiment solves the account management problem of multi-tenant applications and reduces the integration difficulty of multi-tenant applications by integrating authentication with multi-tenant applications and their sub-accounts.
[0089] In one embodiment, the multi-tenant application management method provided in this application may further include:
[0090] Step 1000: Upon receiving a login request, determine the login account and application identifier corresponding to the login request;
[0091] Step 1100: If no tenant information corresponding to the application identifier is found, it is determined that the login account has failed to log in.
[0092] The first step in the tenant authentication process described above is to query the tenant information corresponding to the currently logged-in account. If no tenant is found, it means that the application is not bound to a tenant. Tenant information includes application identifier, tenant identifier, tenant name, main account identifier, main account name, and main account password, etc.; then, a one-time verification code is generated, and the application access address is invoked to initiate access to the multi-tenant application. After receiving the access request, the multi-tenant application encapsulates data such as the verification code, application identifier, and application key, and performs two-way verification of the request with the application integration platform. Among them, the application identifier and application key are generated during the application registration phase.
[0093] This embodiment achieves automatic login of tenant accounts through the tenant authentication process, which solves the account management problem of multi-tenant applications and reduces the integration difficulty of multi-tenant applications.
[0094] Please refer to Figure 4 In one embodiment, the multi-tenant application management method provided in this application may further include:
[0095] Step 1200: If the tenant information corresponding to the application identifier is found, verify the tenant information corresponding to the application identifier.
[0096] Step 1300: If the verification is successful, determine the tenant account in the tenant information corresponding to the application identifier;
[0097] Step 1400: Load the target function corresponding to the tenant account and output the target function on the targeted page corresponding to the tenant account.
[0098] The third point regarding tenant authentication is that the tenant information refers to the tenant data retrieved above, including the application identifier, tenant identifier, tenant name, master account identifier, master account name, and master account password. The application's tenant information can be encrypted using methods such as SHA256, symmetric encryption, and asymmetric encryption in the request to protect information security and prevent data leakage.
[0099] If the verification is successful, determine the tenant account in the tenant information corresponding to the application identifier; load the target function corresponding to the tenant account, and output the target function on the targeted page corresponding to the tenant account.
[0100] This embodiment ensures the security of account login information through tenant authentication and verification.
[0101] In one embodiment, the multi-tenant application management method provided in this application may further include:
[0102] Step 1500: Upon receiving a tenant cancellation request, determine the sub-account to be cancelled corresponding to the tenant cancellation request;
[0103] Step 1600: Unbind the sub-account to be cancelled from the target application, and unbind the sub-account to be cancelled from the ordinary account.
[0104] As described above, tenant cancellation is related to tenant activation. Upon receiving a tenant cancellation request, the process first identifies the sub-account to be cancelled, i.e., the sub-account to be cancelled. Then, the binding between the sub-account to be cancelled and the regular account is removed. The functions corresponding to the sub-account to be cancelled are disabled, including removing the application icon associated with the account.
[0105] This embodiment further solves the account management problem of multi-tenant applications by implementing a tenant cancellation process corresponding to the tenant's activation, and reduces the integration difficulty of multi-tenant applications.
[0106] The multi-tenant application management device provided by the present invention is described below. The multi-tenant application management device described below can be referred to in correspondence with the multi-tenant application management method described above.
[0107] Please refer to Figure 5 The present invention also provides a multi-tenant application management device, comprising:
[0108] The tenant activation service interface determination module 501 is used to obtain the tenant activation service interface by calling the application registration information of the multi-tenant application through the application integration platform when a tenant activation request is received.
[0109] The tenant activation information sending module 502 is used to send tenant activation information to the tenant activation service interface through the application integration platform.
[0110] The target tenant creation module 503 is used to create the target tenant corresponding to the tenant activation request when it is determined that the multi-tenant application has successfully verified the tenant activation information.
[0111] Optionally, the multi-tenant application management device further includes:
[0112] An application information acquisition module is used to acquire application information of the multi-tenant application; the application information includes the address of the service interface used to activate the tenant; the activation of the service interface by the tenant is determined based on the address of the service interface;
[0113] The application registration information determination module is used to register the application information on the application integration platform and obtain the application registration information.
[0114] Optionally, the multi-tenant application management device further includes:
[0115] The tenant information determination module is used to determine the tenant information of the target tenant and the administrator account of the application integration platform;
[0116] The application account binding module is used to bind the application information, the tenant information, and the administrator account through a one-to-one mapping method.
[0117] The target tenant account login module is used to log in to the target tenant's main account through the administrator account after the binding is completed.
[0118] Optionally, the multi-tenant application management device further includes:
[0119] The target sub-account determination module is used to determine the target sub-account corresponding to the sub-account creation request when a sub-account creation request initiated based on the target tenant is received.
[0120] The account binding module is used to bind the target sub-account to a regular account;
[0121] The target sub-account login module is used to log in to the target sub-account through the ordinary account after the binding is completed.
[0122] Optionally, the multi-tenant application management device further includes:
[0123] The first determining module is used to determine the login account and application identifier corresponding to the login request upon receiving the login request.
[0124] The login failure determination module is used to determine that the login account has failed if the tenant information corresponding to the application identifier is not found.
[0125] Optionally, the multi-tenant application management device further includes:
[0126] The tenant information verification module is used to verify the tenant information corresponding to the application identifier when the tenant information corresponding to the application identifier is found.
[0127] The tenant account determination module is used to determine the tenant account in the tenant information corresponding to the application identifier when the verification is successful.
[0128] The target function output module is used to load the target function corresponding to the tenant account and output the target function on the targeted page corresponding to the tenant account.
[0129] Optionally, the multi-tenant application management device further includes:
[0130] The module for determining accounts to be cancelled is used to determine the sub-account to be cancelled corresponding to the tenant's cancellation request when a tenant cancellation request is received.
[0131] The binding and unbinding module is used to unbind the sub-account to be cancelled from the target application and to unbind the sub-account to be cancelled from the ordinary account.
[0132] Figure 6 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 6 As shown, the electronic device may include a processor 610, a communications interface 620, a memory 630, and a communication bus 640. The processor 610, communications interface 620, and memory 630 communicate with each other via the communication bus 640. The processor 610 can call logical instructions from the memory 630 to execute multi-tenant application management methods.
[0133] Furthermore, the logical instructions in the aforementioned memory 630 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0134] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the multi-tenant application management methods provided by the methods described above.
[0135] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0136] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0137] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A multi-tenant application management method, characterized in that, A method applicable to a multi-tenant application management system that includes multi-tenant applications and application integration platforms; the method includes: Obtain the application information of the multi-tenant application; the application information includes the address of the service interface used to enable the tenant; Register the application information on the application integration platform to obtain the application registration information; Upon receiving a tenant activation request, the application registration information of the multi-tenant application is invoked through the application integration platform to obtain the tenant activation service interface; the tenant activation service interface is determined based on the address of the service interface. The application integration platform sends tenant activation information to the tenant's service activation interface. If the multi-tenant application verifies the tenant activation information, a target tenant corresponding to the tenant activation request is created. Determine the tenant information of the target tenant and the administrator account of the application integration platform; The application information, the tenant information, and the administrator account are bound together through a one-to-one mapping method. Once the binding is complete, log in to the target tenant's main account using the administrator account.
2. The multi-tenant application management method according to claim 1, characterized in that, The process of binding the application information, the tenant information, and the administrator account through a one-to-one mapping includes: Upon receiving a sub-account creation request initiated by the target tenant, determine the target sub-account corresponding to the sub-account creation request; Bind the target sub-account to a regular account; Once the binding is complete, log in to the target sub-account using the regular account.
3. The multi-tenant application management method according to claim 1, characterized in that, The process of binding the application information, the tenant information, and the administrator account through a one-to-one mapping method further includes: Upon receiving a login request, determine the login account and application identifier corresponding to the login request; If no tenant information corresponding to the application identifier is found, the login account is determined to have failed to log in.
4. The multi-tenant application management method according to claim 3, characterized in that, Upon receiving a login request, the step of determining the login account and application identifier corresponding to the login request includes: If the tenant information corresponding to the application identifier is found, the tenant information corresponding to the application identifier is verified. If the verification is successful, the tenant account in the tenant information corresponding to the application identifier is determined; Load the target function corresponding to the tenant account, and output the target function on the targeted page corresponding to the tenant account.
5. The multi-tenant application management method according to claim 2, characterized in that, The process of binding the application information, the tenant information, and the administrator account through a one-to-one mapping method further includes: Upon receiving a tenant cancellation request, determine the sub-account to be cancelled corresponding to the tenant cancellation request; Remove the binding between the sub-account to be cancelled and the target application, and remove the binding between the sub-account to be cancelled and the regular account.
6. A multi-tenant application management device, characterized in that, include: The application information acquisition module is used to acquire application information of multi-tenant applications; The application information includes the address of the service interface used to activate the tenant; The application registration information determination module is used to register the application information on the application integration platform and obtain the application registration information; The tenant activation service interface determination module is used to obtain the tenant activation service interface by calling the application registration information of the multi-tenant application through the application integration platform when a tenant activation request is received; the tenant activation service interface is determined based on the address of the service interface. The tenant activation information sending module is used to send tenant activation information to the tenant activation service interface through the application integration platform; The target tenant creation module is used to create the target tenant corresponding to the tenant activation request when it is determined that the multi-tenant application has successfully verified the tenant activation information. The tenant information determination module is used to determine the tenant information of the target tenant and the administrator account of the application integration platform; The application account binding module is used to bind the application information, the tenant information, and the administrator account through a one-to-one mapping method. The target tenant account login module is used to log in to the target tenant's main account through the administrator account after the binding is completed.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the multi-tenant application management method as described in any one of claims 1 to 5.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the multi-tenant application management method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Multi-tenant system achievement based on software as a service (SAAS) application
CN103036856A