Dynamic multi-modal authentication method and device for aggregation gateway, device and medium
Through the dynamic multimode authentication method of the aggregation gateway, the Groovy dynamic language is used to realize authentication and routing forwarding of existing systems, which solves the problem that traditional API gateways cannot adapt to existing systems, and realizes efficient and flexible system integration and information sharing .
Patent Information
- Application Number
- PCT/CN2023/143242
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-14
- Filing Date
- 2023-12-29
- Publication Date
- 2024-11-28
AI Technical Summary
Traditional API gateways only provide a standard authentication capability and interface routing and forwarding capability, making it difficult for large enterprises to transform and adapt, forming information islands and unable to effectively integrate.
Using the dynamic multimode authentication method of the aggregate gateway, through the request feature analyzer, authentication adapter and back-end service adapter, the dynamic logic processing is realized using Groovy dynamic language, actively adapt to the stock system, determine the target system, and perform signature authentication and routing. Forward.
It realizes flexible integration of the existing system, breaks information silos, reduces access difficulty and project construction cycle, and improves the efficiency of system integration and information sharing.
Smart Images

Figure CN2023143242_28112024_PF_FP_ABST
Abstract
Description
Dynamic multi-mode authentication method, device, equipment and medium for aggregation gateway Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a dynamic multi-mode authentication method, apparatus, device, and medium for an aggregation gateway. Background Art
[0002] Currently, information systems are typically exposed through OpenAPI, with API gateways providing unified authentication and authorization capabilities. Traditional API gateways, however, typically only offer standard authentication and interface routing capabilities. Consequently, both services providing the interface and client systems requiring it must interface according to the API gateway's specifications. For large enterprises, especially those with early access to information systems, many existing systems are difficult to adapt to the API gateway's specifications for various reasons. Therefore, addressing the challenges of legacy system transformation and information silos, which hinder their ability to be adapted, has become a pressing technical challenge.
[0003] Summary of the Invention
[0004] The present application provides a dynamic multi-mode authentication method, apparatus, device and medium for an aggregation gateway to solve the problems of difficult transformation of existing old systems and difficulty in breaking down information islands.
[0005] In a first aspect, the present application provides a dynamic multi-mode authentication method for an aggregation gateway, wherein the dynamic multi-mode authentication method for the aggregation gateway is applied to the aggregation gateway, and the dynamic multi-mode authentication method for the aggregation gateway includes:
[0006] Upon receiving a call request, extracting characteristic parameters from the call request, and determining a target system to which the call request is to be sent based on an analysis rule engine and the characteristic parameters;
[0007] When the target system passes the authentication, determining the home backend service of the request interface based on the globally unique address of the request interface in the call request;
[0008] Based on the protocol request corresponding to the home backend service, the request information corresponding to the call request is processed, and the processed request information is forwarded to the target system.
[0009] Furthermore, the aggregation gateway includes a request feature analyzer, which extracts feature parameters from the call request and determines the target system to which the call request is sent based on the analysis rule engine and the feature parameters, including:
[0010] Extracting, based on the request feature analyzer, header, path, query, and body parameters in the call request as the feature parameters;
[0011] Based on the request feature analyzer, the feature parameters are input into the analysis rule engine for analysis, and a system matching the feature parameters is determined as the target system.
[0012] Furthermore, the step of inputting the characteristic parameters into the analysis rule engine for analysis and determining a system matching the characteristic parameters as the target system includes:
[0013] Based on the analysis rule engine, a request feature analyzer library is matched with the feature parameters, and a system in the request feature analyzer library that matches the feature parameters is determined as the target system.
[0014] Furthermore, the aggregation gateway further includes an authentication adapter, which, when the target system passes the authentication, before determining the home backend service of the request interface based on the globally unique address of the request interface in the call request, further includes:
[0015] Based on the authentication adapter, determining the authentication script and signature protocol corresponding to the target system in the authentication adapter library;
[0016] Based on the authentication script and the signature protocol, the target system is authenticated by signature.
[0017] Furthermore, the authentication adapter includes a standard authentication processor and a customized authentication processor. Based on the authentication adapter, before determining the authentication script and signature protocol corresponding to the target system in the authentication adapter library, the authentication adapter further includes:
[0018] When the target system is a standard system, obtaining the standard authentication processor as the authentication adapter;
[0019] When the target system is a customized system, the customized authentication processor is obtained as the authentication adapter.
[0020] Furthermore, the aggregation network management further includes a backend service adapter, which determines the home backend service of the request interface based on the global unique address of the request interface in the call request when the target system passes the authentication, including:
[0021] Based on the backend service adapter, a home backend service corresponding to the global unique address is determined in a backend service adapter library.
[0022] Furthermore, the backend service adapter includes a standard routing forwarding processor and a customized routing forwarding processor. The backend service adapter-based method, before determining the home backend service corresponding to the globally unique address in the backend service adapter library, includes:
[0023] When the system to which the request interface belongs is a standard system, obtaining the standard routing forwarding processor as the backend service adapter;
[0024] When the system to which the request interface belongs is a customized system, the customized routing forwarding processor is obtained as the backend service adapter.
[0025] In a second aspect, the present application further provides a dynamic multi-mode authentication device for an aggregation gateway, wherein the dynamic multi-mode authentication device is applied to the aggregation gateway, and the dynamic multi-mode authentication device includes:
[0026] A characteristic parameter analysis module is used to extract characteristic parameters from a call request upon receiving the call request, and determine a target system to which the call request is to be sent based on an analysis rule engine and the characteristic parameters;
[0027] A backend service determination module, configured to determine, when the target system passes authentication, the home backend service of the request interface based on the globally unique address of the request interface in the call request;
[0028] The request information forwarding module is used to process the request information corresponding to the call request based on the protocol request corresponding to the home backend service, and forward the processed request information to the target system.
[0029] Furthermore, the aggregation gateway includes a request feature analyzer, and the feature parameter analysis module includes:
[0030] A feature parameter extraction unit, configured to extract, based on the request feature analyzer, header, path, query, and body parameters from the call request as the feature parameters;
[0031] The feature parameter matching unit is used to input the feature parameters into the analysis rule engine for analysis based on the request feature analyzer, and determine a system that matches the feature parameters as the target system.
[0032] Furthermore, the characteristic parameter matching unit is further used for:
[0033] Based on the analysis rule engine, a request feature analyzer library is matched with the feature parameters, and a system in the request feature analyzer library that matches the feature parameters is determined as the target system.
[0034] Furthermore, the aggregation gateway further includes an authentication adapter, and the dynamic multi-mode authentication device further includes:
[0035] A signature protocol determination module, configured to determine, based on the authentication adapter, an authentication script and a signature protocol corresponding to the target system in an authentication adapter library;
[0036] A system signature authentication module is used to perform signature authentication on the target system based on the authentication script and the signature protocol.
[0037] Furthermore, the authentication adapter includes a standard authentication processor and a customized authentication processor, and the dynamic multi-mode authentication device further includes an authentication processor determination module for:
[0038] When the target system is a standard system, obtaining the standard authentication processor as the authentication adapter;
[0039] When the target system is a customized system, the customized authentication processor is obtained as the authentication adapter.
[0040] Furthermore, the backend service determination module is further configured to:
[0041] Based on the backend service adapter, a home backend service corresponding to the global unique address is determined in a backend service adapter library.
[0042] Furthermore, the dynamic multi-mode authentication device further includes a service adapter determination module, configured to:
[0043] When the system to which the request interface belongs is a standard system, obtaining the standard routing forwarding processor as the backend service adapter;
[0044] When the system to which the request interface belongs is a customized system, the customized routing forwarding processor is obtained as the backend service adapter.
[0045] In a third aspect, the present application also provides a computer device, which includes a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and implement the dynamic multi-mode authentication method of the aggregation gateway as described above when executing the computer program.
[0046] In a fourth aspect, the present application further provides a computer-readable storage medium storing a computer program, which, when executed by a processor, enables the processor to implement the dynamic multi-mode authentication method for the aggregation gateway as described above.
[0047] The present application discloses a dynamic multi-mode authentication method, device, equipment and medium for an aggregation gateway. The dynamic multi-mode authentication method includes: when receiving a call request, extracting characteristic parameters in the call request, and determining the target system to which the call request is sent based on an analysis rule engine and the characteristic parameters; when the target system passes the authentication, determining the home backend service of the request interface based on the global unique address of the request interface in the call request; processing the request information corresponding to the call request based on the protocol request corresponding to the home backend service, and forwarding the processed request information to the target system. In the above manner, the present application solves the above problem by setting up a set of multi-mode authentication aggregation gateways, and changes the way other systems adapt to the gateway with the API gateway as the core to the way the API gateway actively adapts to the stock system. This can integrate a large number of existing stock systems, break down information silos, and enable better transformation and optimization of old systems. This enables more efficient and flexible system integration and information sharing. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0049] 1 is a schematic flow chart of a dynamic multi-mode authentication method for an aggregation gateway provided in a first embodiment of the present application;
[0050] FIG2 is a logic schematic flow chart of the dynamic multi-mode authentication method of the aggregation gateway of the present application;
[0051] FIG3 is a schematic block diagram of a dynamic multi-mode authentication device of an aggregation gateway provided in an embodiment of the present application;
[0052] FIG4 is a schematic block diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0053] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0054] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, combined, or partially merged, so the actual execution order may vary depending on the actual situation.
[0055] It should be understood that the terms used in this specification are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0056] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0057] Currently, information systems are typically exposed through OpenAPI, with API gateways providing unified authentication and authorization capabilities. Traditional API gateways typically only offer standard authentication and interface routing capabilities. Therefore, both the services providing the interface capabilities and the client systems requiring them must interface according to the API gateway's specifications. However, many large enterprises, especially those with early access to information systems, have numerous existing systems, making it difficult to adapt and adapt them to the API gateway's specifications.
[0058] In response to the problems of the above-mentioned existing old systems being difficult to transform and information islands being difficult to break, the embodiments of the present application provide a dynamic multi-mode authentication method, apparatus, device and medium for an aggregation gateway, that is, a solution implemented using the Groovy dynamic language as the basis and implemented through three dynamic logic processors: a request feature analyzer, an authentication adapter and a back-end service adapter. This solution is different from the traditional way of using the API gateway as the core to adapt the gateway to each system. It is changed to using the API gateway to actively adapt the existing system, thereby achieving more efficient and flexible system integration and information sharing, thereby breaking the information islands and enabling better transformation and optimization of the old system. Among them, the server can be an independent server or a server cluster.
[0059] The dynamic multi-mode authentication method provided in this embodiment can be used for large-scale heterogeneous system integration and the integration of existing stock systems to provide unified external services.
[0060] The following describes some embodiments of the present application in detail with reference to the accompanying drawings. In the absence of conflict, the following embodiments and features therein may be combined with each other.
[0061] Please refer to FIG1 , which is a schematic flow chart of a dynamic multi-mode authentication method for an aggregation gateway provided in a first embodiment of the present application.
[0062] As shown in FIG1 , the dynamic multi-mode authentication method of the aggregation gateway specifically includes steps S10 to S30 .
[0063] Step S10: upon receiving a call request, extracting characteristic parameters from the call request, and determining a target system to which the call request is to be sent based on an analysis rule engine and the characteristic parameters;
[0064] Step S20: When the target system passes the authentication, the backend service to which the request interface belongs is determined based on the globally unique address of the request interface in the call request;
[0065] Step S30: Based on the protocol request corresponding to the home backend service, process the request information corresponding to the call request, and forward the processed request information to the target system.
[0066] In one embodiment, the aggregation gateway includes three dynamic logic processors: a request feature analyzer, an authentication adapter, and a backend service adapter, and the above dynamic logic processors are all implemented using the Groovy language. The request feature analyzer extracts the header, path, query, and body parameters in the call request, and inputs them into a rule engine implemented using the Groovy language to analyze the extracted feature parameters. The authentication adapter is then selected from the authentication adapter library based on the feature parameters of the call request to authenticate the target system that sent the call request. When the target system passes the authentication, the backend service adapter matches the service corresponding to the backend service registration interface based on its globally unique address (i.e., globally unique external address), loads the processing groovy script corresponding to the service, and forwards the request information corresponding to the call request based on the protocol request corresponding to the assigned backend service.
[0067] The dynamic multi-mode authentication and adaptation method provided in this embodiment has the ability to actively adapt access capabilities, which can greatly reduce the difficulty of accessing existing old systems and accelerate the project construction cycle. Three processors, namely the feature analyzer, authentication adapter, and back-end service adapter, are designed and implemented in Groovy. Compared with existing API gateways, it is more flexible and efficient in system docking. Because it can actively analyze request features and dynamically add processing rules, this gateway not only has dynamic multi-mode authentication capabilities, but also can dynamically adapt to the back-end services in a multi-mode manner.
[0068] This embodiment discloses a dynamic multi-mode authentication method, apparatus, equipment and medium for an aggregation gateway, wherein the dynamic multi-mode authentication method includes: upon receiving a call request, extracting characteristic parameters in the call request, and determining the target system for sending the call request based on an analysis rule engine and the characteristic parameters; when the target system passes authentication, determining the home backend service of the request interface based on the global unique address of the request interface in the call request; processing the request information corresponding to the call request based on the protocol request corresponding to the home backend service, and forwarding the processed request information to the target system. In the above manner, the present application solves the above problem by setting up a set of multi-mode authentication aggregation gateways, and changes the way other systems adapt to the gateway with the API gateway as the core to the way the API gateway actively adapts to the stock system, which can integrate a large number of existing stock systems, break down information silos, and enable better transformation and optimization of old systems. This enables more efficient and flexible system integration and information sharing.
[0069] Furthermore, as shown in FIG2 , the aggregation gateway includes a request feature analyzer, and step S10 includes:
[0070] Extracting, based on the request feature analyzer, header, path, query, and body parameters in the call request as the feature parameters;
[0071] Based on the request feature analyzer, the feature parameters are input into the analysis rule engine for analysis, and a system matching the feature parameters is determined as the target system.
[0072] Furthermore, the step of inputting the characteristic parameters into the analysis rule engine for analysis and determining a system matching the characteristic parameters as the target system includes:
[0073] Based on the analysis rule engine, a request feature analyzer library is matched with the feature parameters, and a system in the request feature analyzer library that matches the feature parameters is determined as the target system.
[0074] Furthermore, the aggregation gateway further includes an authentication adapter, which, when the target system passes the authentication, before determining the home backend service of the request interface based on the globally unique address of the request interface in the call request, further includes:
[0075] Based on the authentication adapter, determining the authentication script and signature protocol corresponding to the target system in the authentication adapter library;
[0076] Based on the authentication script and the signature protocol, the target system is authenticated by signature.
[0077] Furthermore, the authentication adapter includes a standard authentication processor and a customized authentication processor. Based on the authentication adapter, before determining the authentication script and signature protocol corresponding to the target system in the authentication adapter library, the authentication adapter further includes:
[0078] When the target system is a standard system, obtaining the standard authentication processor as the authentication adapter;
[0079] When the target system is a customized system, the customized authentication processor is obtained as the authentication adapter.
[0080] Furthermore, the aggregation network management further includes a backend service adapter, which determines the home backend service of the request interface based on the global unique address of the request interface in the call request when the target system passes the authentication, including:
[0081] Based on the backend service adapter, a home backend service corresponding to the global unique address is determined in a backend service adapter library.
[0082] Furthermore, the backend service adapter includes a standard routing forwarding processor and a customized routing forwarding processor. The backend service adapter-based method, before determining the home backend service corresponding to the globally unique address in the backend service adapter library, includes:
[0083] When the system to which the request interface belongs is a standard system, obtaining the standard routing forwarding processor as the backend service adapter;
[0084] When the system to which the request interface belongs is a customized system, the customized routing forwarding processor is obtained as the backend service adapter.
[0085] In one embodiment, the request feature analyzer is used to perform feature analysis on the call request. The processor will extract the header, path, query and body parameters of the request, pass them into the rule engine implemented in the Groovy language to analyze the parameters, and select a matching authentication adapter from the authentication adapter library according to the request characteristics to perform authentication processing. The authentication adapter is used to include a standard authentication processor and a customized authentication processor for certain specific client services. The customized authentication processor is an adapter customized in the Groovy language to adapt to its authentication protocol. The input parameters are the header, path, query and body parameters of the request extracted by the request feature analyzer, and the output parameters are the authentication results. The backend service adapter includes a standard backend service routing forwarding processor and a customized routing forwarding processor for certain specific backend services. The customized routing forwarding processor is implemented in the Groovy language and processes the request information according to the requirements of the backend service, such as adding the exclusive parameter information required by it.
[0086] Specifically, after receiving the request, the aggregation gateway will first enter the request feature analyzer. The feature analyzer will extract the header, path, query and body parameters of the request, and then load the groovy script in the request feature analyzer library to poll and match the request features corresponding to each system. After a successful match, it will enter the next link. The authentication adapter will load the corresponding groovy script from the authentication adapter according to the feature matching results of the previous step, and perform authentication processing. If the authentication fails, it will return no permission to access. If the authentication succeeds, it will enter the next link. The back-end service adapter will match the service corresponding to the interface based on the globally unique external address of the back-end service registration interface, and load its corresponding processing groovy script for forwarding processing. For example:
[0087] In a scenario, inventory system Z calls the interface capabilities provided by inventory systems A and B through an aggregation gateway. The requirements are as follows:
[0088] 1. Existing system A provides interface capabilities through the aggregation gateway. A requires the aggregation gateway to carry JWT in the header when forwarding its interface as an interface security measure
[0089] 2. Existing system B provides interface capabilities through the aggregation gateway. B requires the aggregation gateway to encrypt the request message with the public key before forwarding it.
[0090] 3. Existing system Z calls the capabilities of existing systems A and B through the aggregation gateway. Z requires the aggregation gateway to perform signature authentication according to the aksk signature protocol of system Z, and its request header will carry its specific parameters z-app-ak=xxxx,z-app-timestamp=yyyy,z-app-signature=zzzz
[0091] In response to the above requirements, the specific calling process is as follows:
[0092] The aggregation gateway receives the call request and requests the feature analyzer to obtain the header, path, query, and body parameters of the request. The parameters are passed to the rule engine implemented in the Groovy language for analysis. By polling the request feature analyzer library, that is, polling the features corresponding to each system in the analyzer library, if the header parameters z-app-ak, z-app-timestamp, and z-app-signature are matched at the same time, it is determined that the matching rules of the existing system Z are met, and the authentication adapter is notified that the system that meets the call request is system Z, that is, the target system is system Z.
[0093] The authentication adapter loads the system Z-specific groovy authentication script from the authentication adapter library and performs signature verification according to the system Z-specific aksk signature protocol. If the authentication fails, it returns "No access"; if the authentication succeeds, it proceeds to the next step;
[0094] The backend service adapter identifies the backend service to which the interface belongs based on the globally unique address of the request. If the interface belongs to system A, the backend service adapter obtains the corresponding Groovy processing script for system A from the backend service adapter library and adds the JWT information to the request header according to the protocol of system A. If the interface belongs to system B, the backend service adapter obtains the corresponding Groovy processing script for system B from the backend service adapter library and encrypts the request message using the public key according to the protocol of system B.
[0095] This embodiment provides a dynamic multi-mode authentication method for an aggregation gateway. By using three dynamic logic processors—a request feature analyzer, an authentication adapter, and a backend service adapter—to proactively analyze the characteristics of the access system, adapt it, and support authentication processing according to the existing protocols of the existing system, the difficulties of interfacing with the system can be greatly reduced. Furthermore, all three dynamic logic processors—the request feature analyzer, the authentication adapter, and the backend service adapter—use the Groovy dynamic language for related logic processing. Groovy dynamic language can be stored in a database or cache such as Redis, allowing for modification and addition of processing rules at any time. This provides flexible processing and eliminates the need to restart the gateway.
[0096] Furthermore, when adapting to private cloud deployments, the integration no longer requires extensive code development and modification. Instead, integration can be achieved by simply writing a request signature analyzer and authentication adapter in Groovy specific to the customer's existing system, significantly shortening the integration cycle and reducing costs.
[0097] Please refer to FIG3 , which shows a dynamic multi-mode authentication device for an aggregation gateway according to an embodiment of the present application. The dynamic multi-mode authentication device includes:
[0098] The characteristic parameter analysis module 10 is used to extract the characteristic parameters in the call request when receiving the call request, and determine the target system to send the call request based on the analysis rule engine and the characteristic parameters;
[0099] A backend service determination module 20 is configured to determine the home backend service of the request interface based on the globally unique address of the request interface in the call request when the target system passes authentication;
[0100] The request information forwarding module 30 is configured to process the request information corresponding to the call request based on the protocol request corresponding to the home backend service, and forward the processed request information to the target system.
[0101] Furthermore, the aggregation gateway includes a request feature analyzer, and the feature parameter analysis module 10 includes:
[0102] A feature parameter extraction unit, configured to extract, based on the request feature analyzer, header, path, query, and body parameters from the call request as the feature parameters;
[0103] The feature parameter matching unit is used to input the feature parameters into the analysis rule engine for analysis based on the request feature analyzer, and determine a system that matches the feature parameters as the target system.
[0104] Furthermore, the characteristic parameter matching unit is further used for:
[0105] Based on the analysis rule engine, a request feature analyzer library is matched with the feature parameters, and a system in the request feature analyzer library that matches the feature parameters is determined as the target system.
[0106] Furthermore, the aggregation gateway further includes an authentication adapter, and the dynamic multi-mode authentication device further includes:
[0107] A signature protocol determination module, configured to determine, based on the authentication adapter, an authentication script and a signature protocol corresponding to the target system in an authentication adapter library;
[0108] A system signature authentication module is used to perform signature authentication on the target system based on the authentication script and the signature protocol.
[0109] Furthermore, the authentication adapter includes a standard authentication processor and a customized authentication processor, and the dynamic multi-mode authentication device further includes an authentication processor determination module for:
[0110] When the target system is a standard system, obtaining the standard authentication processor as the authentication adapter;
[0111] When the target system is a customized system, the customized authentication processor is obtained as the authentication adapter.
[0112] Furthermore, the backend service determination module 20 is further configured to:
[0113] Based on the backend service adapter, a home backend service corresponding to the global unique address is determined in a backend service adapter library.
[0114] Furthermore, the dynamic multi-mode authentication device further includes a service adapter determination module, configured to:
[0115] When the system to which the request interface belongs is a standard system, obtaining the standard routing forwarding processor as the backend service adapter;
[0116] When the system to which the request interface belongs is a customized system, the customized routing forwarding processor is obtained as the backend service adapter.
[0117] It should be noted that those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0118] The above-mentioned apparatus may be implemented in the form of a computer program, and the computer program may be run on a computer device as shown in FIG5 .
[0119] Please refer to Figure 4, which is a schematic block diagram of the structure of a computer device provided in an embodiment of the present application. The computer device may be a server.
[0120] 4 , the computer device includes a processor, a memory, and a network interface connected via a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.
[0121] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any one of the dynamic multi-mode authentication methods for the aggregation gateway.
[0122] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.
[0123] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any dynamic multi-mode authentication method of the aggregation gateway.
[0124] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that the structure shown in FIG4 is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. A specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0125] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0126] In one embodiment, the processor is configured to execute a computer program stored in the memory to implement the following steps:
[0127] Upon receiving a call request, extracting characteristic parameters from the call request, and determining a target system to which the call request is to be sent based on an analysis rule engine and the characteristic parameters;
[0128] When the target system passes the authentication, determining the home backend service of the request interface based on the globally unique address of the request interface in the call request;
[0129] Based on the protocol request corresponding to the home backend service, the request information corresponding to the call request is processed, and the processed request information is forwarded to the target system.
[0130] Furthermore, the aggregation gateway includes a request feature analyzer, which extracts feature parameters from the call request and determines the target system to which the call request is sent based on the analysis rule engine and the feature parameters, including:
[0131] Extracting, based on the request feature analyzer, header, path, query, and body parameters in the call request as the feature parameters;
[0132] Based on the request feature analyzer, the feature parameters are input into the analysis rule engine for analysis, and a system matching the feature parameters is determined as the target system.
[0133] Furthermore, the step of inputting the characteristic parameters into the analysis rule engine for analysis and determining a system matching the characteristic parameters as the target system includes:
[0134] Based on the analysis rule engine, a request feature analyzer library is matched with the feature parameters, and a system in the request feature analyzer library that matches the feature parameters is determined as the target system.
[0135] Furthermore, the aggregation gateway further includes an authentication adapter, which, when the target system passes the authentication, before determining the home backend service of the request interface based on the globally unique address of the request interface in the call request, further includes:
[0136] Based on the authentication adapter, determining the authentication script and signature protocol corresponding to the target system in the authentication adapter library;
[0137] Based on the authentication script and the signature protocol, the target system is authenticated by signature.
[0138] Furthermore, the authentication adapter includes a standard authentication processor and a customized authentication processor. Based on the authentication adapter, before determining the authentication script and signature protocol corresponding to the target system in the authentication adapter library, the authentication adapter further includes:
[0139] When the target system is a standard system, obtaining the standard authentication processor as the authentication adapter;
[0140] When the target system is a customized system, the customized authentication processor is obtained as the authentication adapter.
[0141] Furthermore, the aggregation network management further includes a backend service adapter, which determines the home backend service of the request interface based on the global unique address of the request interface in the call request when the target system passes the authentication, including:
[0142] Based on the backend service adapter, a home backend service corresponding to the global unique address is determined in a backend service adapter library.
[0143] Furthermore, the backend service adapter includes a standard routing forwarding processor and a customized routing forwarding processor. The backend service adapter-based method, before determining the home backend service corresponding to the globally unique address in the backend service adapter library, includes:
[0144] When the system to which the request interface belongs is a standard system, obtaining the standard routing forwarding processor as the backend service adapter;
[0145] When the system to which the request interface belongs is a customized system, the customized routing forwarding processor is obtained as the backend service adapter.
[0146] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and the computer program includes program instructions. The processor executes the program instructions to implement any dynamic multi-mode authentication method for the aggregation gateway provided in the embodiment of the present application.
[0147] The computer-readable storage medium may be an internal storage unit of the computer device described in the aforementioned embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc., equipped on the computer device.
[0148] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present application, and such modifications or substitutions should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A dynamic multi-mode authentication method for an aggregation gateway, It is characterized in that The dynamic multi-mode authentication method of the aggregation gateway is applied to the aggregation gateway, and the dynamic multi-mode authentication method of the aggregation gateway includes: When receiving a call request, extract characteristic parameters in the call request, and determine a target system to send the call request based on an analysis rule engine and the characteristic parameters; When the target system passes the authentication, based on the globally unique address of the request interface in the call request, determining the home backend service of the request interface; Based on the protocol request corresponding to the home backend service, the request information corresponding to the call request is processed, and the processed request information is forwarded to the target system.
2. The dynamic multi-mode authentication method according to claim 1, It is characterized in that The aggregation gateway includes a request feature analyzer, which extracts feature parameters in the call request and determines a target system for sending the call request based on an analysis rule engine and the feature parameters, including: Based on the request feature analyzer, extracting the header, path, query and body parameters in the call request as the feature parameters; Based on the request feature analyzer, the feature parameters are passed to the analysis rule engine for analysis, and a system matching the feature parameters is determined as the target system.
3. The dynamic multi-mode authentication method according to claim 2, It is characterized in that The step of transferring the characteristic parameters into the analysis rule engine for analysis and determining a system matching the characteristic parameters as the target system includes: Based on the analysis rule engine, the request feature analyzer library is matched with the feature parameters, and the system in the request feature analyzer library that matches the feature parameters is determined as the target system.
4. The dynamic multi-mode authentication method according to claim 1, It is characterized in that The aggregation gateway further includes an authentication adapter, which, when the target system passes the authentication, before determining the home backend service of the request interface based on the global unique address of the request interface in the call request, further includes: Based on the authentication adapter, determining the authentication script and signature protocol corresponding to the target system in the authentication adapter library; Based on the authentication script and the signature protocol, the target system is signed and authenticated.
5. The dynamic multi-mode authentication method according to claim 4, It is characterized in that The authentication adapter includes a standard authentication processor and a customized authentication processor. Based on the authentication adapter, before determining the authentication script and signature protocol corresponding to the target system in the authentication adapter library, the method further includes: When the target system is a standard system, obtaining the standard authentication processor as the authentication adapter; When the target system is a customized system, the customized authentication processor is obtained as the authentication adapter.
6. The dynamic multi-mode authentication method according to any one of claims 1 to 5, It is characterized in that The aggregation network management further includes a backend service adapter, which determines the backend service to which the request interface belongs based on the global unique address of the request interface in the call request when the target system passes the authentication, including: Based on the backend service adapter, the home backend service corresponding to the global unique address is determined in the backend service adapter library.
7. The dynamic multi-mode authentication method according to claim 6, It is characterized in that The backend service adapter includes a standard routing forwarding processor and a customized routing forwarding processor. The backend service adapter is based on the backend service adapter, and before the backend service library determines the home backend service corresponding to the global unique address, the backend service adapter includes: When the system to which the request interface belongs is a standard system, obtaining the standard routing forwarding processor as the backend service adapter; When the system to which the request interface belongs is a customized system, the customized routing forwarding processor is obtained as the backend service adapter.
8. A dynamic multi-mode authentication device for an aggregation gateway, It is characterized in that The dynamic multi-mode authentication device comprises: A characteristic parameter analysis module, used for extracting characteristic parameters in the call request upon receiving the call request, and determining a target system to send the call request based on the analysis rule engine and the characteristic parameters; A backend service determination module, used to determine the home backend service of the request interface based on the global unique address of the request interface in the call request when the target system passes the authentication; The request information forwarding module is used to process the request information corresponding to the call request based on the protocol request corresponding to the home backend service, and forward the processed request information to the target system.
9. A computer device, It is characterized in that The computer device includes a memory and a processor; The memory is used to store computer programs; The processor is used to execute the computer program and implement the dynamic multi-mode authentication method for the aggregation gateway according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the dynamic multi-mode authentication method for an aggregation gateway according to any one of claims 1 to 7.
Citation Information
Patent Citations
Request forwarding method and device, equipment and storage medium
CN112073504A
Call request processing method and device, computer equipment and storage medium
CN112235428A
Intra-bank gateway system, intra-bank loan service docking method, device and medium
CN114884752A
Message forwarding method and device, electronic equipment and storage medium
CN114978888A
Stateful database application programming interface
US10552442B1
Cited By
Interface calling method and device, electronic equipment and storage medium
CN119603348A
