Internal interface request security authentication method, terminal and medium

By deploying the certification center and authentication service in the internal trusted network, security authentication of internal interface requests is performed based on token information, which solves the risks and complexity of security authentication of internal interface services in large projects and improves security and efficiency. .

CN118797613AInactive Publication Date: 2024-10-18SHANDONG INSPUR ULTRA HD INTELLIGENT TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411043317.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-10-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing technology has risks in the security authentication of internal interface services in large projects. When authentication is not performed, there is a security risk of malicious calls from external networks. Moreover, when security authentication is performed with reference to external services, the authentication interface is complicated and inefficient.

Method used

Deploy an authentication center in the internal trusted network, including authentication services and authentication services. Security authentication is performed through the token information of business applications to avoid username and password authentication. A token-based security authentication mechanism is adopted to simplify the authentication process.

Benefits of technology

It realizes the security authentication of internal interface requests, avoids the risk of interface leakage and malicious access, improves authentication efficiency, simplifies the authentication process, and reduces the complexity of password encrypted transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118797613A_ABST
    Figure CN118797613A_ABST
Patent Text Reader

Abstract

The invention relates to the field of interface request authentication, and particularly discloses an internal interface request security authentication method, a terminal and a medium, an authentication toolkit is integrated for a business application, and the authentication toolkit encapsulates a method and a tool for calling an authentication center service; deploying an authentication center in the internal trusted network, wherein the authentication center comprises an authentication service and an authentication service; and the business application runs the authentication toolkit to interact with the authentication center, and the authentication center calls the authentication service and the authentication service and performs security authentication on the internal interface request of the business application based on the token information of the business application. A security authentication mechanism is added to the internal interface request, internal interface leakage is avoided, security authentication is deployed in an internal trusted network, authentication such as a user name and a password is not needed, complexity is low, and authentication efficiency is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of interface request authentication, and in particular to an internal interface request security authentication method, a terminal and a medium. Background Art

[0002] Large projects usually include multiple business applications. There is a situation where a business application provides both external and internal interface services, such as Figure 1 The figure shows a schematic diagram of multiple applications in the project. The external interface service has high security requirements, requiring user name and password authentication, and the password needs to be encrypted during the authentication transmission process. The internal interface service has low security requirements. There are two situations for the security authentication of the internal interface in the related technology: In the first situation, no security authentication is performed for the internal service; in the second situation, the internal service is processed in accordance with the security authentication of the external service. In the first situation, no authentication is performed. Once the internal service request path is leaked, there is a security risk of being maliciously called by the external network. In the second situation, encryption and decryption operations are required, which makes the authentication interface complicated and the authentication efficiency low. Summary of the invention

[0003] To solve the above problems, the present invention provides a method, terminal and medium for internal interface request security authentication, which adds a security authentication mechanism to the internal interface request to avoid internal interface leakage. The security authentication is deployed in the internal trusted network, and no authentication such as username and password is required. It has low complexity and high authentication efficiency.

[0004] In a first aspect, the technical solution of the present invention provides a method for requesting security authentication of an internal interface, comprising the following steps: An authentication toolkit is integrated for business applications, wherein the authentication toolkit encapsulates methods and tools for calling authentication center services; Deploy an authentication center in the internal trusted network, wherein the authentication center includes authentication services and authorization services; The business application runs the authentication toolkit to interact with the authentication center. The authentication center calls the authentication service and the authorization service to perform security authentication on the internal interface requests of the business application based on the business application token information.

[0005] In an optional implementation, the business application runs an authentication toolkit to interact with the authentication center, and the authentication center calls the authentication service and the authorization service to perform security authentication on the internal interface request of the business application based on the business application token information, specifically including: The first business application calls the authentication center authentication interface to obtain token information, which is recorded as initial token information, and sends the initial token information to the authentication center; The authentication center calls the authentication service to perform an authentication operation on the first business application; If the authentication is successful, the authentication information and the initial token information are encapsulated to obtain the encapsulated token information; Return the encapsulated token to the first business application; The first business application calls the interface service of the second business application, and the calling request is accompanied by encapsulated token information; The second business application calls the authentication center authentication interface, so that the authentication center calls the authentication service to verify the encapsulated token information and feeds back the verification result to the second business application; If the verification succeeds, the second business application executes the business operation and returns the operation result to the first business application; if the verification fails, the second business application returns the operation failure to the first business application.

