A universal three-party access platform docking method, business docking method and system
By extracting key information and tenant access configuration of third-party platforms, the multi-tenant and multi-third-party platform docking of high-integration large three-party platforms is realized, which solves the problems of complexity and low efficiency of docking and improves connection Input efficiency and system flexibility.
Patent Information
- Application Number
- CN202311152580.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-08
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2043-09-08
AI Technical Summary
The problem of complex docking of large three-party platforms under multi-tenant and multi-third-party platforms is that they have low docking efficiency.
By extracting the platform name, platform address, platform identification and platform grouping of third-party platforms for pre-configuration, and building access configurations based on the tenant's access name, access status, account key and target platform information to realize the tenant and the second The abstract access of the three-party platform uses routing discrimination components and RPC interceptors to process business requests, simplifying the access process.
It improves the efficiency of third-party platforms and tenants access, reduces the complexity of system design and business logic, makes the entire general three-party access platform more flexible, easy to maintain and manage, and improves scalability and reusability.
Smart Images

Figure CN116886763B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of software development, and in particular to a docking method for a universal three-party access platform, a business docking method and a system. Background Art
[0002] As computer technology gradually penetrates into people's daily life and industrial production, software systems or software platforms with various specific functions are gradually improved.
[0003] In order to facilitate the development and application of various software platforms with specific functions, large-scale third-party platforms with high integration that can cover multiple fields have gradually become the basic platforms for various software development. For example, large-scale PaaS platforms are large-scale cloud platforms used to provide various software development, testing and management applications.
[0004] However, the inventors found that this type of highly integrated large-scale third-party platform still has the following technical defects in actual application: as more and more software platforms (i.e. third-party platforms) are connected, the system design and business logic writing of the highly integrated large-scale third-party platform itself become more complicated. When the highly integrated large-scale third-party platform connects tenants with software platforms, it still uses the traditional code writing method, which leads to complex connection under multiple tenants and multiple software platforms, and low connection efficiency, which in turn makes the third-party platform unable to be effectively applied in actual scenarios. Summary of the invention
[0005] The present invention aims to provide a method for docking a universal third-party access platform, a method for docking a business, and a system, so as to improve the technical problem of low efficiency of existing highly integrated large-scale third-party platforms when docking with multi-tenants and multi-third-party platforms.
[0006] To achieve the above object, the present invention proposes the following technical solutions:
[0007] In a first aspect, the technical solution provides a method for connecting a universal third-party access platform, including:
[0008] Extracting the first element carried by each third-party platform, so as to preconfigure each third-party platform to the universal third-party access platform based on the first element;
[0009] The first element includes: platform name, platform address, platform identifier and platform group; wherein the platform name is used by tenants in the universal third-party access platform to identify the corresponding third-party platform, the platform address is used by the universal third-party access platform to confirm the API prefix of the corresponding third-party platform, the platform identifier is used by the universal third-party access platform to confirm the same type of third-party platforms, and the platform group is used by the universal third-party access platform to distinguish mutually exclusive third-party platforms of the same type;
[0010] Building a tenant access configuration of the universal third-party access platform based on the second element carried by each tenant;
[0011] The second element includes: access name, access status, account key and target platform; wherein the access name is used by the universal third-party access platform to identify the tenant, the access status is used by the universal third-party access platform to control the tenant's access on or off, the account key is used by the universal third-party access platform to authorize and authenticate the tenant, and the target platform is used by the universal third-party access platform to confirm the third-party platform selected by the tenant;
[0012] The tenant is connected to a target third-party platform in the universal third-party access platform based on the access configuration.
[0013] Further, the extracting the first element carried by each third-party platform to preconfigure each third-party platform to the universal third-party access platform based on the first element also includes:
[0014] Extracting the third element carried by each third-party platform, so as to preconfigure each third-party platform to the universal third-party access platform based on the third element;
[0015] Among them, the third factor includes: global access and authentication information; the global access is used by the general third-party access platform to open the corresponding third-party platform to all tenants, and the authentication information is used by the general third-party access platform to perform access authentication on the third-party platform pre-opened to all tenants.
[0016] In a second aspect, the technical solution provides a service docking method of a universal three-party access platform, based on the docking method, including:
[0017] Obtaining a tenant's service request; wherein the service request is used to request obtaining any service corresponding to the tenant and any connected third-party platform;
[0018] Based on the routing determination component, the access configuration of the tenant is called, and the third-party platform corresponding to the service is traversed to obtain the service interface corresponding to the service through the adaptation processor of the third-party platform;
[0019] When it is determined based on the RPC interceptor that the tenant has not obtained the authentication of the third-party platform corresponding to the service, the third-party authorization component is called to perform authorization authentication on the tenant based on the pre-configuration information of the third-party platform and the access configuration information of the tenant;
[0020] Return the service content corresponding to the service request to the tenant.
[0021] Further, the routing determination component calls the access configuration of the tenant, and the third-party platform corresponding to the service traverses the adaptation processor of the third-party platform to obtain the service interface corresponding to the service; including:
[0022] The access configuration of the tenant and the third-party platform corresponding to the service are stored so as to be directly called when the tenant re-initiates any service request corresponding to the third-party platform.
[0023] Furthermore, after obtaining the tenant's business request, it includes:
[0024] When it is determined that the third-party platform corresponding to the business request is pre-configured to the universal third-party access platform based on the third factor, the step of calling the tenant's access configuration based on the routing determination component and the third-party platform corresponding to the business to traverse the adaptation processor of the third-party platform and obtain the business interface corresponding to the business is skipped.
[0025] Furthermore, when the RPC interceptor determines that the tenant has not obtained authentication from the third-party platform corresponding to the service, the third-party authorization component is called to perform authorization authentication on the tenant based on the pre-configuration information of the third-party platform and the access configuration information of the tenant; including:
[0026] The validity period of the third-party platform authorization of the account corresponding to the authorization authentication is obtained, and the authorization token obtained by the account key is stored according to the validity period.
[0027] In a third aspect, the technical solution provides a universal third-party access platform docking system, including:
[0028] A first configuration module, configured to extract a first element carried by each third-party platform, so as to preconfigure each third-party platform to the universal third-party access platform based on the first element;
[0029] The first element includes: platform name, platform address, platform identifier and platform group; wherein the platform name is used by tenants in the universal third-party access platform to identify the corresponding third-party platform, the platform address is used by the universal third-party access platform to confirm the API prefix of the corresponding third-party platform, the platform identifier is used by the universal third-party access platform to confirm the same type of third-party platforms, and the platform group is used by the universal third-party access platform to distinguish mutually exclusive third-party platforms of the same type;
[0030] An interface construction module, used to construct a tenant access configuration of the universal third-party access platform based on the second element carried by each tenant;
[0031] The second element includes: access name, access status, account key, and target platform; the access name is used by the universal third-party access platform to identify the tenant, the access status is used by the universal third-party access platform to control the tenant's access on or off, the account key is used by the universal third-party access platform to authorize and authenticate the tenant, and the target platform is used by the universal third-party access platform to confirm the third-party platform selected by the tenant;
[0032] A docking module is used to achieve docking between the tenant and a target third-party platform in the universal third-party access platform based on the access configuration.
[0033] Further, including:
[0034] A second configuration module, used to extract the third element carried by each third-party platform, so as to preconfigure each third-party platform to the universal third-party access platform based on the third element;
[0035] Among them, the third factor includes: global access and authentication information; the global access is used by the general third-party access platform to open the corresponding third-party platform to all tenants, and the authentication information is used by the general third-party access platform to perform access authentication on the third-party platform pre-opened to all tenants.
[0036] In a fourth aspect, the technical solution provides an electronic device, comprising at least one processor, wherein the processor is coupled to a memory, wherein a computer program is stored in the memory, and wherein the computer program is configured to execute the method described when executed by the processor.
[0037] In a fifth aspect, the present technical solution provides a computer-readable storage medium on which a computer program is stored, wherein the computer program is used to execute the described method.
[0038] Beneficial effects:
[0039] It can be seen from the above technical solutions that the technical solution of the present invention provides a method for docking a universal third-party access platform to improve the technical defects of the prior art in that the universal third-party access platform has low docking efficiency when docking with a third-party platform, especially when tenants access.
[0040] The docking method includes: first, extracting the first element carried by each third-party platform, so as to pre-configure each third-party platform to the general third-party access platform based on the first element; wherein the first element includes: platform name, platform address, platform identifier and platform group; wherein the platform name is used by the general third-party access platform to identify the corresponding third-party platform, the platform address is used by the general third-party access platform to confirm the API prefix of the corresponding third-party platform, the platform identifier is used by the general third-party access platform to confirm the same type of third-party platform, and the platform group is used by the general third-party access platform to distinguish mutually exclusive third-party platforms of the same type. Secondly, constructing the tenant access configuration of the general third-party access platform based on the second element carried by each tenant; wherein the second element includes: access name, access status, account key and target platform; wherein the access name is used by the general third-party access platform to identify the tenant, the access status is used by the general third-party access platform to control the tenant's access on or off, the account key is used by the general third-party access platform to perform tenant authorization authentication, and the target platform is used by the general third-party access platform to confirm the third-party platform selected by the tenant. Finally, the tenant is connected to the target third-party platform in the universal third-party access platform based on the access configuration.
[0041] It can be seen that the present technical solution is mainly based on the general third-party access platform, and abstract processing is adopted for the access of the third-party platform and the access of the tenant, completing the unified encapsulation of the third-party platform and the tenant access; that is, in the abstraction of the third-party platform, the corresponding first element is extracted as the required information for its access to the general third-party access platform, and in the tenant configuration abstraction, the second element of the tenant is used as the required information for its access to the specific third-party platform. Furthermore, when the tenant is connected to the corresponding third-party platform based on the general third-party access platform, the two can be quickly connected based on the corresponding elements. Compared with the existing docking method through programming, while realizing fast docking, it also has the advantages of making the entire general third-party access platform more flexible, easier to maintain and manage, and also improves the scalability and reusability of the general third-party access platform.
[0042] It should be appreciated that all combinations of the foregoing concepts, as well as additional concepts described in greater detail below, may be considered to be part of the inventive subject matter of the present disclosure, provided such concepts are not mutually inconsistent.
[0043] The foregoing and other aspects, embodiments and features of the present invention can be more fully understood from the following description in conjunction with the accompanying drawings. Other additional aspects of the present invention, such as the features and / or beneficial effects of the exemplary embodiments, will be apparent from the following description or learned from the practice of the specific embodiments according to the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The drawings are not intended to be drawn to scale. In the drawings, each identical or nearly identical component shown in various figures may be represented by the same reference numeral. For clarity, not every component is labeled in every figure. Embodiments of various aspects of the present invention will now be described by way of example and with reference to the accompanying drawings, in which:
[0045] Figure 1 This is a flow chart of the method for connecting to the universal third-party access platform described in this embodiment;
[0046] Figure 2 This is a flow chart of the third-party platform globally accessing the universal third-party access platform in this embodiment;
[0047] Figure 3 This is a flow chart of the service connection method of the universal three-party access platform described in this embodiment;
[0048] Figure 4 A flowchart of performing business request preprocessing in this embodiment;
[0049] Figure 5 A flow chart for improving the efficiency of business connection in this embodiment;
[0050] Figure 6 Another flow chart for improving the efficiency of business connection in this embodiment;
[0051] Figure 7 This is a schematic diagram of the structure of the docking system of the universal three-party access platform described in this embodiment;
[0052] Figure 8 Schematic diagram of the structure of the electronic device described in this embodiment. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Unless otherwise defined, the technical terms or scientific terms used herein should be the common meanings understood by people with ordinary skills in the field to which the present invention belongs.
[0054] The words "first", "second" and similar words used in the patent application specification and claims of the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, unless the context clearly indicates otherwise, the singular form of "a", "an" or "the" and similar words do not indicate a quantity limitation, but indicate the existence of at least one. "Include" or "comprise" and similar words mean that the elements or objects appearing before "include" or "comprise" include the features, wholes, steps, operations, elements and / or components listed after "include" or "comprise", and do not exclude the existence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0055] The high-integration large-scale third-party platform in the prior art still has the following technical defects in practical application: as more and more third-party platforms are connected, the system design and business logic writing of the high-integration large-scale third-party platform itself become more complicated. When the high-integration large-scale third-party platform connects tenants with the software platform, it still uses the traditional code writing method, which leads to technical problems such as complex connection under multiple tenants and multiple third-party platforms and low connection efficiency. Based on this, this embodiment aims to provide a connection method for a universal third-party access platform to improve the above technical defects.
[0056] The following is a detailed introduction to the method for connecting to the universal three-party access platform described in this embodiment in conjunction with the accompanying drawings.
[0057] like Figure 1 As shown, the docking method includes:
[0058] Step S102: extracting the first element carried by each third-party platform, so as to preconfigure each third-party platform to the universal third-party access platform based on the first element.
[0059] In specific implementation, the first element includes: platform name, platform address, platform identifier and platform group. Specifically, the platform name is used by tenants in the general third-party access platform to identify the corresponding third-party platform, the platform address is used by the general third-party access platform to confirm the API prefix of the corresponding third-party platform, the platform identifier is used by the general third-party access platform to confirm the same type of third-party platforms, and the platform group is used by the general third-party access platform to distinguish mutually exclusive third-party platforms of the same type.
[0060] As a special implementation method, the first element only includes the platform name, platform address and platform identifier, and does not involve platform grouping. The corresponding application scenario is that the general third-party access platform only pre-configures one third-party platform of the corresponding type, such as a payment platform, an Internet card management platform, etc.
[0061] Specifically, the tenant described in this embodiment may include one specific user or member, or may include multiple specific users or members.
[0062] Step S104: constructing a tenant access configuration of the universal third-party access platform based on the second element carried by each tenant.
[0063] In a specific implementation, the second element includes: access name, access status, account key and target platform. Specifically, the access name is used by the universal third-party access platform to identify the tenant, the access status is used by the universal third-party access platform to control the tenant's access on or off, the account key is used by the universal third-party access platform to authenticate the tenant, and the target platform is used by the universal third-party access platform to confirm the third-party platform selected by the tenant.
[0064] If the platform address is filled in, the third-party platform interface will be accessed through the API prefix splicing path first. It should be emphasized that in order to be compatible with some third-party platforms, the access API address path may be dynamically allocated. Therefore, we have redundant this field (the second element) in the access configuration, and it does not need to be filled in by default. If it is not filled in, the API prefix address configured by the general third-party access platform is used directly. If the API prefix address is configured in the access configuration, the address in the access configuration is used first to complete the API call.
[0065] Step S106: Implementing connection between the tenant and a target third-party platform in the universal third-party access platform based on the access configuration.
[0066] Considering that in some scenarios, some third-party platforms that are common to tenants give the universal third-party access platform the maximum authority at one time to conduct global unified access to all tenants; thereby avoiding the tediousness of tenants having to complete the connection with such third-party platforms individually every time. Figure 2 As shown, the step S102 may also be:
[0067] Step S102': extract the third element carried by each third-party platform, so as to preconfigure each third-party platform to the universal third-party access platform based on the third element.
[0068] In specific implementation, the third element includes: global access and authentication information. In this embodiment, the global access is used by the universal third-party access platform to open corresponding third-party platforms to all tenants, and the authentication information is used by the universal third-party access platform to perform access authentication on the third-party platforms pre-opened to all tenants.
[0069] At this time, based on step S102-step S106, the access of the third-party platform and the tenant is abstracted. At the same time, taking into account the need for global unified access, the third element of the third-party platform with global access requirements is extracted in a targeted manner to realize the abstract processing of this type of third-party platform. Furthermore, when the tenant is connected to the corresponding third-party platform based on the universal third-party access platform, the two can be quickly connected based on the corresponding elements. Compared with the existing docking method through programming, while realizing rapid docking, it also has the advantages of making the entire universal third-party access platform more flexible, easier to maintain and manage, and also improves the scalability and reusability of the universal third-party access platform.
[0070] From the above, it can be seen that the business logic between the platform pre-configuration and access configuration can be sorted out from the user side as follows: the general third-party access platform involves the docking of multiple third-party platforms. Within the general third-party access platform, members within the tenant can maintain their own access configurations. When members complete the configuration of the relevant third-party platform access configurations, they can dock with the corresponding third-party platform. (If the access configuration belongs to the global configuration, the administrator of the general third-party access platform will uniformly maintain the platform information and access configuration; at the same time, for the global configuration, the business of each downstream tenant will be uniformly docked to the third-party platform service, and the access information of the third-party platform can be displayed in the access configuration of each tenant by default. Specifically, the authentication information is maintained by the superior, and the corresponding key-sensitive information is hidden in the tenant's access configuration). The platform super administrator maintains platform grouping and other information. The administrator within the tenant maintains the access configuration of the tenant.
[0071] Once the third-party platform is successfully accessed, members within the tenant can complete the use of downstream services. Based on the business implementation, we further explore the downstream business access architecture corresponding to the access method. The platform adopts a microservice architecture and involves multiple service components, such as routing discrimination components, three-party authorization components, RPC interceptors, and adapter processors. The routing discrimination component is mainly for the same group of third-party platforms to provide business routing discrimination support during business processing. The three-party authorization component mainly provides a unified authorization and token business framework, and only needs to simply expand the interface adaptation to quickly complete the authorization business implementation. The RPC interceptor uses the current mainstream RPC framework to expand its own business logic; mainly through interception means, and then enters the proposed general authorization logic and the three-party interface call adaptation logic. The adapter processor is mainly the definition of some annotation interfaces, which consists of two parts: authorization interface and business interface. Of course, we have unified the access specifications, and when the developer implements it, he only needs to access it according to the required specifications. At this time, the difficulty of accessing the third-party platform is simplified, and a unified access interface method is provided for the service. Based on this, this embodiment also provides a business docking method for a general three-party access platform to enable tenants to complete the relevant downstream business deployment for the third-party platform.
[0072] The following is a detailed introduction to the service connection method of a universal three-party access platform described in this embodiment in conjunction with the accompanying drawings.
[0073] like Figure 3 As shown, the business docking method includes:
[0074] Step S202: Obtain the tenant's service request.
[0075] In this embodiment, the service request is used to request to obtain any service corresponding to the tenant and any connected third-party platform. Specifically, the service request includes service query, service modification, etc.
[0076] As a specific implementation method, Figure 4 As shown, after step S202, the following steps are also included to pre-process the service request:
[0077] Step S203: When it is determined that the data format and data content of the service request are incorrect or missing, a correction instruction is returned to the tenant.
[0078] In specific implementation, the correction instruction includes the data format or data content that needs to be modified. At this time, the legitimacy of the business request can be ensured based on step S203, thereby ensuring the smooth progress of subsequent steps.
[0079] Step S204: Based on the routing determination component, the access configuration of the tenant and the third-party platform corresponding to the service are called to traverse the adaptation processor of the third-party platform to obtain the service interface corresponding to the service.
[0080] As a specific implementation method, in order to improve the efficiency of subsequent business request processing between the tenant and the third-party platform, the following is set: Figure 5 As shown, after step S204, the following steps are also included:
[0081] Step S205: Store the access configuration of the tenant and the third-party platform corresponding to the service so as to directly call the third-party platform when the tenant re-initiates any service request corresponding to the third-party platform.
[0082] In this case, it is not necessary to repeat step S204 every time the tenant initiates a service request to the third-party platform.
[0083] Step S206: When the RPC interceptor determines that the tenant has not obtained authentication from the third-party platform corresponding to the service, the third-party authorization component is called to perform authorization authentication on the tenant based on the pre-configuration information of the third-party platform and the access configuration information of the tenant.
[0084] Similarly, in order to improve the efficiency of subsequent business request processing between the tenant and the third-party platform, the following settings are made: Figure 6 As shown, after step S206, the following steps are also included:
[0085] Step S207: Obtain the validity period of the third-party platform authorization of the account corresponding to the authorization authentication, and store the authorization token obtained by the account key according to the validity period.
[0086] Based on step S207, frequent calls to the authorization interface can be avoided. Specifically, if the validity period is N hours, the account key is stored for N hours. Re-authorization authentication is required after N hours.
[0087] Step S208: Return the service content corresponding to the service request to the tenant.
[0088] As another implementation method, based on the access method, when global access is adopted, when it is determined that the third-party platform corresponding to the business request is pre-configured to the universal third-party access platform based on the third factor, the step of calling the tenant's access configuration based on the routing judgment component and the third-party platform corresponding to the business to traverse the adaptation processor of the third-party platform and obtain the business interface corresponding to the business is skipped.
[0089] At the same time, as a special implementation method, when the first element does not include platform grouping (i.e., the general third-party access platform stipulates that only one third-party platform of the corresponding type is pre-configured), when performing specific service access, step S204 does not need to be performed (i.e., no routing determination is required to perform the operation of traversing each service interface of the third-party platform under the same group). At this time, it is assumed that a certain type of service request can only be implemented on a certain specified third-party platform.
[0090] In summary, the solution described in this embodiment is based on a large and medium-sized universal three-party access platform and has the characteristics of low coupling. It includes unified routing judgment, authentication and authorization and other special functions, avoiding the problem of repeated implementation of routing, authentication and other judgment logic each time; it has the advantage of simple operation. At the same time, it unifies the simple style of the interface, reduces the code and implementation difficulty, and achieves the effect of multiple reuses once.
[0091] The above program can be run in the processor, or it can be stored in the memory (or computer-readable storage medium), which includes permanent and non-permanent, removable and non-removable media. Information storage can be achieved by any method or technology. 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, read-only 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 in this article, computer-readable storage media does not include temporary computer-readable media, such as modulated data signals and carrier waves.
[0092] These computer programs 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, so that the instructions executed on the computer or other programmable device provide instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps of the functions specified in one or more blocks can be implemented by different modules corresponding to different steps.
[0093] Based on this, this embodiment also provides a universal three-party access platform docking system. Figure 7 As shown, the docking system comprises:
[0094] The first configuration module is used to extract the first element carried by each third-party platform, so as to preconfigure each third-party platform to the universal third-party access platform based on the first element.
[0095] Among them, the first element includes: platform name, platform address, platform identifier and platform group; among them, the platform name is used by the general third-party access platform to identify the corresponding third-party platform, the platform address is used by the general third-party access platform to confirm the API prefix of the corresponding third-party platform, the platform identifier is used by the general third-party access platform to confirm the same type of third-party platforms, and the platform group is used by the general third-party access platform to distinguish mutually exclusive third-party platforms of the same type.
[0096] The interface construction module is used to construct the tenant access configuration of the universal third-party access platform based on the second element carried by each tenant.
[0097] Among them, the second factor includes: access name, access status, account key, and target platform; among them, the access name is used by the universal third-party access platform to identify the tenant, the access status is used by the universal third-party access platform to control the tenant's access on or off, the account key is used by the universal third-party access platform to authorize and authenticate the tenant, and the target platform is used by the universal third-party access platform to confirm the third-party platform selected by the tenant.
[0098] A docking module is used to achieve docking between the tenant and a target third-party platform in the universal third-party access platform based on the access configuration.
[0099] Since the docking system is implemented based on the docking method, what has been described in the above docking method will not be repeated here.
[0100] For example, in order to realize the global unified access function, the docking system further includes:
[0101] The second configuration module is used to extract the third element carried by each third-party platform, so as to preconfigure each third-party platform to the universal third-party access platform based on the third element.
[0102] Among them, the third factor includes: global access and authentication information; the global access is used by the general third-party access platform to open the corresponding third-party platform to all tenants, and the authentication information is used by the general third-party access platform to perform access authentication on the third-party platform pre-opened to all tenants.
[0103] Similarly, this embodiment also provides an electronic device. Figure 8As shown, the electronic device includes at least one processor, the processor is coupled to a memory, a computer program is stored in the memory, and the computer program is configured to execute the docking method when executed by the processor.
[0104] At the same time, this embodiment also provides a computer-readable storage medium, on which a computer program is stored, and the computer program is used to execute the docking method.
[0105] Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. A person with ordinary knowledge in the technical field to which the present invention belongs may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be determined by the definition of the claims.
Claims
1. A method for connecting a universal third-party access platform, characterized in that: include: Extracting the first element carried by each third-party platform, so as to preconfigure each third-party platform to the universal third-party access platform based on the first element; The first element includes: platform name, platform address, platform identifier and platform group; wherein the platform name is used by tenants in the universal third-party access platform to identify the corresponding third-party platform, the platform address is used by the universal third-party access platform to confirm the API prefix of the corresponding third-party platform, the platform identifier is used by the universal third-party access platform to confirm the same type of third-party platforms, and the platform group is used by the universal third-party access platform to distinguish mutually exclusive third-party platforms of the same type; Building a tenant access configuration of the universal third-party access platform based on the second element carried by each tenant; The second element includes: access name, access status, account key and target platform; wherein the access name is used by the universal third-party access platform to identify the tenant, the access status is used by the universal third-party access platform to control the tenant's access on or off, the account key is used by the universal third-party access platform to authorize and authenticate the tenant, and the target platform is used by the universal third-party access platform to confirm the third-party platform selected by the tenant; It also includes extracting the third element carried by each third-party platform to preconfigure each of the third-party platforms to the universal third-party access platform based on the third element; The third factor includes: global access and authentication information; the global access is used by the universal third-party access platform to open the corresponding third-party platform to all tenants, and the authentication information is used by the universal third-party access platform to perform access authentication on the third-party platform that is pre-opened to all tenants; Implementing connection between the tenant and a target third-party platform in the universal third-party access platform based on the access configuration; The specific service connection method includes obtaining a service request of a tenant; wherein the service request is used to request obtaining any service corresponding to the tenant and any connected third-party platform; when it is determined that the third-party platform corresponding to the service request is pre-configured to the universal third-party access platform based on the third element, the step of calling the access configuration of the tenant based on the routing determination component and the third-party platform corresponding to the service traversing the adaptation processor of the third-party platform to obtain the service interface corresponding to the service is skipped; Based on the routing determination component, the access configuration of the tenant is called, and the third-party platform corresponding to the service is traversed to obtain the service interface corresponding to the service by traversing the adaptation processor of the third-party platform; the access configuration of the tenant and the third-party platform corresponding to the service are stored to directly call when the tenant re-initiates any service request corresponding to the third-party platform; When it is determined based on the RPC interceptor that the tenant has not obtained the authentication of the third-party platform corresponding to the business, the third-party authorization component is called to perform authorization authentication on the tenant based on the pre-configuration information of the third-party platform and the access configuration information of the tenant; the validity period of the third-party platform authorization of the account corresponding to the authorization authentication is obtained, and the authorization token obtained by the account key is stored according to the validity period; Return the service content corresponding to the service request to the tenant.
2. An electronic device, characterized in that: The method comprises at least one processor, wherein the processor is coupled to a memory, wherein a computer program is stored in the memory, and wherein the computer program is configured to execute the method according to claim 1 when executed by the processor.
3. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is used to execute the method of claim 1.
