CN112492031B - Open platform docking method, device, equipment and storage medium - Google Patents

Open platform docking method, device, equipment and storage medium Download PDF

Info

Publication number
CN112492031B
CN112492031B CN202011373512.4A CN202011373512A CN112492031B CN 112492031 B CN112492031 B CN 112492031B CN 202011373512 A CN202011373512 A CN 202011373512A CN 112492031 B CN112492031 B CN 112492031B
Authority
CN
China
Prior art keywords
interface
open platform
parameter
information
caller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011373512.4A
Other languages
Chinese (zh)
Other versions
CN112492031A (en
Inventor
李洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Xunmeng Information Technology Co Ltd
Original Assignee
Shanghai Xunmeng Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Xunmeng Information Technology Co Ltd filed Critical Shanghai Xunmeng Information Technology Co Ltd
Priority to CN202011373512.4A priority Critical patent/CN112492031B/en
Publication of CN112492031A publication Critical patent/CN112492031A/en
Application granted granted Critical
Publication of CN112492031B publication Critical patent/CN112492031B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • G06F9/548Object oriented; Remote method invocation [RMI]

Abstract

The invention provides an open platform docking method, an open platform docking device, open platform docking equipment and a storage medium, wherein the method comprises the following steps: responding to the generated service parameters, and generating second verification information according to rules provided by the interface caller open platform; generating second transmission information with a second parameter transmission structure according to the second verification information, wherein the second parameter transmission structure comprises a first parameter transmission structure and a second verification information layer, the first parameter transmission structure comprises a service parameter layer and a first verification information layer, and the first verification information of the first verification information layer is generated according to a rule provided by an interface provider open platform; and the interface caller open platform receives second transmission information with a second parameter transmission structure and verifies the second transmission information according to second verification information, and the first transmission information with the first parameter transmission structure is transmitted to the interface provider open platform for the interface provider to verify and transmit the service parameters to the interface provider service end. The invention realizes the butt joint of the open platform.

Description

Open platform docking method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer applications, and in particular, to a method, an apparatus, a device, and a storage medium for docking an open platform.
Background
Open platform (OpenPlatform) in the software industry and network, an open platform refers to a software system that makes an external program increase the function of the software system or use the resource of the software system by disclosing its Application Programming Interface (API) or function (function) without changing the source code of the software system. In the internet era, services of websites are packaged into a series of computer-recognizable data interfaces to be opened for third-party developers to use, the behavior is called OpenAPI, and a platform for providing OpenAPI can be called an open platform.
Currently, most internet companies provide open platforms to facilitate the addition of the functionality or resources of the software system. In order to combine different functions and resources, a plurality of open platforms are needed to be docked, however, since common parameters and signature rules of open platforms of different companies are inconsistent, when two open platforms are docked, the docking efficiency may be affected due to the problem of compatibility. Therefore, if one of the parties abandons the use of an open platform for docking, the abandoning party needs the service end to verify the signature by itself, and the overall development efficiency and data security are affected.
Therefore, how to set the data transmission mode and the data transmission structure of the open platform to optimize the data transmission and the data call of the service ends of both parties in the docking process of the open platform and avoid the problem that the compatibility of the open platforms of both parties affects the docking efficiency is a technical problem to be solved urgently in the field.
Disclosure of Invention
In order to overcome the defects of the related technologies, the invention provides an open platform docking method, an open platform docking device, an electronic device and a storage medium, and further optimizes data transmission and data call of service ends of two parties in the docking process of an open platform by setting a data transmission mode and a data transmission structure of the open platform, so that the problem that the compatibility of the open platforms of the two parties affects the docking efficiency is avoided.
According to one aspect of the present invention, there is provided an open platform docking method, applied to an interface caller, including:
responding to a service parameter generated by a service end of an interface calling party, and generating second verification information by the service end of the interface calling party according to a rule provided by an open platform of the interface calling party;
the service end of the interface caller generates second transmission information with a second parameter transmission structure according to the second verification information, wherein the second parameter transmission structure comprises a first parameter transmission structure and a second verification information layer, the first parameter transmission structure comprises a service parameter layer and a first verification information layer, and the first verification information of the first verification information layer is generated according to a rule provided by an open platform of the interface provider;
the open platform of the interface caller receives second transmission information with a second parameter transmission structure sent by the service end of the interface caller;
the open platform of the interface caller verifies the second transmission information according to the second verification information;
and the open platform of the interface caller transparently transmits the first transmission information with the first parameter transmission structure to the open platform of the interface provider, so that the open platform of the interface provider verifies the first transmission information and transparently transmits the service parameters to the service end of the interface provider.
In some embodiments of the present invention, in response to a service parameter generated by a service end of an interface caller, the service end of the interface caller determines a request manner, where the second transmission information is request information generated according to the request manner, and the second transmission information includes the request manner.
In some embodiments of the invention, the first transmission information comprises the request mode.
In some embodiments of the present invention, in response to a service parameter generated by a service end of an interface caller, the service end of the interface caller determines a link parameter, wherein the second transmission information includes the link parameter, and the open platform of the interface caller splices the link parameter to an interface link.
In some embodiments of the present invention, the first transmission information includes the spliced interface link.
In some embodiments of the present invention, before the responding to the service parameter generated by the service end of the interface caller, the generating, by the service end of the interface caller according to the rule provided by the open platform of the interface caller, second verification information further includes:
the service end of the interface caller generates first verification information according to a rule provided by an open platform of the interface provider;
and the service end of the interface caller generates the first parameter transmission structure according to the first verification information.
In some embodiments of the invention, the first authentication information and the second authentication information comprise a public parameter and a signature, respectively.
According to another aspect of the present invention, there is also provided an open platform interfacing method, applied to an interface provider, including:
the open platform of the interface provider receives first transmission information with a first parameter transmission structure, and the first transmission information is transmitted by the open platform of the interface caller in the open platform docking method applied to the interface caller;
the open platform of the interface provider verifies first verification information in the first transmission information;
and the open platform of the interface provider transmits the service parameters of the first transmission information to a service end of the interface provider.
According to another aspect of the present invention, there is also provided an open platform interfacing apparatus of an interface caller, including:
the interface caller's business end, including:
the first generation module is configured to respond to the service parameters generated by the service end of the interface caller and generate second verification information according to rules provided by the open platform of the interface caller;
a second generating module configured to generate second transmission information having a second parameter transmission structure according to the second verification information, where the second parameter transmission structure includes a first parameter transmission structure and a second verification information layer, the first parameter transmission structure includes a service parameter layer and a first verification information layer, and the first verification information of the first verification information layer is generated according to a rule provided by an open platform of the interface provider;
the open platform of the interface caller includes:
the first receiving module is configured to receive second transmission information with a second parameter transmission structure, which is sent by the service end of the interface caller;
a first authentication module configured to authenticate the second transmission information according to the second authentication information;
and the first transparent transmission module is configured to transmit the first transmission information with the first parameter transmission structure to the open platform of the interface provider for verification by the open platform of the interface provider and transmit the service parameters to the service end of the interface provider.
According to another aspect of the present invention, there is also provided an open platform docking apparatus for an interface provider, including:
an open platform for an interface provider comprising:
the second receiving module is configured to receive first transmission information with a first parameter transmission structure, wherein the first transmission information is transparently transmitted by the open platform of the interface caller in the open platform docking method applied to the interface caller;
a second verification module configured to verify first verification information in the first transmission information;
the second transparent transmission module is configured to transmit the service parameters of the first transmission information to a service end of an interface provider;
and the service end of the interface provider is configured to receive the service parameters transmitted from the open platform of the interface provider.
According to another aspect of the present invention, there is also provided an open platform docking system of an interface provider, including:
the service end of the interface calling party comprises:
the first generation module is configured to respond to the service parameters generated by the service end of the interface caller and generate second verification information according to rules provided by the open platform of the interface caller;
a second generating module configured to generate second transmission information having a second parameter transmission structure according to the second verification information, where the second parameter transmission structure includes a first parameter transmission structure and a second verification information layer, the first parameter transmission structure includes a service parameter layer and a first verification information layer, and the first verification information of the first verification information layer is generated according to a rule provided by an open platform of the interface provider;
the open platform of the interface caller includes:
the first receiving module is configured to receive second transmission information with a second parameter transmission structure, which is sent by the service end of the interface caller;
a first authentication module configured to authenticate the second transmission information according to the second authentication information;
the first transparent transmission module is configured to transmit the first transmission information with the first parameter transmission structure to an open platform of the interface provider for verification by the open platform of the interface provider and transmit the service parameters to a service end of the interface provider;
an open platform for an interface provider comprising:
the second receiving module is used for configuring and receiving first transmission information with a first parameter transmission structure, wherein the first transmission information is transparently transmitted by the open platform of the interface caller in the open platform docking method applied to the interface caller;
a second verification module configured to verify first verification information in the first transmission information;
the second transparent transmission module is configured to transmit the service parameters of the first transmission information to a service end of an interface provider;
and the service end of the interface provider is configured to receive the service parameters transparently transmitted by the open platform of the interface provider.
According to still another aspect of the present invention, there is also provided an electronic apparatus, including: a processor; a storage medium having stored thereon a computer program which, when executed by the processor, performs the steps as described above.
According to yet another aspect of the present invention, there is also provided a storage medium having stored thereon a computer program which, when executed by a processor, performs the steps as described above.
Compared with the prior art, the invention has the advantages that:
the invention includes the first verification information of the open platform of the interface provider in the parameter transmission structure to be transmitted before the service parameter is generated by the service end of the interface caller, and after the service parameter is generated, the second verification information of the open platform of the interface caller is included in the parameter transmission structure to be transmitted, the parameter transmission structure is used for gradually transmitting the parameter, so that the open platform of the interface caller can gradually verify the second verification information, and the open platform of the interface provider verifies the first verification information.
Drawings
The above and other features and advantages of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings.
Fig. 1 is a flowchart illustrating an open platform docking method applied to an interface caller according to an embodiment of the present invention.
Fig. 2 shows a flowchart of an open platform interfacing method applied to an interface provider according to an embodiment of the present invention.
Fig. 3 is a schematic diagram illustrating service parameter transmission performed by the open platform docking system according to an embodiment of the present invention.
Fig. 4 is a block diagram illustrating an open platform docking apparatus applied to an interface caller according to an embodiment of the present invention.
Fig. 5 is a block diagram illustrating an open platform docking apparatus applied to an interface provider according to an embodiment of the present invention.
Fig. 6 schematically illustrates a computer-readable storage medium in an exemplary embodiment of the invention.
Fig. 7 schematically illustrates an electronic device in an exemplary embodiment of the invention.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the invention and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the steps. For example, some steps may be decomposed, some steps may be combined or partially combined, and thus, the actual execution order may be changed according to the actual situation.
In each embodiment of the present invention, the open platform docking method provided by the present invention may be applied to interaction and docking of each open platform, and the present invention does not limit the function and application scenario of specific docking.
Fig. 1 is a flowchart illustrating an open platform docking method applied to an interface caller according to an embodiment of the present invention. The open platform docking method comprises the following steps:
step S110: and responding to the service parameter generated by the service end of the interface caller, and generating second verification information by the service end of the interface caller according to the rule provided by the open platform of the interface caller.
Specifically, the second verification information includes at least a common parameter provided by the open platform of the interface caller and a signature calculated according to a rule provided by the open platform of the interface caller. In particular, the common parameters may be parameters necessary for all API requests of the open platform. And calculating the obtained signature according to the rule provided by the open platform for verifying the transmitted data. In particular, each open platform may have different common parameters and ways to compute signatures, and the invention is not so limited.
Step S120: and the service end of the interface caller generates second transmission information with a second parameter transmission structure according to the second verification information, wherein the second parameter transmission structure comprises a first parameter transmission structure and a second verification information layer, the first parameter transmission structure comprises a service parameter layer and a first verification information layer, and the first verification information of the first verification information layer is generated according to the rule provided by the open platform of the interface provider.
Specifically, the second parameter transmission structure is a three-layer structure, which can be seen from reference numeral 20 in fig. 3, and includes a first parameter transmission structure (two-layer structure) and a second authentication information layer, where the second authentication information layer is at least used for transmitting second authentication information. The first parameter transmission structure, which may be referred to as reference numeral 10 in fig. 3, includes a service parameter layer and a first authentication information layer. The service parameter layer is used for transmitting service parameters. The first authentication information layer is used to transmit first authentication information.
Specifically, the first verification information may be generated before the service parameters generated by the service side of the interface caller. For example, the first authentication information may be generated by the following steps before step S110: the service end of the interface caller generates first verification information according to rules provided by an open platform of the interface provider; and the service end of the interface caller generates the first parameter transmission structure according to the first verification information.
Specifically, the first verification information includes at least a common parameter provided by the open platform of the interface provider and a signature obtained by calculation according to a rule provided by the open platform of the interface provider.
Step S130: and the open platform of the interface caller receives second transmission information with a second parameter transmission structure, which is sent by the service end of the interface caller.
Step S140: and the open platform of the interface caller verifies the second transmission information according to the second verification information.
Specifically, since the second authentication information is generated based on the rule provided by the open platform of the interface caller, the open platform of the interface caller can perform authentication of the second authentication information by the authentication rule built therein. If the verification is passed, the next step can be executed; if the verification fails, the subsequent steps may not be executed, or the operations related to the predetermined verification exception may also be executed, which is not limited in the present invention.
Step S150: and the open platform of the interface caller transparently transmits the first transmission information with the first parameter transmission structure to the open platform of the interface provider, so that the open platform of the interface provider verifies the first transmission information and transparently transmits the service parameters to the service end of the interface provider.
In particular, pass-through, i.e. transparent transmission (pass-through), refers to that it is only responsible for transmitting the transmitted content from the source address to the destination address, regardless of the transmitted service content, in the communication, without any change to the service data content.
Therefore, when the open platform of the interface caller conducts transparent transmission, the open platform of the interface provider does not receive the second verification information, and only receives the first transmission information with the first parameter transmission structure. The open platform of the interface provider can verify the first verification information in the first parameter transmission structure, and can execute the next transparent transmission after the verification is passed, so as to only transmit the service parameters to the service end of the interface provider. Therefore, the open platform of the interface caller and the open platform of the interface provider do not need to sense the public parameters and the signature rules of the other party.
In the open platform docking method applied to the interface caller provided by the invention, before the service parameter is generated by the service end of the interface caller, the first verification information of the open platform of the interface provider is firstly contained in the parameter transmission structure to be transmitted, and after the service parameter is generated, the second verification information of the open platform of the interface caller is contained in the parameter transmission structure to be transmitted, the parameter transmission structure is used for gradually transmitting the parameter, so that the open platform of the interface caller can gradually verify the second verification information, and the open platform of the interface provider verifies the first verification information.
In some embodiments of the present invention, in response to a service parameter generated by the service end of the interface caller, the service end of the interface caller may further determine a request mode for transmitting the service parameter. The second transmission information may be request information generated according to the request manner, and the second transmission information includes a determined request manner. Therefore, in this embodiment, the transparent transmission of the second transmission information to the first transmission information may transmit the request manner together, so that the first transmission information includes the determined request manner.
In some embodiments of the present invention, in response to a service parameter generated by a service side of an interface caller, the service side of the interface caller determines a link parameter. And the second transmission information comprises the link parameters, and the open platform of the interface caller can splice the link parameters to the interface links. Specifically, for different APIs, the interface link needs different parameter information in addition to the common parameter, and thus, in this embodiment, the second transmission information may be made to include these link parameters for splicing the interface link. Further, in this embodiment, when the open platform of the interface caller performs transparent transmission, the interface link may be obtained by splicing according to the link parameter of the second transmission information, and the interface link is used as a part of the first transmission information and is transmitted to the open platform of the interface provider.
For example, when the access token (access _ token) is obtained by the code, the interface provided is the interface for obtaining the access _ token by the code. And the http request mode is GET (acquisition). The interface links are: https:// api.xxxx.xx.com/sns/oauth2/access _ token = APPID & secret = SEC RET & CODE = CODE & grant _ type = authorization _ CODE. Wherein the parameter appid is an application unique identifier; the parameter secret is the application key AppSecret; the parameter code is a code parameter obtained when the authentication is filled in; the parameter grant _ type is a filling authorization _ code. For another example, when it is necessary to acquire user personal information (UnionID mechanism), an interface for acquiring personal information may be used, and a developer may acquire user basic information through OpenID. And the http request mode is GET (acquisition). The interface links are: https:// api.xxxx.xx.com/sns/userinfoccess _ TOKEN = ACCESS _ TOKEN & openi d = OPENID. The parameter access _ token is a call credential; the parameter openid is an identifier of a common user and is unique to the current developer account; the parameter lang is national regional language version, zh _ CN simplified, zh _ TW traditional, en english, default to zh-CN. The above is merely an exemplary implementation for providing interface requests and interface links, and the present invention is not limited thereto.
Referring now to fig. 2, fig. 2 is a flow chart illustrating an open platform docking method applied to an interface provider according to an embodiment of the present invention.
According to another aspect of the present invention, there is also provided an open platform docking method applied to an interface provider, including:
the open platform of the interface provider receives first transmission information with a first parameter transmission structure, and the first transmission information is transparently transmitted by the open platform of the interface caller in the open platform docking method applied to the interface caller;
the open platform of the interface provider verifies first verification information in the first transmission information;
and the open platform of the interface provider transparently transmits the service parameters of the first transmission information to the service end of the interface provider.
In the open platform docking method applied to the interface provider, before a service parameter is generated by a service end of an interface caller, first verification information of an open platform of the interface provider is contained in a parameter transmission structure to be transmitted, and after the service parameter is generated, second verification information of the open platform of the interface caller is contained in the parameter transmission structure to be transmitted, the parameter transmission structure is used for gradually transmitting the parameter, so that the open platform of the interface caller can verify the second verification information step by step, and the open platform of the interface provider verifies the first verification information.
One embodiment of the present invention is described below with reference to fig. 3. In this embodiment, the open platform of the interface caller and the open platform of the interface provider can both extend the following functions: when the service end provides link parameters required by the interface link, the open platform can splice the parameters into the interface link; when the service end provides a request mode, the open platform can initiate a corresponding http request according to the request mode; parameters can be transmitted between the open platforms and the service end.
Therefore, before the service end 101 of the interface caller generates the service parameters, the common parameters can be obtained according to the rules provided by the open platform of the interface provider, and the signature of the interface provider can be calculated. The common parameters of the interface provider and the signature are then added to the first authentication information layer of the first parameter transmission structure 10. After the service end 101 of the interface caller generates the service parameters, the public parameters are obtained according to the rules provided by the interface caller and the signature of the interface caller is calculated. The service side 101 of the interface caller adds the public parameters of the interface caller and the signature to the second authentication information layer of the second parameter transmission structure 20. Further, the service 101 of the interface caller may also determine the request mode of the transmission of the service parameter and the parameters required by the interface link, so as to add the request mode and the parameters required by the interface link to the second authentication information layer of the second parameter transmission structure 20 or at any position outside the first parameter transmission structure 10. The service end 101 of the interface caller sends the second transmission information with the second parameter transmission structure 20 to the open platform 102 of the interface caller. After the open platform 102 of the interface caller acquires the second parameter information, the outer layer second verification information may be verified, an Http request may be generated according to the request mode, and the interface link may be obtained according to the link parameter and the common parameter. The open platform 102 of the interface caller transmits the first parameter information with the first parameter transmission structure 10 to the open platform 103 of the interface provider. Further, the open platform 102 of the interface caller may also include the request mode and the spliced interface link in the first parameter information to be transmitted to the open platform 103 of the interface provider. After receiving the first parameter information, the open platform 103 of the interface provider may obtain first verification information for verification, and after the verification is passed, the open platform 103 of the interface provider transparently transmits the service parameters in the open platform 103 of the interface provider to the service end 104 of the interface provider.
The above are merely a plurality of specific implementations of the open platform docking method of the present invention, and each implementation may be implemented independently or in combination, and the present invention is not limited thereto. Furthermore, the flow charts of the present invention are merely schematic, the execution sequence between the steps is not limited thereto, and the steps can be split, combined, exchanged sequentially, or executed synchronously or asynchronously in other ways within the protection scope of the present invention.
Referring now to fig. 4, fig. 4 is a block diagram illustrating an open platform docking apparatus applied to an interface caller according to an embodiment of the present invention. The open platform docking apparatus 300 applied to the interface caller includes a service end 310 of the interface caller and an open platform 320 of the interface caller.
The service end 310 of the interface caller includes a first generation module 311 and a second generation module 312.
The first generating module 311 is configured to generate the second verification information according to a rule provided by an open platform of the interface caller, in response to the service parameter generated by the service end of the interface caller.
The second generating module 312 is configured to generate second transmission information having a second parameter transmission structure according to the second verification information, where the second parameter transmission structure includes a first parameter transmission structure and a second verification information layer, the first parameter transmission structure includes a service parameter layer and a first verification information layer, and the first verification information of the first verification information layer is generated according to a rule provided by an open platform of the interface provider.
The open platform 320 of the interface caller includes a first receiving module 321, a first verifying module 322, and a first transparent module 323.
The first receiving module 321 is configured to receive second transmission information with a second parameter transmission structure sent by the service end of the interface caller.
The first authentication module 322 is configured to authenticate the second transmission information based on the second authentication information.
The first transparent transmission module 323 is configured to transmit the first transmission information with the first parameter transmission structure to the open platform of the interface provider, so that the open platform of the interface provider performs verification and transmits the service parameters to the service end of the interface provider.
Fig. 4 is a schematic diagram that respectively illustrates the open platform interfacing apparatus 300 applied to the interface caller provided in the present invention, and the splitting, merging, and adding of modules are within the scope of the present invention without departing from the concept of the present invention. Various communication modes between modules, such as wired communication, short-distance communication (infrared, bluetooth, WLAN, etc.), long-distance communication (internet communication), etc., are all within the scope of the present invention. The open platform docking apparatus 300 applied to the interface caller according to the present invention may be implemented by software, hardware, firmware, plug-in and any combination thereof, which is not limited thereto.
Referring now to fig. 5, fig. 5 is a block diagram illustrating an open platform docking apparatus applied to an interface provider according to an embodiment of the present invention. The open platform docking apparatus 400 applied to the interface provider includes an open platform 410 of the interface provider and a service end 420 of the interface provider.
The open platform 410 of the interface provider includes a second receiving module 411, a second verifying module 412, and a second transparent transmission module 413.
The second receiving module 411 is configured to receive the first transmission information with the first parameter transmission structure, where the first transmission information is transparently transmitted by the open platform of the interface caller in the open platform docking method applied to the interface caller as described above.
The second authentication module 412 is configured to authenticate the first authentication information in the first transmission.
The second transparent transmission module 413 is configured to transmit the service parameter of the first transmission information to the service end of the interface provider.
The service end 420 of the interface provider is configured to receive the service parameters transparently transmitted from the open platform 410 of the interface provider.
Fig. 5 is a schematic diagram illustrating the open platform docking apparatus 400 provided by the present invention and applied to an interface provider, respectively, and the splitting, merging and adding of modules are within the scope of the present invention without departing from the spirit of the present invention. Various communication modes between the modules, such as wired communication, short-distance communication (infrared, bluetooth, WLAN, etc.), long-distance communication (internet communication), etc., are within the scope of the present invention. The open platform interfacing apparatus 400 applied to the interface provider according to the present invention may be implemented by software, hardware, firmware, plug-in, or any combination thereof, which is not limited thereto.
In the open platform docking device applied to the interface caller and the open platform docking device applied to the interface provider of the exemplary embodiment of the present invention, before a service parameter is generated by a service end of the interface caller, first verification information of the open platform of the interface provider is included in a parameter transmission structure to be transmitted, and after the service parameter is generated, second verification information of the open platform of the interface caller is included in the parameter transmission structure to be transmitted, and the parameter transmission structure is used for gradually transmitting the parameter, so that the open platform of the interface caller can verify the second verification information, and the open platform of the interface provider verifies the first verification information.
The invention also provides an open platform docking system of the interface provider. The open platform docking system of the interface provider includes a service end of the interface caller, an open platform of the interface provider, and a service end of the interface provider, and the structures of the open platform docking system and the service end of the interface provider may be respectively shown in fig. 4 and fig. 5.
The service end 310 of the interface caller includes a first generation module 311 and a second generation module 312.
The first generating module 311 is configured to generate the second verification information according to a rule provided by an open platform of the interface caller, in response to the service parameter generated by the service end of the interface caller.
The second generating module 312 is configured to generate second transmission information having a second parameter transmission structure according to the second verification information, where the second parameter transmission structure includes a first parameter transmission structure and a second verification information layer, the first parameter transmission structure includes a service parameter layer and a first verification information layer, and the first verification information of the first verification information layer is generated according to rules provided by an open platform of the interface provider.
The open platform 320 of the interface caller includes a first receiving module 321, a first verifying module 322, and a first pass-through module 323.
The first receiving module 321 is configured to receive second transmission information with a second parameter transmission structure sent by the service end of the interface caller.
The first authentication module 322 is configured to authenticate the second transmission information based on the second authentication information.
The first transparent transmission module 323 is configured to transmit the first transmission information with the first parameter transmission structure to the open platform of the interface provider, so that the open platform of the interface provider performs verification and transmits the service parameters to the service end of the interface provider.
The open platform 410 of the interface provider includes a second receiving module 411, a second verifying module 412, and a second transparent transmission module 413.
The second receiving module 411 is configured to receive the first transmission information with the first parameter transmission structure, where the first transmission information is transparently transmitted by the open platform of the interface caller in the open platform docking method applied to the interface caller as described above.
The second authentication module 412 is configured to authenticate the first authentication information in the first transmission.
The second transparent transmission module 413 is configured to transmit the service parameter of the first transmission information to the service end of the interface provider.
The service end 420 of the interface provider is configured to receive the service parameters transparently from the open platform 410 of the interface provider.
In each embodiment of the present invention, functions of the service side of the interface caller and the service side of the interface provider may be exchanged with each other, and functions of the open platform of the interface caller and the open platform of the interface provider may be exchanged with each other. In other words, the interface caller may also act as an interface provider, and the interface provider may also act as an interface caller. The invention is not so limited.
In the open platform docking system according to the exemplary embodiment of the present invention, before a service parameter is generated by a service end of an interface caller, first verification information of an open platform of an interface provider is included in a parameter transmission structure to be transmitted, and after the service parameter is generated, second verification information of the open platform of the interface caller is included in the parameter transmission structure to be transmitted, the parameter transmission structure is used to perform gradual transparent transmission of the parameter, so that the open platform of the interface caller can verify the second verification information gradually, and the open platform of the interface provider verifies the first verification information.
In an exemplary embodiment of the present invention, a computer-readable storage medium is further provided, on which a computer program is stored, which when executed by, for example, a processor, may implement the steps of the open platform docking method described in any one of the above embodiments. In some possible embodiments, the aspects of the present invention may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the present invention described in the above-mentioned open platform docking method section of this specification, when the program product is run on the terminal device.
Referring to fig. 4, a program product 700 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the tenant computing device, partly on the tenant device, as a stand-alone software package, partly on the tenant computing device and partly on a remote computing device, or entirely on the remote computing device or server. In situations involving remote computing devices, the remote computing devices may be connected to the tenant computing device over any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to external computing devices (e.g., over the internet using an internet service provider).
In an exemplary embodiment of the present invention, there is also provided an electronic device that may include a processor, and a memory to store executable instructions of the processor. Wherein the processor is configured to perform the steps of the open platform docking method in any of the above embodiments via execution of the executable instructions.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Accordingly, various aspects of the present invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 500 according to this embodiment of the invention is described below with reference to fig. 5. The electronic device 500 shown in fig. 5 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 5, the electronic device 500 is in the form of a general purpose computing device. The components of the electronic device 500 may include, but are not limited to: at least one processing unit 510, at least one memory unit 520, a bus 530 that couples various system components including the memory unit 520 and the processing unit 510, a display unit 540, and the like.
Wherein the storage unit stores program code that can be executed by the processing unit 510, so that the processing unit 510 performs the steps according to various exemplary embodiments of the present invention described in the above-mentioned open platform docking method section of this specification. For example, the processing unit 510 may perform the steps as shown in any one or more of fig. 1-2.
The memory unit 520 may include a readable medium in the form of a volatile memory unit, such as a random access memory unit (RAM) 5201 and/or a cache memory unit 5202, and may further include a read only memory unit (ROM) 5203.
The memory unit 520 may also include a program/utility 5204 having a set (at least one) of program modules 5205, such program modules 5205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may comprise an implementation of a network environment.
Bus 530 may be one or more of any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 500 may also communicate with one or more external devices 600 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a tenant to interact with the electronic device 500, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 500 to communicate with one or more other computing devices. Such communication may be through input/output (I/O) interfaces 550. Also, the electronic device 500 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) via the network adapter 560. The network adapter 560 may communicate with other modules of the electronic device 500 via the bus 530. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, to name a few.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, and may also be implemented by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, or a network device, etc.) to execute the above-mentioned open platform docking method according to the embodiment of the present invention.
Compared with the prior art, the invention has the advantages that:
according to the invention, before the service parameter is generated by the service end of the interface caller, the first verification information of the open platform of the interface provider is contained in the parameter transmission structure to be transmitted, and after the service parameter is generated, the second verification information of the open platform of the interface caller is contained in the parameter transmission structure to be transmitted, the parameter transmission structure is used for gradually transmitting the parameter, so that the open platform of the interface caller can gradually verify the second verification information, and the open platform of the interface provider verifies the first verification information.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.

