Search

CN-122020726-A - Application registration method, device, equipment and readable storage medium

CN122020726ACN 122020726 ACN122020726 ACN 122020726ACN-122020726-A

Abstract

The invention discloses an application registration method, device, equipment and readable storage medium, wherein the method comprises the steps of acquiring registration form information submitted by a first object; the registration form information comprises a target application tenant identification and first object registration information, hook query processing is conducted on the target application tenant identification to obtain a hook query result, if the hook query result indicates that a pre-registration tenant management hook in an enabling state exists in the target application tenant identification, the first object registration information is submitted to a target application tenant server according to the pre-registration tenant management hook, so that the target application tenant server conducts registration checking processing on the first object registration information to obtain a registration checking result, and if the registration checking result is a registration checking result, application registration processing is conducted according to the first object registration information to obtain an application registration result. By adopting the method and the device, the flexibility and the diversity of registration verification in a multi-tenant application scene can be improved.

Inventors

  • YANG YUNXIANG

Assignees

  • 腾讯科技(深圳)有限公司

Dates

Publication Date
20260512
Application Date
20241112

Claims (12)

  1. 1. The application registration method is characterized by being executed by an application background server corresponding to an application, wherein the application background server is used for providing application services for one or more application tenants, application data corresponding to different application tenants are isolated from each other in the application background server, and the method comprises the following steps: The method comprises the steps of obtaining registration form information submitted by a first object, wherein the registration form information comprises a target application tenant identifier and first object registration information, and the target application tenant associated with the target application tenant identifier belongs to one or more application tenants; performing hook query processing on the target application tenant identification to obtain a hook query result; If the hook query result indicates that the target application tenant identifier has a pre-registration tenant management hook in an enabling state, submitting the first object registration information to a target application tenant server according to the pre-registration tenant management hook so that the target application tenant server carries out registration verification processing on the first object registration information to obtain a registration verification result; and if the registration verification result is a registration verification passing result, performing application registration processing according to the first object registration information to obtain an application registration result.
  2. 2. The method of claim 1, wherein the performing hook query processing on the target application tenant identity to obtain a hook query result comprises: The method comprises the steps of obtaining a hook configuration table, wherein the hook configuration table comprises one or more configured application tenant identifications and application tenant management hooks associated with each configured application tenant identification; If the target application tenant identification is found in the one or more configured application tenant identifications, determining an application tenant management hook associated with the target application tenant identification in the hook configuration table as a pre-registration tenant management hook, and determining a hook running state corresponding to the pre-registration tenant management hook; and if the hook running state is the starting state, determining a hook starting result as a hook query result, wherein the hook starting result is used for indicating that the target application tenant identifier has a pre-registration tenant management hook in the starting state.
  3. 3. The method as recited in claim 1, further comprising: if the registration verification result is a registration verification passing result, acquiring an object information updating result; If the object information updating result indicates that the target application tenant server does not update the first object registration information, executing application registration processing according to the first object registration information to obtain an application registration result; And if the object information updating result indicates that the target application tenant server has updated the first object registration information, performing synchronous updating processing on the first object registration information according to the object information updating result to obtain updated object registration information, and performing application registration processing according to the updated object registration information to obtain an application registration result.
  4. 4. An application registration method, the method performed by a target application tenant server, the method comprising: The method comprises the steps of receiving first object registration information, wherein the first object registration information is submitted by an application background server according to a registration front tenant management hook in an enabling state, wherein the registration front tenant management hook is in an enabling state and is contained in a target application tenant identification when receiving registration form information submitted by a first object, the application background server is used for providing application services for one or more application tenants, and application data corresponding to different application tenants are isolated from each other in the application background server; Performing registration verification processing on the first object registration information to obtain a registration verification result; And sending the registration verification result to the application background server, so that the application background server carries out application registration processing according to the first object registration information when the registration verification result is a registration verification passing result, and an application registration result is obtained.
  5. 5. The method of claim 4, wherein the first object registration information comprises a first object identification; the registering and checking process is performed on the first object registering information to obtain a registering and checking result, which comprises the following steps: Acquiring a record table without authority objects, wherein the record table without authority objects comprises one or more identification of the authority objects without authority objects; if the one or more non-authority object identifiers have the same non-authority object identifier as the first object identifier, determining that the registration check result is a registration check failure result; and if the one or more non-authority object identifiers do not have the same non-authority object identifier as the first object identifier, determining that the registration verification result is a registration verification passing result.
  6. 6. The method of claim 4, wherein performing a registration check process on the first object registration information to obtain a registration check result comprises: performing risk identification processing on the first object registration information to obtain registration risk probability; if the registration risk probability is greater than or equal to a high risk probability threshold, determining that the registration verification result is a registration verification failure result; if the registration risk probability is smaller than a low risk probability threshold, determining that the registration verification result is a registration verification passing result; and if the registration risk probability is smaller than the high risk probability threshold and larger than or equal to the low risk probability threshold, performing a secondary registration verification request on the first object, receiving secondary registration verification information sent by the first object, and determining a registration verification result according to the secondary registration verification information.
  7. 7. The method as recited in claim 4, further comprising: If the registration verification result is a registration verification passing result, carrying out information updating processing on the first object registration information to obtain an object information updating result; The object information updating result is sent to the application background server, so that the application background server executes application registration processing according to the first object registration information when the object information updating result indicates that the target application tenant server does not update the first object registration information, and an application registration result is obtained; and when the object information updating result indicates that the target application tenant server has updated the first object registration information, performing synchronous updating processing on the first object registration information according to the object information updating result to obtain updated object registration information, and performing application registration processing according to the updated object registration information to obtain an application registration result.
  8. 8. The method of claim 7, wherein the performing information update processing on the first object registration information to obtain an object information update result includes: performing information format correction processing on the first object registration information to obtain corrected object registration information; Performing information supplementing processing on the correction object registration information to obtain supplementing object registration information; If the supplementary object registration information is the same as the first object registration information, generating an object information updating result for indicating that the target application tenant server does not update the first object registration information; And if the supplementary object registration information is different from the first object registration information, generating an object information updating result indicating that the target application tenant server has updated the information of the first object registration information according to the information which is different between the supplementary object registration information and the first object registration information.
  9. 9. The application registration device is characterized by being operated by an application background server corresponding to an application, wherein the application background server is used for providing application services for one or more application tenants, application data corresponding to different application tenants are isolated from each other in the application background server, and the device comprises: the system comprises an acquisition module, a registration form information acquisition module and a storage module, wherein the acquisition module is used for acquiring registration form information submitted by a first object, the registration form information comprises a target application tenant identifier and first object registration information, and the target application tenant associated with the target application tenant identifier belongs to one or more application tenants; The hook query module is used for carrying out hook query processing on the target application tenant identification to obtain a hook query result; The hook checking module is used for submitting the first object registration information to a target application tenant server according to the pre-registration tenant management hook if the hook query result indicates that the target application tenant identifier has the pre-registration tenant management hook in an enabled state, so that the target application tenant server performs registration checking processing on the first object registration information to obtain a registration checking result; And the registration module is used for carrying out application registration processing according to the first object registration information to obtain an application registration result if the registration verification result is a registration verification passing result.
  10. 10. A computer device comprises a processor, a memory, and a network interface; the processor is connected to the memory, the network interface for providing data communication functions, the memory for storing program code, the processor for invoking the program code to perform the method of any of claims 1-8.
  11. 11. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program adapted to be loaded by a processor and to perform the method of any of claims 1-8.
  12. 12. A computer program product comprising computer program/instructions which, when executed by a processor, is adapted to carry out the method of any one of claims 1 to 8.