[0006] In an optional implementation, the first service application carries its own IP and the second service application IP when sending the initial token information to the authentication center.

[0007] In an optional implementation, the authentication center calls the authentication service to perform an authentication operation on the first business application, specifically including: Check whether IP whitelist authentication is available; If it is not enabled, the authentication is directly determined to be passed; If enabled, use the IP whitelist to perform IP authentication on the first service application; If the first service application IP is in the IP whitelist, the authentication is determined to be successful, otherwise the authentication is failed.

[0008] In an optional implementation, the authentication information includes the first service application IP, the second service application IP, the number of authentication times, and the token expiration time.

[0009] In an optional implementation, before the authentication center calls the authentication service to verify the encapsulated token information, the following steps are also included: The first service application IP and the second service application IP are saved.

[0010] In an optional implementation, the authentication center calls the authentication service to verify the encapsulated token information, specifically including: Parse the encapsulated token; If the parsing fails, feedback of verification failure is sent to the second service application; If the resolution is successful, obtain the first service application IP; The currently acquired first service application IP is compared with the saved first service application IP for consistency. If they are inconsistent, a verification failure is fed back to the second service application. If they are consistent, the second service application IP is obtained. Compare the currently acquired second service application IP with the saved second service application IP for consistency. If they are inconsistent, feedback verification failure to the second service application. If they are consistent, check whether the number of authentication times does not exceed the preset number of authentication times. If not, feedback verification failure to the second service application. If so, check whether the token is invalid according to the preset token expiration time. If the token is invalid, a verification failure is fed back to the second service application; if the token is valid, a verification success is fed back to the second service application.

[0011] In an optional implementation, the authentication center further includes a log service. When the authentication center calls the authentication service and the authorization service to perform security authentication on the internal interface request of the business application, it also calls the log service to log the security authentication process.

[0012] In a second aspect, the technical solution of the present invention provides a terminal, including: A memory, used for storing an internal interface request security authentication program; A processor is used to implement the steps of the internal interface request security authentication method as described in any one of the above items when executing the internal interface request security authentication program.

[0013] In the third aspect, the technical solution of the present invention provides a computer-readable storage medium, on which an internal interface request security authentication program is stored. When the internal interface request security authentication program is executed by a processor, the steps of the internal interface request security authentication method as described in any of the above items are implemented.

[0014] The invention provides an internal interface request security authentication method, terminal and medium, which have the following beneficial effects compared with the prior art: comprising an authentication center and an authentication toolkit, which are deployed in an internal trusted network, and the authentication center comprises an authentication service and an authorization service, which are used to perform security authentication on the internal interface request of a business application based on the business application token information. The invention adds a security authentication mechanism to the internal interface request to avoid the security risk of internal interface leakage and malicious access by external network access; at the same time, because it is deployed in a trusted network, its authentication implementation mechanism does not use user name and password authentication, avoids password encryption transmission, password hash and other complex calculation operations, and has high interface authentication efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0016] Figure 1 It is a schematic diagram of multiple applications of the project.

[0017] Figure 2 It is a schematic diagram of the structure of the internal interface request security authentication device according to an embodiment of the present invention.

[0018] Figure 3 The present invention provides a flow chart of a method for requesting security authentication via an internal interface.

[0019] Figure 4 This is a flowchart for performing security authentication on internal interface requests of business applications.

[0020] Figure 5 This is a timing diagram for performing security authentication on internal interface requests of business applications.

[0021] Figure 6 This is a schematic diagram of the authentication process.

[0022] Figure 7 This is a schematic diagram of the authentication process.