Claims (19)

1. An open platform docking method is applied to an interface caller, and comprises the following steps:
responding to a service parameter generated by a service end of an interface caller, and generating second verification information by the service end of the interface caller according to a rule provided by an open platform of the interface caller;
the service end of the interface caller generates second transmission information with a second parameter transmission structure according to the second verification information, wherein the second parameter transmission structure comprises a first parameter transmission structure and a second verification information layer, the first parameter transmission structure comprises a service parameter layer and a first verification information layer, and the first verification information of the first verification information layer is generated according to a rule provided by an open platform of an interface provider;
the open platform of the interface caller receives second transmission information with a second parameter transmission structure, which is sent by the service end of the interface caller;
the open platform of the interface caller verifies the second transmission information according to the second verification information;
and the open platform of the interface caller transmits the first transmission information with the first parameter transmission structure to the open platform of the interface provider for the open platform of the interface provider to verify and transmit the service parameters to the service end of the interface provider.
2. The open platform docking method according to claim 1, wherein in response to a service parameter generated by a service end of an interface caller, the service end of the interface caller determines a request manner, wherein the second transmission information is request information generated according to the request manner, and the second transmission information includes the request manner.
3. The open platform docking method of claim 2, wherein the first transmission information comprises the request means.
4. The method according to claim 1, wherein in response to a service parameter generated by a service end of an interface caller, the service end of the interface caller determines a link parameter, wherein the second transmission information includes the link parameter for the open platform of the interface caller to splice the link parameter to the interface link.
5. The open platform docking method of claim 4, wherein the first transmission information comprises the spliced interface links.
6. The method for docking an open platform according to claim 1, wherein, before the responding to the service parameter generated by the service end of the interface caller, the service end of the interface caller generates the second verification information according to the rule provided by the open platform of the interface caller, the method further comprises:
the service end of the interface caller generates first verification information according to rules provided by an open platform of the interface provider;
and the service end of the interface caller generates the first parameter transmission structure according to the first verification information.
7. The open platform docking method according to any one of claims 1 to 6, wherein the first verification information and the second verification information include a public parameter and a signature, respectively.
8. An open platform docking method is applied to an interface provider and comprises the following steps:
the method comprises the following steps that an open platform of an interface provider receives first transmission information with a first parameter transmission structure, wherein the first transmission information is sent to the interface provider through the following steps:
responding to a service parameter generated by a service end of an interface calling party, and generating second verification information by the service end of the interface calling party according to a rule provided by an open platform of the interface calling party;
the service terminal of the interface caller generates second transmission information with a second parameter transmission structure according to the second verification information, wherein the second parameter transmission structure comprises a first parameter transmission structure and a second verification information layer, the first parameter transmission structure comprises a service parameter layer and a first verification information layer, and the first verification information of the first verification information layer is generated according to a rule provided by an open platform of the interface provider;
the open platform of the interface caller receives second transmission information with a second parameter transmission structure sent by the service end of the interface caller;
the open platform of the interface caller verifies the second transmission information according to the second verification information;
the open platform of the interface caller transparently transmits the first transmission information with the first parameter transmission structure to the open platform of the interface provider;
the open platform of the interface provider verifies first verification information in the first transmission information; and the open platform of the interface provider transparently transmits the service parameters of the first transmission information to the service end of the interface provider.
9. The open platform docking method according to claim 8, wherein in response to a service parameter generated by a service end of an interface caller, the service end of the interface caller determines a request manner, wherein the second transmission information is request information generated according to the request manner, and the second transmission information includes the request manner.
10. The open platform docking method of claim 9, wherein the first transmission information comprises the request means.
11. The open platform docking method according to claim 8, wherein in response to a service parameter generated by a service end of an interface caller, the service end of the interface caller determines a link parameter, wherein the second transmission information includes the link parameter, and the open platform of the interface caller splices the link parameter to an interface link.
12. The open platform docking method of claim 11, wherein the first transmission information comprises the spliced interface links.
13. The method as claimed in claim 8, wherein the step of generating the second verification information according to the rule provided by the open platform of the interface caller before the step of responding to the service parameter generated by the service terminal of the interface caller further comprises:
the service end of the interface caller generates first verification information according to a rule provided by an open platform of the interface provider;
and the service end of the interface caller generates the first parameter transmission structure according to the first verification information.
14. The open platform docking method according to any one of claims 8 to 13, wherein the first verification information and the second verification information include a common parameter and a signature, respectively.
15. An open platform docking apparatus of an interface caller, comprising:
the service end of the interface calling party comprises:
the first generation module is configured to respond to the service parameters generated by the service end of the interface caller and generate second verification information according to rules provided by the open platform of the interface caller;
a second generating module configured to generate second transmission information having a second parameter transmission structure according to the second verification information, where the second parameter transmission structure includes a first parameter transmission structure and a second verification information layer, the first parameter transmission structure includes a service parameter layer and a first verification information layer, and the first verification information of the first verification information layer is generated according to a rule provided by an open platform of an interface provider;
the open platform of the interface caller includes:
the first receiving module is configured to receive second transmission information with a second parameter transmission structure, which is sent by the service end of the interface caller;
a first authentication module configured to authenticate the second transmission information according to the second authentication information;
and the first transparent transmission module is configured to transmit the first transmission information with the first parameter transmission structure to the open platform of the interface provider for verification by the open platform of the interface provider and transmit the service parameters to the service end of the interface provider.
16. An open platform docking apparatus for an interface provider, comprising:
an open platform for an interface provider comprising:
a second receiving module configured to receive first transmission information having a first parameter transmission structure, wherein the first transmission information is sent to the interface provider by:
responding to a service parameter generated by a service end of an interface calling party, and generating second verification information by the service end of the interface calling party according to a rule provided by an open platform of the interface calling party;
the service end of the interface caller generates second transmission information with a second parameter transmission structure according to the second verification information, wherein the second parameter transmission structure comprises a first parameter transmission structure and a second verification information layer, the first parameter transmission structure comprises a service parameter layer and a first verification information layer, and the first verification information of the first verification information layer is generated according to a rule provided by an open platform of the interface provider;
the open platform of the interface caller receives second transmission information with a second parameter transmission structure sent by the service end of the interface caller;
the open platform of the interface caller verifies the second transmission information according to the second verification information;
the open platform of the interface caller transmits the first transmission information with the first parameter transmission structure to the open platform of the interface provider;
a second verification module configured to verify first verification information in the first transmission information;
the second transparent transmission module is configured to transmit the service parameters of the first transmission information to a service end of an interface provider;
and the service end of the interface provider is configured to receive the service parameters transmitted from the open platform of the interface provider.
17. An open platform docking system for an interface provider, comprising:
the service end of the interface calling party comprises:
the first generation module is configured to respond to the service parameters generated by the service end of the interface caller and generate second verification information according to rules provided by the open platform of the interface caller;
a second generating module configured to generate second transmission information having a second parameter transmission structure according to the second verification information, where the second parameter transmission structure includes a first parameter transmission structure and a second verification information layer, the first parameter transmission structure includes a service parameter layer and a first verification information layer, and the first verification information of the first verification information layer is generated according to a rule provided by an open platform of the interface provider;
the open platform of the interface caller includes:
the first receiving module is configured to receive second transmission information with a second parameter transmission structure, which is sent by the service end of the interface caller;
a first authentication module configured to authenticate the second transmission information according to the second authentication information;
the first transparent transmission module is configured to transmit first transmission information with the first parameter transmission structure to an open platform of the interface provider, so that the open platform of the interface provider can verify the first transmission information and transmit service parameters to a service end of the interface provider;
an open platform for interface providers comprising:
the second receiving module is configured to receive first transmission information with a first parameter transmission structure;
a second verification module configured to verify first verification information in the first transmission information;
the second transparent transmission module is configured to transmit the service parameters of the first transmission information to a service end of an interface provider;
and the service end of the interface provider is configured to receive the service parameters transparently transmitted by the open platform of the interface provider.
18. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory having stored thereon a computer program that, when executed by the processor, performs:
the open platform docking method applied to an interface caller according to any one of claims 1 to 7; and/or
The open platform docking method applied to an interface provider of claim 8.
19. A storage medium having stored thereon a computer program which, when executed by a processor, performs:
the open platform docking method applied to an interface caller according to any one of claims 1 to 7; and/or
The open platform docking method applied to an interface provider of claim 8.
CN202011373512.4A 2020-11-30 2020-11-30 Open platform docking method, device, equipment and storage medium Active CN112492031B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011373512.4A CN112492031B (en) 2020-11-30 2020-11-30 Open platform docking method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011373512.4A CN112492031B (en) 2020-11-30 2020-11-30 Open platform docking method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112492031A CN112492031A (en) 2021-03-12
CN112492031B true CN112492031B (en) 2022-11-04