Description

Application registration method, device, equipment and readable storage medium Technical Field The present application relates to the field of computer technologies, and in particular, to an application registration method, apparatus, device, and readable storage medium. Background With the continuous development of internet technology, various applications (App) are layered, in order to better perform user data management and provide security, a user generally needs to complete registration to use an Application, and an existing registration process generally includes that after a user submits registration information to an Application background server, the Application background server firstly checks the registration information, and after the verification passes, the user registration is completed. However, in a multi-tenant application scenario, one application needs to serve multiple tenants, data between different tenants are isolated from each other, and different tenants have a great difference in registration requirements for users, for example, for user a, tenant B may allow its registration application, while tenant C may not allow its registration application, so for different tenants, the application background server needs to configure different registration check rules. The more tenants, the more registration check rules the application background server needs to configure, the more serious the running load of the application background server, and the lower the application registration efficiency. In addition, for security and privacy, the tenant is not willing to upload its own user data to the application background server, and few auxiliary data can be used in registration verification, which results in a great limitation in registration verification. Disclosure of Invention The embodiment of the application provides an application registration method, device, equipment and readable storage medium, which can improve the flexibility and diversity of registration verification in a multi-tenant application scene and improve the application registration efficiency. In one aspect, the embodiment of the application provides an application registration method, which is executed by an application background server corresponding to an application, wherein the application background server is used for providing application services for one or more application tenants, application data corresponding to different application tenants are isolated from each other in the application background server, and the method comprises the following steps: the method comprises the steps of obtaining registry information submitted by a first object, wherein the registry information comprises a target application tenant identifier and first object registration information, and the target application tenant associated with the target application tenant identifier belongs to one or more application tenants; Performing hook query processing on the target application tenant identification to obtain a hook query result; If the hook query result indicates that the target application tenant identity has the pre-registration tenant management hook in the enabling state, submitting the first object registration information to the target application tenant server according to the pre-registration tenant management hook so that the target application tenant server carries out registration verification processing on the first object registration information to obtain a registration verification result; and if the registration verification result is a registration verification passing result, performing application registration processing according to the first object registration information to obtain an application registration result. In one aspect, an embodiment of the present application provides an application registration method, where the method is executed by a target application tenant server, and the method includes: the method comprises the steps of receiving first object registration information, wherein the first object registration information is submitted by a registration front tenant management hook in an enabling state according to a target application tenant identifier contained in registration form information when an application background server receives registration form information submitted by a first object; performing registration verification processing on the first object registration information to obtain a registration verification result; and sending the registration verification result to the application background server, so that the application background server performs application registration processing according to the first object registration information when the registration verification result is a registration verification passing result, and an application registration result is obtained. In one aspect, an embodiment of the present application provides an application registration d