[0023] Figure 8 It is a schematic diagram of the structure of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0025] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0026] An internal interface request security authentication method provided by an embodiment of the present invention is based on Figure 2 The internal interface shown requires the security authentication device to implement, such as Figure 2As shown, the device includes an authentication center and an authentication SDK. The authentication center includes authentication services, authorization services, and log services. The authentication SDK encapsulates the method tools for calling the authentication center. Internal applications can quickly access the authentication center by integrating the authentication SDK to achieve secure interface interaction. The device is deployed in an internal trusted network, and the authentication center is only accessible to the internal network, which can avoid the security risk of exposing the internal interface to the external network; the authentication process of the device uses a JWT format token for authentication interaction, which is highly scalable, does not use username and password authentication, does not require configuration of user information, has low operation complexity, and improves authentication efficiency.

[0027] Figure 3 This is a flowchart of an internal interface request security authentication method provided in an embodiment of the present invention. According to different requirements, the order of the steps in the flowchart can be changed, and some can be omitted.

[0028] like Figure 3 As shown, the method includes the following steps.

[0029] S1 is a service application integration certification toolkit.

[0030] The authentication toolkit of this embodiment encapsulates the methods and tools for calling the authentication center service to interact with the authentication center to implement security authentication of internal interface requests.

[0031] S2, deploy the authentication center in the internal trusted network.

[0032] The authentication center of this embodiment includes authentication service and authentication service to realize internal interface request security authentication. Security authentication includes two parts, authentication and authentication, which are respectively realized by authentication service and authentication service.

[0033] S3: The business application runs the authentication toolkit to interact with the authentication center. The authentication center calls the authentication service and the authorization service to perform security authentication on the internal interface request of the business application based on the business application token information.

[0034] In this embodiment, the authentication toolkit interacts with the authentication center. The authentication center calls the authentication service and the authorization service to implement security authentication of the internal interface request of the business application based on the token information of the business application. The security authentication includes two parts: authentication and authorization.

[0035] Figure 4 This is a flowchart of security authentication for internal interface requests of business applications. Figure 5 This is a timing diagram for security authentication of internal interface requests of business applications, where applications A and B are internal applications of the project. Application A calls the internal interface service of application B. Application A is the caller and application B is the callee.

[0036] like Figure 4 and Figure 5 As shown in the figure, the authentication and authorization of the internal interface request of application A includes the following process: 1) Application A calls the authentication interface of the authentication center to obtain token information. 2) After the simple authentication of the authentication center is passed, the encapsulated token information is returned. 3) Application A calls the interface service of application B and requests the encapsulated token information. 4) Application B calls the authentication interface of the authentication center to verify the encapsulated token information. 5) The authentication center verifies the encapsulated token information and returns the verification result. 6) Application B determines the verification result of the encapsulated token. If the verification fails, the operation failure is returned. If the verification passes, the subsequent business operation is performed and the business operation result is returned.

[0037] Specifically, the business application runs the authentication toolkit to interact with the authentication center, the authentication center calls the authentication service and the authorization service, and performs security authentication on the internal interface request of the business application based on the business application token information, which specifically includes the following steps.

[0038] S3.1, the first business application calls the authentication center authentication interface to obtain token information, which is recorded as initial token information, and sends the initial token information to the authentication center.

[0039] In this embodiment, the first business application carries its own IP and the second business application IP when sending the initial token information to the authentication center, and saves the first business application IP and the second business application IP at the same time for subsequent token encapsulation and consistency judgment during subsequent authentication.

[0040] S3.2, the authentication center calls the authentication service to perform authentication operations on the first business application.

[0041] The authentication operation of this embodiment is based on the first service application IP, that is, whether the caller IP is in the whitelist to implement authentication. Specifically, the following steps are included.

[0042] S3.2.1, check whether the IP whitelist is authenticated.

[0043] S3.2.2, if not enabled, directly determine that the authentication is passed.

[0044] S3.2.3, if enabled, uses the IP whitelist to perform IP authentication on the first service application.

[0045] S3.2.4, if the first service application IP is in the IP whitelist, the authentication is determined to be successful, otherwise the authentication is failed.

[0046] S3.3, if the authentication is successful, the authentication information and the initial token information are encapsulated to obtain the encapsulated token information.

[0047] S3.4, returning the encapsulated token to the first business application.

[0048] Take application A and application B as examples. Figure 6 The following is a schematic diagram of the authentication process: 1) Application A calls the authentication service of the authentication center. 2) Determine whether IP whitelist authentication is enabled. If not, proceed to step 4). 3) Check whether application A is in the IP whitelist range. If it is, proceed to step 4). Otherwise, return failure to application A. 4) Encapsulate token information, which includes the caller IP (IP of application A), the called party IP (IP of application B), the number of authentication times, and the token expiration time. 5) Return the encapsulated token information to application A.

[0049] S3.5, the first business application calls the interface service of the second business application, and the calling request is accompanied by encapsulated token information.

[0050] S3.6, the second business application calls the authentication center authentication interface, so that the authentication center calls the authentication service to verify the encapsulated token information and feeds back the verification result to the second business application.

[0051] This embodiment implements authentication of internal interface requests by verifying encapsulated token information, including consistency verification, number verification, and expiration time verification, and specifically includes the following steps.

[0052] S3.6.1, parse the encapsulated token.

[0053] S3.6.2: If the parsing fails, feedback of verification failure is sent to the second business application.

[0054] S3.6.3, if the resolution is successful, obtain the first service application IP.

[0055] S3.6.4, compare the currently acquired first business application IP with the saved first business application IP for consistency. If they are inconsistent, feedback verification failure to the second business application. If they are consistent, obtain the second business application IP.

[0056] S3.6.5, compare the currently acquired second business application IP with the saved second business application IP for consistency. If they are inconsistent, feedback the verification failure to the second business application. If they are consistent, check whether the number of authentication times does not exceed the preset number of authentication times. If not, feedback the verification failure to the second business application. If so, check whether the token is invalid according to the preset token expiration time.

[0057] S3.6.6: If the token is invalid, feedback that verification failed is sent to the second business application; if the token is not invalid, feedback that verification passed is sent to the second business application.

[0058] Take application A and application B as examples. Figure 7 The following is a schematic diagram of the authentication process, which includes the following steps: 1) Application B calls the authentication service of the authentication center. 2) The authentication service parses the encapsulated token information. If the parsing fails, it directly returns verification failure. 3) Compare the caller's IP with the token to see if they are consistent. If they are not consistent, it returns verification failure. If they are consistent, it will proceed to the next step. 4) Compare the callee's IP with the information in the token to see if they are consistent. If they are not consistent, it will return verification failure. If they are consistent, it will proceed to the next step. 5) Compare whether the number of verifications this time exceeds the preset number. If it exceeds the number, it will return verification failure. If it does not exceed the number, it will proceed to the next step. 6) Record the number of times that can be verified - 1. 7) Check whether the token is invalid. If it is invalid, it will return verification failure. If it is not invalid, it will return verification passed.

[0059] S3.7, if the verification succeeds, the second business application executes the business operation and returns the operation result to the first business application; if the verification fails, the second business application returns the operation failure to the first business application.

[0060] During the security authentication process, the authentication center calls the authentication service and the authorization service to perform security authentication on the internal interface requests of the business application. It also calls the log service to log the security authentication process, providing effective monitoring and log support to facilitate problem location and function optimization.

[0061] In a specific implementation example, the project deploys multiple applications: application A (IP: 192.168.100.2) and application B (IP: 192.168.100.3). Deploy the authentication center service (192.168.100.1), and application A and application B integrate the authentication SDK. Application A calls the interface service of application B. The authentication steps are as follows.

[0062] Step 1: Application A calls the authentication center authentication interface to obtain a token. An example of the authentication request address is: http: / / 192.168.100.1 / get-token?to=192.168.100.3.

[0063] Step 2: The authentication center obtains the client request address 192.168.100.2, identifies it in the IP whitelist, and then encapsulates the token. The token information includes the caller (from: 192.168.100.2), the callee (to: 192.168.100.3), the number of authentication times (time: default 1), and the token expiration time (expire: default current time + 5 minutes). The encapsulation format is JWT format. Token example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcm9tIjoiMTkyLjE2OC4xMDAuMiIsInRvIjoiMTkyLjE2O C4xMDAuMyIsInRpbWUiOjEsImV4cGlyZSI6MTcyMTI4NzgwM30.vEzKgoRghREzljxHltpbpfap1kkJiQOn6XSy_JOjs2s.

[0064] Step 3: Application A carries the token information to request the interface service of Application B. Application B obtains the request caller IP, callee IP, and token information, and forwards it to the authentication center for authentication. Authentication request address example: http: / / 192.168.100.1 / check-token?from=192.168.100.2&to=192.168.100.3&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcm9tIjoiMTkyLjE2OC4xMDAuMiIsInRvIjoiMTkyLjE2OC4xMDAuMyIsInRpbWUiOjEsImV4cGlyZSI6MTcyMTI4NzgwM30.vEzKgoRghREzljxHltpbpfap1kkJiQOn6XSy_JOjs2s.

[0065] Step 4: The authentication center parses the token information, compares the caller IP, the callee IP, the remaining verification times, and whether it has expired. If all verifications are passed, it returns a verification pass, otherwise it returns a verification failure.

[0066] Step 5: Application B executes the corresponding business operation based on the authentication result of the authentication center. If the token verification is successful, it returns the operation result to Application A; otherwise, it returns authentication failure.

[0067] Figure 8A schematic diagram of the structure of a terminal 800 provided in an embodiment of the present invention includes: a processor 810, a memory 820 and a communication unit 830. The processor 810 is used to implement the following steps when the internal interface request security authentication program stored in the memory 820 is implemented: An authentication toolkit is integrated for business applications, wherein the authentication toolkit encapsulates methods and tools for calling authentication center services; Deploy an authentication center in the internal trusted network, wherein the authentication center includes authentication services and authorization services; The business application runs the authentication toolkit to interact with the authentication center. The authentication center calls the authentication service and the authorization service to perform security authentication on the internal interface requests of the business application based on the business application token information. The terminal 800 includes a processor 810, a memory 820 and a communication unit 830. These components communicate via one or more buses. It can be understood by those skilled in the art that the structure of the server shown in the figure does not constitute a limitation of the present invention, and it can be a bus structure or a star structure, and can also include more or less components than shown in the figure, or combine some components, or arrange the components differently.

[0068] The memory 820 can be used to store the execution instructions of the processor 810, and the memory 820 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. When the execution instructions in the memory 820 are executed by the processor 810, the terminal 800 can perform some or all of the steps in the following method embodiments.

[0069] The processor 810 is the control center of the storage terminal, and uses various interfaces and lines to connect various parts of the entire electronic terminal. It runs or executes software programs and / or modules stored in the memory 820, and calls data stored in the memory to perform various functions of the electronic terminal and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 810 can include only a central processing unit (CPU). In the embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.

[0070] The communication unit 830 is used to establish a communication channel so that the storage terminal can communicate with other terminals, receive user data sent by other terminals or send user data to other terminals.

[0071] The present invention also provides a computer storage medium, wherein the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

[0072] The computer storage medium stores an internal interface request security authentication program, and when the internal interface request security authentication program is executed by the processor, the following steps are implemented: An authentication toolkit is integrated for business applications, wherein the authentication toolkit encapsulates methods and tools for calling authentication center services; Deploy an authentication center in the internal trusted network, wherein the authentication center includes authentication services and authorization services; The business application runs the authentication toolkit to interact with the authentication center. The authentication center calls the authentication service and the authorization service to perform security authentication on the internal interface requests of the business application based on the business application token information. Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention, in essence or in other words, the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes, including several instructions for enabling a computer terminal (which can be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in each embodiment of the present invention.

[0073] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0074] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0075] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0076] The above disclosure is only a preferred embodiment of the present invention, but the present invention is not limited thereto. Any non-creative changes that can be thought of by a person skilled in the art, as well as several improvements and modifications made without departing from the principle of the present invention, should fall within the protection scope of the present invention.

Claims

1. A method for internal interface request security authentication, It is characterized in that The following steps are involved: An authentication toolkit is integrated for business applications, wherein the authentication toolkit encapsulates methods and tools for calling authentication center services; Deploy an authentication center in the internal trusted network, wherein the authentication center includes authentication services and authorization services; The business application runs the authentication toolkit to interact with the authentication center. The authentication center calls the authentication service and the authorization service to perform security authentication on the internal interface requests of the business application based on the business application token information.

2. The internal interface request security authentication method according to claim 1, It is characterized in that The business application runs the authentication toolkit to interact with the authentication center. The authentication center calls the authentication service and the authorization service to perform security authentication on the internal interface requests of the business application based on the business application token information, including: The first business application calls the authentication center authentication interface to obtain token information, which is recorded as initial token information, and sends the initial token information to the authentication center; The authentication center calls the authentication service to perform an authentication operation on the first business application; If the authentication is successful, the authentication information and the initial token information are encapsulated to obtain the encapsulated token information; Return the encapsulated token to the first business application; The first business application calls the interface service of the second business application, and the calling request is accompanied by encapsulated token information; The second business application calls the authentication center authentication interface, so that the authentication center calls the authentication service to verify the encapsulated token information and feeds back the verification result to the second business application; If the verification succeeds, the second business application executes the business operation and returns the operation result to the first business application; if the verification fails, the second business application returns the operation failure to the first business application.

3. The internal interface request security authentication method according to claim 2, It is characterized in that When the first service application sends the initial token information to the authentication center, it carries its own IP address and the second service application IP address.

4. The internal interface request security authentication method according to claim 3, It is characterized in that The authentication center calls the authentication service to perform authentication operations on the first business application, specifically including: Check whether IP whitelist authentication is available; If it is not enabled, the authentication is directly determined to be passed; If enabled, use the IP whitelist to perform IP authentication on the first service application; If the first service application IP is in the IP whitelist, the authentication is determined to be successful, otherwise the authentication is failed.

5. The internal interface request security authentication method according to claim 3 or 4, It is characterized in that The authentication information includes the first service application IP, the second service application IP, the number of authentication times, and the token expiration time.

6. The internal interface request security authentication method according to claim 3 or 4, It is characterized in that Before the authentication center calls the authentication service to verify the encapsulated token information, the following steps are also included: The first service application IP and the second service application IP are saved.

7. The internal interface request security authentication method according to claim 6, It is characterized in that The authentication center calls the authentication service to verify the encapsulated token information, including: Parse the encapsulated token; If the parsing fails, feedback of verification failure is sent to the second service application; If the resolution is successful, obtain the first service application IP; The currently acquired first service application IP is compared with the saved first service application IP for consistency. If they are inconsistent, a verification failure is fed back to the second service application. If they are consistent, the second service application IP is obtained. Compare the currently acquired second service application IP with the saved second service application IP for consistency. If they are inconsistent, feedback verification failure to the second service application. If they are consistent, check whether the number of authentication times does not exceed the preset number of authentication times. If not, feedback verification failure to the second service application. If so, check whether the token is invalid according to the preset token expiration time. If the token is invalid, a verification failure is fed back to the second service application; if the token is valid, a verification success is fed back to the second service application.

8. The internal interface request security authentication method according to claim 1, It is characterized in that The authentication center also includes a log service. When the authentication center calls the authentication service and the authorization service to perform security authentication on the internal interface requests of the business application, it also calls the log service to log the security authentication process.

9. A terminal, It is characterized in that include: A memory, used for storing an internal interface request security authentication program; A processor, used to implement the steps of the internal interface request security authentication method as described in any one of claims 1-7 when executing the internal interface request security authentication program.

10. A computer-readable storage medium, It is characterized in that The readable storage medium stores an internal interface request security authentication program, and when the internal interface request security authentication program is executed by the processor, the steps of the internal interface request security authentication method as described in any one of claims 1-7 are implemented.

Citation Information

Patent Citations

  • Access management method and system for multiple application systems

    CN105225072A

  • Remote two-way access control system and method based on trusted computing

    CN106789059A

  • Open API full-life-cycle management method based on micro-service

    CN111181727A

  • Service integration method for distributed heterogeneous resources

    CN111435940A

  • Client creating method, application resource calling method and device

    CN116820422A