Family

ID=74937327

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011373512.4A Active CN112492031B (en) 2020-11-30 2020-11-30 Open platform docking method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112492031B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103001936A (en) * 2011-09-16 2013-03-27 北京新媒传信科技有限公司 Method and system for third party application interface authorization
WO2016029595A1 (en) * 2014-08-27 2016-03-03 百度在线网络技术(北京)有限公司 Method, device, and equipment for calling open platform and non-volatile computer storage medium
CN108270827A (en) * 2016-12-30 2018-07-10 中国移动通信集团浙江有限公司 User location ability opening method and device
CN111045756A (en) * 2019-12-10 2020-04-21 中国工商银行股份有限公司 Method, apparatus, computing device, and medium for generating interface service
CN111314309A (en) * 2020-01-19 2020-06-19 中信银行股份有限公司 Data transmission method and device, electronic equipment and computer readable storage medium
WO2020177698A1 (en) * 2019-03-04 2020-09-10 上海连尚网络科技有限公司 Inter-mini program platform communication method and device, and computer storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103001936A (en) * 2011-09-16 2013-03-27 北京新媒传信科技有限公司 Method and system for third party application interface authorization
WO2016029595A1 (en) * 2014-08-27 2016-03-03 百度在线网络技术(北京)有限公司 Method, device, and equipment for calling open platform and non-volatile computer storage medium
CN108270827A (en) * 2016-12-30 2018-07-10 中国移动通信集团浙江有限公司 User location ability opening method and device
WO2020177698A1 (en) * 2019-03-04 2020-09-10 上海连尚网络科技有限公司 Inter-mini program platform communication method and device, and computer storage medium
CN111045756A (en) * 2019-12-10 2020-04-21 中国工商银行股份有限公司 Method, apparatus, computing device, and medium for generating interface service
CN111314309A (en) * 2020-01-19 2020-06-19 中信银行股份有限公司 Data transmission method and device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN112492031A (en) 2021-03-12

Similar Documents

Publication Publication Date Title
CN109656538A (en) Generation method, device, system, equipment and the medium of application program
AU2021293965B2 (en) Preventing unauthorized package deployment in clusters
KR102407334B1 (en) Gateway apparatus and operating method thereof
US20220271924A1 (en) Method and apparatus for processing data request
CN112434818B (en) Model construction method, device, medium and electronic equipment
WO2023241060A1 (en) Data access method and apparatus
CN109951487A (en) A kind of portal authentication method and device
US11487510B2 (en) Dynamic web-based integrated development environment
CN112492031B (en) Open platform docking method, device, equipment and storage medium
CN112543194B (en) Mobile terminal login method and device, computer equipment and storage medium
CN109190876A (en) A kind of safety access method and device of service product
CN114546370A (en) Data docking method and related device
CN106843895A (en) Method, system and readable storage medium storing program for executing for processing request
US11809880B2 (en) Dynamically verifying ingress configuration changes
CN111125759A (en) Database login account shielding method and device and electronic equipment
CN109656728A (en) Page data operating method, device, equipment and medium
CN116527284B (en) Data storage security determination method, device, equipment and storage medium
US20230071020A1 (en) Multi-user debugging with user data isolation
KR102436385B1 (en) System for terminal access based beacon using protocol for Internet of Things, Method thereof, and Compueter readable storage medium having the same
CN113452771B (en) Interface calling method, device and system
WO2023193682A1 (en) Local arrangement of remote deployment
US11194918B2 (en) Data transmission based on verification codes
CN113010364B (en) Service data acquisition method and device and electronic equipment
CN110413349B (en) Service calling method and device, electronic equipment and storage medium
CN117519728A (en) Container mirror image deployment method, system, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant