Service access method and device, equipment and storage medium
By generating the authentication process and performing authentication processing in the authentication node, the problems of low flexibility in the service access process and insufficient data security are solved, and the flexibility and security of service access are improved.
Patent Information
- Application Number
- CN202410830638.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-10-22
AI Technical Summary
The flexibility of the service access process in the existing technology is low, resulting in high server development costs and threats to data security, and the authentication policy cannot be personalized according to different back-end service functions.
Intercept the service request in the authentication node, generate an authentication process based on the mapping relationship between the pre-stored reference service and the authentication policy, perform authentication processing on the attribute information, and decide whether to forward the request to the target server based on the authentication result. Supports the orchestration and priority management of multiple authentication policies, including network addresses, keys, identities, and custom policies.
It improves the flexibility of service access and data security, reduces the development difficulty of the server, realizes the automation of the authentication process, avoids abnormal information transmission, and enhances the permission management of the service requester.
Smart Images

Figure CN118827166A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data analysis, and in particular to a service access method, device, equipment and storage medium. Background Art
[0002] With the continuous development of technology, more and more devices can act as servers to provide various services for access by service requesters.
[0003] In the related art, in order to ensure the security when accessing services, each server is usually required to authenticate the service requester based on the service access request when receiving the service access request. When it is determined that the service requester has the right to access the service, the server will provide the corresponding service to the service requester. Otherwise, the server will not provide the service to the service requester.
[0004] However, since there are many servers that can provide services and the authentication strategies are also diverse, the authentication strategies of each server may be exactly the same, partially the same, or different. Therefore, each server needs to write a corresponding authentication strategy during development, which makes the development cost of the server high.
[0005] At the same time, since the service request end can be directly linked to the server, the server needs to be configured to receive information sent by multiple objects. In this case, the server is prone to receive abnormal information sent by abnormal objects, which threatens the data security of the server.
[0006] It can be seen that the flexibility of the service access process under the relevant technology is relatively low. Summary of the invention
[0007] Embodiments of the present application provide a service access method, apparatus, device, and storage medium for solving the problem of low flexibility in the service access process.
[0008] In a first aspect, a service access method is provided, which is applied to an authentication node, comprising:
[0009] Intercepting a service access request sent by a service request end to a target service end; wherein the service access request indicates: attribute information of the service request end, and a target service requested to be accessed by the service request end;
[0010] Based on a first mapping relationship between each pre-stored reference service and each authentication policy, determine a plurality of authentication policies matching the target service, and generate an authentication process;
[0011] Performing authentication processing on the attribute information based on the authentication process to obtain an authentication result;
[0012] When it is determined based on the authentication result that the service request end has the right to access the target service, the service access request is forwarded to the target service end so that the target service end provides the target service to the service request end.
[0013] Optionally, the determining, based on the first mapping relationship between each pre-stored reference service and each authentication policy, a plurality of authentication policies matching the target service and generating an authentication process includes:
[0014] Determine a plurality of authentication policies matching the target service based on a first mapping relationship between each pre-stored reference service and each authentication policy;
[0015] Based on the pre-stored authentication processing complexity corresponding to each of the authentication policies, arrange the multiple authentication policies in ascending order of the authentication processing complexity corresponding to the multiple authentication policies to generate an authentication process; or,
[0016] Based on the pre-stored authentication priorities corresponding to each of the authentication strategies, the multiple authentication strategies are arranged in descending order of the authentication priorities corresponding to the multiple authentication strategies to generate an authentication process; wherein the authentication priority is used to characterize the correlation between the corresponding authentication strategy and the target service; the authentication priority is positively correlated with the correlation.
[0017] Optionally, when the attribute information includes a network address of the service requester and the multiple authentication strategies include a network address authentication strategy, performing authentication processing on the attribute information based on the authentication process to obtain an authentication result includes:
[0018] When determining based on the authentication process to use the network address authentication strategy to authenticate the network address in the attribute information, obtaining a pre-stored network address whitelist;
[0019] When it is determined that the network address whitelist includes the network address, continuing to perform authentication processing on the attribute information based on the authentication process to obtain an authentication result;
[0020] When it is determined that the network address whitelist does not include the network address, an authentication result is generated indicating that the service request end has no right to access the target service.
[0021] Optionally, the attribute information includes a private key configured by the authentication node for the service requester, and when the multiple authentication strategies include a key authentication strategy, the authentication process is performed on the attribute information based on the authentication process to obtain an authentication result, including:
[0022] When determining based on the authentication process to use the key authentication strategy to authenticate the private key in the attribute information, obtaining the public key configured by the authentication node for the service requester;
[0023] When it is determined that the public key matches the private key, continue to perform authentication processing on the attribute information based on the authentication process to obtain an authentication result;
[0024] When it is determined that the public key does not match the private key, an authentication result is generated indicating that the service request end has no right to access the target service.
[0025] Optionally, the attribute information includes a request identifier of the service request end, and the request identifier is used to uniquely identify the service request end; when the multiple authentication strategies include an identifier authentication strategy, the authentication process is performed on the attribute information based on the authentication process to obtain an authentication result, including:
[0026] When determining to use the identification authentication strategy to authenticate the attribute information based on the authentication process, obtaining a second mapping relationship between each pre-stored reference identification and each service interface; wherein the service interface is used to link to the server where the corresponding service is located;
[0027] When it is determined based on the second mapping relationship that at least one service interface corresponding to the request identifier includes a target interface for linking to the server where the target service is located, continue to perform authentication processing on the attribute information based on the authentication process to obtain an authentication result;
[0028] When it is determined based on the second mapping relationship that the at least one service interface does not include the target interface, an authentication result indicating that the service request end has no right to access the target service is generated.
[0029] Optionally, when the multiple authentication strategies include a custom authentication strategy, the performing authentication processing on the attribute information based on the authentication process to obtain an authentication result includes:
[0030] When determining to use the custom authentication strategy to authenticate the attribute information based on the authentication process, obtaining a third mapping relationship between each pre-stored reference service and each attribute field;
[0031] When it is determined based on the third mapping relationship that the attribute information contains the attribute field corresponding to the target service, continue to perform authentication processing on the attribute information based on the authentication process to obtain an authentication result;
[0032] When it is determined based on the third mapping relationship that the attribute information does not include an attribute field corresponding to the target service, an authentication result indicating that the service request end has no right to access the target service is generated.
[0033] Optionally, when the target service is associated with an access count threshold, the step of determining multiple authentication policies matching the target service based on a first mapping relationship between pre-stored reference services and authentication policies, and generating an authentication process includes:
[0034] Obtaining statistics on the number of visits to the target service within a preset time period;
[0035] When it is determined that the access count is not greater than the access count threshold, multiple authentication policies matching the target service are determined based on pre-stored first mapping relationships between reference services and authentication policies, and an authentication process is generated.
[0036] Optionally, before intercepting the service access request sent by the service request end to the target server end, the method further includes:
[0037] Receiving a permission configuration request sent by the service request end; wherein the permission configuration request includes authentication information of the service request end;
[0038] Generate a key pair based on the authentication information; wherein the key pair includes a public key and a private key;
[0039] Send the private key to the service requester.
[0040] Optionally, after forwarding the service access request to the target server, the method further includes:
[0041] Receiving a permission change instruction sent by the target service end; wherein the permission change instruction indicates: a change processing strategy for changing at least one authentication strategy corresponding to the target service in the first mapping relationship;
[0042] Based on the change processing strategy indicated by the permission change instruction, at least one authentication strategy corresponding to the target service in the first mapping relationship is changed to obtain an updated first mapping relationship.
[0043] In a second aspect, a service access device is provided, which is applied to an authentication node, including:
[0044] Acquisition module: used to intercept the service access request sent by the service request end to the target service end; wherein the service access request indicates: attribute information of the service request end, and the target service requested to be accessed by the service request end;
[0045] Processing module: used to determine multiple authentication policies matching the target service based on the first mapping relationship between each pre-stored reference service and each authentication policy, and generate an authentication process;
[0046] The processing module is further used to: perform authentication processing on the attribute information based on the authentication process to obtain an authentication result;
[0047] The processing module is further used for: when it is determined based on the authentication result that the service request end has the right to access the target service, forwarding the service access request to the target service end so that the target service end provides the target service to the service request end.
[0048] Optionally, the processing module is specifically used for:
[0049] Determine a plurality of authentication policies matching the target service based on a first mapping relationship between each pre-stored reference service and each authentication policy;
[0050] Based on the pre-stored authentication processing complexity corresponding to each of the authentication policies, arrange the multiple authentication policies in ascending order of the authentication processing complexity corresponding to the multiple authentication policies to generate an authentication process; or,
[0051] Based on the pre-stored authentication priorities corresponding to each of the authentication strategies, the multiple authentication strategies are arranged in descending order of the authentication priorities corresponding to the multiple authentication strategies to generate an authentication process; wherein the authentication priority is used to characterize the correlation between the corresponding authentication strategy and the target service; the authentication priority is positively correlated with the correlation.
[0052] Optionally, when the attribute information includes a network address of the service requester and the multiple authentication strategies include a network address authentication strategy, the processing module is specifically configured to:
[0053] When determining based on the authentication process to use the network address authentication strategy to authenticate the network address in the attribute information, obtaining a pre-stored network address whitelist;
[0054] When it is determined that the network address whitelist includes the network address, continuing to perform authentication processing on the attribute information based on the authentication process to obtain an authentication result;
[0055] When it is determined that the network address whitelist does not include the network address, an authentication result is generated indicating that the service request end has no right to access the target service.
[0056] Optionally, the attribute information includes a private key configured by the authentication node for the service requester, and when the multiple authentication strategies include a key authentication strategy, the processing module is specifically used to:
[0057] When determining based on the authentication process to use the key authentication strategy to authenticate the private key in the attribute information, obtaining the public key configured by the authentication node for the service requester;
[0058] When it is determined that the public key matches the private key, continue to perform authentication processing on the attribute information based on the authentication process to obtain an authentication result;
[0059] When it is determined that the public key does not match the private key, an authentication result is generated indicating that the service request end has no right to access the target service.
[0060] Optionally, the attribute information includes a request identifier of the service request end, and the request identifier is used to uniquely identify the service request end; when the multiple authentication strategies include an identifier authentication strategy, the processing module is specifically used to:
[0061] When determining to use the identification authentication strategy to authenticate the attribute information based on the authentication process, obtaining a second mapping relationship between each pre-stored reference identification and each service interface; wherein the service interface is used to link to the server where the corresponding service is located;
[0062] When it is determined based on the second mapping relationship that at least one service interface corresponding to the request identifier includes a target interface for linking to the server where the target service is located, continue to perform authentication processing on the attribute information based on the authentication process to obtain an authentication result;
[0063] When it is determined based on the second mapping relationship that the at least one service interface does not include the target interface, an authentication result indicating that the service request end has no right to access the target service is generated.
[0064] Optionally, when the multiple authentication strategies include a custom authentication strategy, the processing module is specifically used to:
[0065] When determining to use the custom authentication strategy to authenticate the attribute information based on the authentication process, obtaining a third mapping relationship between each pre-stored reference service and each attribute field;
[0066] When it is determined based on the third mapping relationship that the attribute information contains the attribute field corresponding to the target service, continue to perform authentication processing on the attribute information based on the authentication process to obtain an authentication result;
[0067] When it is determined based on the third mapping relationship that the attribute information does not include an attribute field corresponding to the target service, an authentication result indicating that the service request end has no right to access the target service is generated.
[0068] Optionally, when the target service is associated with an access count threshold, the processing module is specifically configured to:
[0069] Obtaining statistics on the number of visits to the target service within a preset time period;
[0070] When it is determined that the access count is not greater than the access count threshold, multiple authentication policies matching the target service are determined based on pre-stored first mapping relationships between reference services and authentication policies, and an authentication process is generated.
[0071] Optionally, the processing module is further used for:
[0072] Before intercepting the service access request sent by the service request end to the target service end, receiving a permission configuration request sent by the service request end; wherein the permission configuration request includes authentication information of the service request end;
[0073] Generate a key pair based on the authentication information; wherein the key pair includes a public key and a private key;
[0074] Send the private key to the service requester.
[0075] Optionally, the processing module is further used for:
[0076] After forwarding the service access request to the target server, receiving a permission change instruction sent by the target server; wherein the permission change instruction indicates: a change processing strategy for changing at least one authentication strategy corresponding to the target service in the first mapping relationship;
[0077] Based on the change processing strategy indicated by the permission change instruction, at least one authentication strategy corresponding to the target service in the first mapping relationship is changed to obtain an updated first mapping relationship.
[0078] According to a third aspect, a computer program product is provided, comprising a computer program, which implements the method according to the first aspect when executed by a processor.
[0079] According to a fourth aspect, a computer device is provided, comprising:
[0080] A memory for storing program instructions;
[0081] The processor is used to call the program instructions stored in the memory and execute the method as described in the first aspect according to the obtained program instructions.
[0082] According to a fifth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method described in the first aspect.
[0083] In an embodiment of the present application, an authentication node is set between the service request end and the target service end, so that the authentication node can intercept the service access request and perform authentication processing on the service request end, thereby avoiding situations such as abnormal objects sending abnormal information to the target service end, and improving data security.
[0084] Furthermore, any service requester and any target server can perform authentication processing through the authentication node, without the need to develop authentication policies in each server, thus reducing the difficulty of server development; at the same time, all authentication policies are managed uniformly on the same authentication node, so for servers using the same authentication policy, the same authentication policy can be reused, thus avoiding unnecessary development processes and improving service access flexibility.
[0085] Furthermore, based on the first mapping relationship between each pre-stored reference service and each authentication strategy, a corresponding authentication process can be generated for the target service, thereby improving the automation level of the authentication process during service access, thereby improving service access flexibility. BRIEF DESCRIPTION OF THE DRAWINGS
[0086] Figure 1 An application scenario of the service access method provided in the embodiment of the present application;
[0087] Figure 2 A flow chart of a service access method provided in an embodiment of the present application;
[0088] Figure 3 A schematic diagram of a service access method provided in an embodiment of the present application Figure 1 ;
[0089] Figure 4 An interactive diagram of the service access method provided in the embodiment of the present application Figure 1 ;
[0090] Figure 5 A schematic diagram of a service access method provided in an embodiment of the present application Figure 2 ;
[0091] Figure 6 An interactive diagram of the service access method provided in the embodiment of the present application Figure 2 ;
[0092] Figure 7 A schematic diagram of a service access method provided in an embodiment of the present application Figure 3 ;
[0093] Figure 8 A structural diagram of a service access device provided in an embodiment of the present application Figure 1 ;
[0094] Fig. 9 A structural diagram of a service access device provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION
[0095] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be arbitrarily combined with each other. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.
[0096] The terms "first" and "second" in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of their variations are intended to cover non-exclusive protection. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. "Multiple" in the present application can mean at least two, for example, two, three or more, and the embodiments of the present application are not limited.
[0097] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description. It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, which should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0098] In the technical solution of this application, the acquisition, transmission, storage, and use of data are in compliance with the requirements of relevant national laws and regulations.
[0099] The following is a brief introduction to the application fields of the service access method provided in the embodiment of the present application.
[0100] With the continuous development of technology, more and more devices can act as servers to provide various services for access by service requesters.
[0101] In the related art, in order to ensure the security when accessing services, each server is usually required to authenticate the service requester based on the service access request when receiving the service access request. When it is determined that the service requester has the right to access the service, the server will provide the corresponding service to the service requester. Otherwise, the server will not provide the service to the service requester.
[0102] However, since there are many servers that can provide services and the authentication strategies are also diverse, the authentication strategies of each server may be exactly the same, partially the same, or different. Therefore, each server needs to write a corresponding authentication strategy during development, which makes the development cost of the server high.
[0103] At the same time, since the service request end can be directly linked to the server, the server needs to be configured to receive information sent by multiple objects. In this case, the server is prone to receive abnormal information sent by abnormal objects, which threatens the data security of the server.
[0104] The authentication processes set in the related technologies are all fixed processes, and cannot be personalized according to different backend service functions. When the backend function needs to add or delete the authentication strategy, the authentication service needs to be suspended and the authentication strategy needs to be redeveloped, which reduces the flexibility of the service access process.
[0105] It can be seen that the flexibility of the service access process under the relevant technology is relatively low.
[0106] In order to solve the problem of low flexibility in the service access process, the present application proposes a service access method. The method is applied to an authentication node, and the authentication node intercepts a service access request sent by a service request end to a target service end. The service access request indicates: attribute information of the service request end, and the target service that the service request end requests to access. Based on the first mapping relationship between each pre-stored reference service and each authentication policy, multiple authentication policies that match the target service are determined, and an authentication process is generated. The attribute information is authenticated based on the authentication process to obtain an authentication result. When it is determined based on the authentication result that the service request end has the right to access the target service, the service access request is forwarded to the target service end, so that the target service end provides the target service to the service request end.
[0107] In an embodiment of the present application, an authentication node is set between the service request end and the target service end, so that the authentication node can intercept the service access request and perform authentication processing on the service request end, thereby avoiding situations such as abnormal objects sending abnormal information to the target service end, and improving data security.
[0108] Furthermore, any service requester and any target server can perform authentication processing through the authentication node, without the need to develop authentication policies in each server, thus reducing the difficulty of server development; at the same time, all authentication policies are managed uniformly on the same authentication node, so for servers using the same authentication policy, the same authentication policy can be reused, thus avoiding unnecessary development processes and improving service access flexibility.
[0109] Furthermore, based on the first mapping relationship between each pre-stored reference service and each authentication strategy, a corresponding authentication process can be generated for the target service, thereby improving the automation level of the authentication process during service access, thereby improving service access flexibility.
[0110] The following describes the application scenarios of the service access method provided by this application.
[0111] Please refer to Figure 1 , is a schematic diagram of an application scenario of the service access method provided by the present application. The application scenario includes a client 101 and a server 102. The client 101 and the server 102 can communicate with each other, and the communication method can be to use wired communication technology for communication, for example, by connecting a network cable or a serial port line for communication; or to use wireless communication technology for communication, for example, by using Bluetooth or wireless fidelity (wireless fidelity, WIFI) and other technologies for communication, without specific limitation.
[0112] The client 101 generally refers to a device that can send a service access request, for example, a terminal device, a third-party application that the terminal device can access, or a web page that the terminal device can access. Terminal devices include but are not limited to mobile phones, computers, smart medical devices, smart home appliances, vehicle-mounted terminals or aircraft, etc. The server 102 generally refers to a device that can perform authentication processing, such as a terminal device or a server. The server includes but is not limited to a cloud server, a local server or an associated third-party server, etc. Both the client 101 and the server 102 can use cloud computing to reduce the occupation of local computing resources; cloud storage can also be used to reduce the occupation of local storage resources.
[0113] Please refer to Figure 2 , which is a flow chart of the service access method provided in an embodiment of the present application.
[0114] S201, intercepting a service access request sent by a service requester to a target server.
[0115] When the service request end needs to use the target service provided by the target server, it can send a service access request to the target server. Thus, the authentication node can intercept the service access request sent by the service request end to the target server to authenticate the service request end based on the service access request.
[0116] The service access request may indicate the attribute information of the service request end and the target service that the service request end requests to access. The attribute information of the service request end may be various, such as the network (Internet Protocol, IP) address of the service request end, the identity information of the service request end, etc., without specific limitation.
[0117] The service access request can be sent using protocols such as HTTP, HTTPS, and RPC, so that the authentication node can parse the service access request based on the sending protocol after intercepting the service access request to obtain the attribute information and target service, etc.
[0118] The authentication node can intercept service access requests by continuously detecting the network ports of each server.
[0119] As an embodiment, before the authentication node intercepts the service access request, the service requester may send a permission configuration request to the authentication node so that the authentication node can perform a preliminary authentication on the service requester to improve the security of accessing the service.
[0120] The authentication node receives the permission configuration request sent by the service request end, and the permission configuration request includes the authentication information of the service request end. The authentication information is used for the authentication node to perform preliminary authentication on the service request end. For example, the authentication information can be the qualification certification of the enterprise, or the device type of the terminal device, account login information, etc., without specific restrictions.
[0121] The authentication node can generate a key pair based on the authentication information, the key pair includes a public key and a private key, and the authentication node sends the private key to the service request end. The service request end can carry the private key in the service access request sent for authentication processing.
[0122] The authentication node can generate a key based on the authentication information when it determines that there is a reference authentication that matches the authentication information based on a pre-stored reference authentication; it can also generate a key based on the authentication information when the management account triggers a confirmation operation for the authentication information, etc., without specific restrictions.
[0123] S202: Based on the pre-stored first mapping relationship between each reference service and each authentication policy, determine a plurality of authentication policies matching the target service and generate an authentication process.
[0124] After obtaining the service access request, the authentication node may determine multiple authentication policies that match the target service based on the pre-stored first mapping relationship between each reference service and each authentication policy, and generate an authentication process.
[0125] As an embodiment, when generating an authentication process, the order of multiple authentication policies can be determined based on the authentication processing complexity or authentication priority of each of the matched authentication policies. For example, after determining multiple authentication policies that match the target service based on the first mapping relationship between each pre-stored reference service and each authentication policy, multiple authentication policies can be arranged in order from small to large based on the authentication processing complexity corresponding to each of the pre-stored authentication policies to generate an authentication process. Then, when an authentication policy with a smaller authentication processing complexity fails to pass authentication, the authentication processing process of the subsequent authentication policy with a larger authentication processing complexity can be omitted to reduce unnecessary resource occupation.
[0126] For another example, after determining multiple authentication policies that match the target service based on the first mapping relationship between each pre-stored reference service and each authentication policy, it is also possible to arrange multiple authentication policies in descending order based on the authentication priorities corresponding to each pre-stored authentication policy to generate an authentication process. The authentication priority is used to characterize the relevance between the corresponding authentication policy and the target service; the authentication priority is positively correlated with the relevance. Then, the authentication policy that is most relevant to the target service can be authenticated first. When the authentication policy that is most relevant to the target service fails to pass the authentication, other authentication policies that are less relevant to the target service can be omitted, which can also reduce unnecessary resource usage.
[0127] As an embodiment, each service may be set with an access count threshold. Then, when the target service is associated with an access count threshold, the authentication node may first obtain the statistical access count of the target service within a preset time period. When it is determined that the access count is not greater than the access count threshold, multiple authentication policies matching the target service are determined based on the first mapping relationship between each pre-stored reference service and each authentication policy, and an authentication process is generated. When it is determined that the access count is greater than the access count threshold, access failure information is returned to the service request end, indicating that the target service has reached the access count limit within the preset time period, and prompting to try to access the target service again in other time periods.
[0128] S203: Authenticate the attribute information based on the authentication process to obtain an authentication result.
[0129] After obtaining the authentication process, the attribute information can be authenticated based on the authentication process to obtain the authentication result. There can be multiple authentication strategies included in the authentication process. The following takes several of them as examples to introduce the authentication process.
[0130] Authentication strategy 1:
[0131] If the attribute information includes the network address of the service requester, and multiple authentication policies in the authentication process include the network address authentication policy, then when it is determined based on the authentication process that the network address in the attribute information is authenticated using the network address authentication policy, a pre-stored network address whitelist is obtained. When it is determined that the network address whitelist contains the network address, the attribute information is authenticated based on the authentication process to obtain an authentication result. When it is determined that the network address whitelist does not contain the network address, an authentication result is generated that indicates that the service requester has no right to access the target service.
[0132] Authentication strategy 2:
[0133] If the attribute information includes a private key configured by the authentication node for the service requester, and the multiple authentication policies include a key authentication policy, then when the key authentication policy is used to authenticate the private key in the attribute information based on the authentication process, the public key configured by the authentication node for the service requester is obtained. When it is determined that the public key matches the private key, the attribute information is authenticated based on the authentication process to obtain an authentication result. When it is determined that the public key does not match the private key, an authentication result is generated that indicates that the service requester has no right to access the target service.
[0134] Authentication strategy three:
[0135] If the attribute information includes a request identifier of the service request end, and the request identifier is used to uniquely characterize the service request end, then when multiple authentication strategies include an identifier authentication strategy, it can be determined based on the authentication process that the identifier authentication strategy is used to authenticate the attribute information, and then obtain the second mapping relationship between each pre-stored reference identifier and each service interface. The service interface is used to link the server where the corresponding service is located. Based on the second mapping relationship, when it is determined that at least one service interface corresponding to the request identifier contains a target interface for linking the server where the target service is located, continue to authenticate the attribute information based on the authentication process to obtain an authentication result. Based on the second mapping relationship, when it is determined that at least one service interface does not contain a target interface, an authentication result is generated that indicates that the service request end has no right to access the target service.
[0136] Authentication strategy four:
[0137] If multiple authentication strategies include a custom authentication strategy, and it is determined based on the authentication process that the custom authentication strategy is used to authenticate the attribute information, then a third mapping relationship between each pre-stored reference service and each attribute field can be obtained. Based on the third mapping relationship, when it is determined that the attribute information contains the attribute field corresponding to the target service, the attribute information is further authenticated based on the authentication process to obtain an authentication result. Based on the third mapping relationship, when it is determined that the attribute information does not contain the attribute field corresponding to the target service, an authentication result is generated indicating that the service request end has no right to access the target service.
[0138] When each authentication strategy in the authentication process passes the authentication, an authentication result can be generated to indicate that the service requester has the right to access the target service.
[0139] S204: When it is determined based on the authentication result that the service requester has the right to access the target service, the service access request is forwarded to the target serviceer.
[0140] When it is determined based on the authentication result that the service requester has the right to access the target service, the service access request is forwarded to the target service end, so that the target service end provides the target service to the service requester.
[0141] As an embodiment, the authentication node can change the authentication policy in the pre-stored first mapping relationship, such as adding, deleting, modifying and viewing, to improve the flexibility of the authentication process, thereby improving the flexibility of accessing services.
[0142] When the authentication node receives the permission change instruction sent by the target service end, since the permission change instruction indicates a change processing strategy for changing at least one authentication strategy corresponding to the target service in the first mapping relationship, the at least one authentication strategy corresponding to the target service in the first mapping relationship can be changed based on the change processing strategy indicated by the permission change instruction to obtain an updated first mapping relationship.
[0143] For example, if the permission change instruction instructs to delete at least one authentication policy corresponding to the target service, then at least one authentication policy corresponding to the target service can be deleted in the first mapping relationship; for another example, if the permission change instruction instructs to modify at least one authentication policy corresponding to the target service, then at least one authentication policy corresponding to the target service in the first mapping relationship can be modified based on the change processing strategy; for another example, if the permission change instruction instructs to add at least one authentication policy corresponding to the target service, then the at least one authentication policy can be generated based on the change processing strategy, and the correspondence between the target service and the at least one authentication policy can be stored in the first mapping relationship, etc., without specific limitation.
[0144] The following is an example of the service access method provided in the embodiment of the present application. Please refer to Figure 3It includes a service request end, an authentication node and a target service end. The service request end includes a first service request end, a second service request end and a third service request end; the authentication node includes an information management module, an interface management module, a control management module and a load balancing module; the target service end includes a first target service end, a second target service end and a third target service end.
[0145] Please refer to Figure 4 , which is the interaction flow chart between the service requester, the authentication node and the target server.
[0146] S401, a first service request end sends a permission configuration request to an authentication node, and an information management module in the authentication node receives the permission configuration request sent by the first service request end.
[0147] S402: The information management module sends a private key to the first service request end based on the authority configuration request.
[0148] S403, the first service request end sends a service access request to the control management module in the authentication node, and the control management module in the authentication node receives the service access request sent by the first service request end. The service access request carries a private key.
[0149] S404: The control management module determines multiple authentication policies that match the target service indicated by the service access request based on the pre-stored first mapping relationship between each reference service and each authentication policy, and generates an authentication process.
[0150] S405, the control management module authenticates the attribute information based on the authentication process to obtain an authentication result. If the authentication result indicates that the service request end has the right to access the target service, S406 is executed, otherwise feedback information indicating that the service request end has no right to access is returned to the service request end.
[0151] S406, when the control management module determines that the service request end has the right to access the target service based on the authentication result, the interface management module in the authentication node sends the service access request to the load balancing module in the authentication node, and the load balancing module receives the service access request sent by the interface management module.
[0152] S407: The load balancing module determines the first target server with the smallest current processing resource occupancy rate among the first target server and the second target server that can provide the target service.
[0153] S408: The interface management module calls the communication interface of the first target server and forwards the service access request to the first target server, so that the first target server provides the target service for the first service requester.
[0154] Please refer to Figure 5, including the information management module, interface management module and control management module in the authentication node. Please refer to Figure 6 , which is a schematic diagram of the interaction between the information management module, the interface management module and the control management module.
[0155] S601, the information management module receives a permission configuration request sent by a service request end.
[0156] S602, the information management module generates a key pair based on the authentication information in the permission configuration request, and the key pair includes a public key and a private key.
[0157] S603: The information management module sends a private key to the first service request end.
[0158] S604: The control management module receives a service access request sent by the service request end. The service access request carries a private key.
[0159] S605: The control management module determines multiple authentication policies that match the target service indicated by the service access request based on the pre-stored first mapping relationship between each reference service and each authentication policy, and generates an authentication process.
[0160] S606, when the control management module determines to use the network address authentication strategy to authenticate the network address included in the attribute information in the service access request based on the authentication process, it determines whether the network address is included in the network address whitelist. If it is determined that the network address is included, execute S607; otherwise, execute S611.
[0161] S607, when the control management module determines that the network address is included, it determines to continue to use the key authentication strategy to authenticate the private key in the attribute information to determine whether the public key and the private key match. If they match, execute S608, otherwise execute S611.
[0162] S608, when the control management module determines a match, determines to continue to use the identification authentication strategy to authenticate the request identification in the attribute information, and determines whether the at least one service interface corresponding to the request identification in the second mapping relationship includes a target interface for linking to the server where the target service is located. If it is determined that the target interface is included, execute S609, otherwise execute S611.
[0163] S609, when the control management module determines that the target interface is included, it determines to use the custom authentication strategy to authenticate the attribute information, and determines whether the attribute information contains the attribute field corresponding to the target service based on the third mapping relationship. If it is determined that the attribute field is included, execute S610, otherwise execute S611.
[0164] S610, the control management module generates an authentication result indicating that the service requesting end has the right to access the target service, and then continues to execute S612.
[0165] S611, the control management module generates an authentication result indicating that the service requesting end has no right to access the target service.
[0166] S612: The interface management module forwards the service access request to the target server.
[0167] Please refer to Figure 7 , which is a schematic diagram of the technical architecture of the authentication node provided in the embodiment of the present application. The authentication node design developed based on the SpringBoot, Spring Cloud, Redis and MySQL technology stacks mainly implements the information management module, the interface management module and the control management module.
[0168] The authentication node uses Spring Boot as the basic framework to facilitate the rapid development and deployment of microservices. SpringCloud provides microservice governance capabilities to facilitate service registration discovery, configuration management, etc. Redis is a high-performance memory data structure storage used for caching and fast access to high-frequency data. MySQL is used as a persistent storage to store core data and logs in the system.
[0169] The authentication node is divided into three modules: information management module, interface management module and control management module, which are responsible for the management of API interface, the control of business process and the management of service request end access information respectively.
[0170] The authentication node provides an access point, namely, an API entry, for the service requester, so that the service requester can interact with the authentication node through this entry to exchange data or call services, including authentication, authorization and other security mechanisms to ensure that only authorized service requesters can access.
[0171] The authentication node includes IP whitelist verification. When the service requester attempts to access the server, the authentication node first checks whether the IP address of the service access requester is in the whitelist. This mechanism supports dynamic management, that is, the addition and deletion of IP addresses can take effect in real time.
[0172] Using Redis cache, the authentication node records the number of access requests for each unique ID, IP, and date to limit malicious access or prevent DDoS attacks. Every half hour, this access data will be synchronized to the MySQL database to analyze the trend of request access and help identify abnormal access patterns.
[0173] The subsequent verification steps are carried out through the authentication process, such as identity verification, permission verification, etc. If any link verification fails, the access is terminated immediately
[0174] If a link fails to be verified and the number of failures reaches the preset threshold, the system will automatically block the IP to prevent further illegal access. When the verification is completely passed, the request is distributed to the backend service through the server's load balancing strategy to ensure that the request can be processed efficiently and evenly, improving system availability and response speed.
[0175] The embodiments of the present application provide unified management of authorized access to the service request side, and implement visual monitoring of access to the service request side. In view of the shortcomings of the previous single fixed verification rule configuration, a dynamic solution is implemented that can flexibly, customarily, dynamically increase and decrease configuration rules, and dynamically configure authentication policies for delisting and delisting. The stability and security of the service side are improved. Abnormal access request monitoring is implemented, and the IP of abnormal requests is promptly blocked, and abnormal service request side access is shut down. Flexible control of the permission control of the service request side to access the service, flexible delisting and delisting authentication policies, and support for dynamic increase and decrease of authentication policies.
[0176] Based on the same inventive concept, the embodiment of the present application provides a service access device that can implement the functions corresponding to the aforementioned service access method. Figure 8 , the device includes an acquisition module 801 and a processing module 802, wherein:
[0177] Acquisition module 801: used to intercept a service access request sent by a service request end to a target service end; wherein the service access request indicates: attribute information of the service request end, and a target service that the service request end requests to access;
[0178] Processing module 802: used to determine multiple authentication policies matching the target service based on the first mapping relationship between each pre-stored reference service and each authentication policy, and generate an authentication process;
[0179] The processing module 802 is also used to: perform authentication processing on the attribute information based on the authentication process to obtain an authentication result;
[0180] The processing module 802 is further used to: when it is determined based on the authentication result that the service request end has the right to access the target service, forward the service access request to the target service end, so that the target service end provides the target service to the service request end.
[0181] Optionally, the processing module 802 is specifically configured to:
[0182] Determine multiple authentication policies matching the target service based on a first mapping relationship between each pre-stored reference service and each authentication policy;
[0183] Based on the authentication processing complexity corresponding to each pre-stored authentication strategy, arrange multiple authentication strategies in order of authentication processing complexity corresponding to each of the multiple authentication strategies from small to large, and generate an authentication process; or,
[0184] Based on the authentication priorities corresponding to each pre-stored authentication strategy, multiple authentication strategies are arranged in descending order of their corresponding authentication priorities to generate an authentication process; wherein the authentication priority is used to characterize the relevance between the corresponding authentication strategy and the target service; the authentication priority is positively correlated with the relevance.
[0185] Optionally, when the attribute information includes a network address of the service requester and the multiple authentication strategies include a network address authentication strategy, the processing module 802 is specifically used to:
[0186] When determining to use a network address authentication strategy to authenticate the network address in the attribute information based on the authentication process, obtaining a pre-stored network address whitelist;
[0187] When it is determined that the network address whitelist includes the network address, the attribute information is further authenticated based on the authentication process to obtain an authentication result;
[0188] When it is determined that the network address whitelist does not include the network address, an authentication result is generated indicating that the service requester has no right to access the target service.
[0189] Optionally, the attribute information includes a private key configured by the authentication node for the service requester, and when the multiple authentication strategies include a key authentication strategy, the processing module 802 is specifically used to:
[0190] When determining to use the key authentication strategy to authenticate the private key in the attribute information based on the authentication process, obtain the public key configured by the authentication node for the service requester;
[0191] When it is determined that the public key and the private key match, the attribute information is further authenticated based on the authentication process to obtain an authentication result;
[0192] When it is determined that the public key and the private key do not match, an authentication result is generated indicating that the service requester has no right to access the target service.
[0193] Optionally, the attribute information includes a request identifier of the service request end, and the request identifier is used to uniquely identify the service request end; when the multiple authentication strategies include an identifier authentication strategy, the processing module 802 is specifically used to:
[0194] When determining to use the identification authentication strategy to authenticate the attribute information based on the authentication process, obtaining a second mapping relationship between each pre-stored reference identifier and each service interface; wherein the service interface is used to link to the server where the corresponding service is located;
[0195] When it is determined based on the second mapping relationship that at least one service interface corresponding to the request identifier includes a target interface for linking to the server where the target service is located, the attribute information is authenticated based on the authentication process to obtain an authentication result;
[0196] When it is determined based on the second mapping relationship that the at least one service interface does not include the target interface, an authentication result indicating that the service requesting end has no right to access the target service is generated.
[0197] Optionally, when the multiple authentication strategies include a custom authentication strategy, the processing module 802 is specifically used to:
[0198] When it is determined based on the authentication process that the custom authentication strategy is used to authenticate the attribute information, a third mapping relationship between each pre-stored reference service and each attribute field is obtained;
[0199] When it is determined based on the third mapping relationship that the attribute information contains the attribute field corresponding to the target service, the attribute information is authenticated based on the authentication process to obtain an authentication result;
[0200] When it is determined based on the third mapping relationship that the attribute information does not include the attribute field corresponding to the target service, an authentication result indicating that the service requesting end has no right to access the target service is generated.
[0201] Optionally, when the target service is associated with an access count threshold, the processing module 802 is specifically configured to:
[0202] Obtain statistics on the number of visits to the target service within a preset time period;
[0203] When it is determined that the number of accesses is not greater than the access number threshold, multiple authentication policies matching the target service are determined based on the pre-stored first mapping relationship between each reference service and each authentication policy, and an authentication process is generated.
[0204] Optionally, the processing module 802 is further configured to:
[0205] Before intercepting the service access request sent by the service request end to the target server end, receiving a permission configuration request sent by the service request end; wherein the permission configuration request includes authentication information of the service request end;
[0206] Generate a key pair based on the authentication information; wherein the key pair includes a public key and a private key;
[0207] Send the private key to the service requester.
[0208] Optionally, the processing module 802 is further configured to:
[0209] After forwarding the service access request to the target server, receiving a permission change instruction sent by the target server; wherein the permission change instruction indicates: a change processing strategy for changing at least one authentication strategy corresponding to the target service in the first mapping relationship;
[0210] Based on the change processing strategy indicated by the permission change instruction, at least one authentication strategy corresponding to the target service in the first mapping relationship is changed to obtain an updated first mapping relationship.
[0211] Please refer to Fig. 9 , is a computer device 900 provided in an embodiment of the present application, and the computer device 900 can be, for example, Figure 1 The client 101 or the server 102 in the data storage program. The current version and the historical version of the data storage program and the application software corresponding to the data storage program can be installed on the computer device 900, and the computer device 900 includes a processor 980 and a memory 920. In some embodiments, the computer device 900 may include a display unit 940, and the display unit 940 includes a display panel 941 for displaying a user interactive operation interface, etc.
[0212] In a possible embodiment, the display panel 941 may be configured in the form of a liquid crystal display (LCD) or an organic light-emitting diode (OLED).
[0213] The processor 980 is used to read the computer program and then execute the method defined by the computer program. For example, the processor 980 reads the data storage program or file, so as to run the data storage program on the computer device 900 and display the corresponding interface on the display unit 940. The processor 980 may include one or more general-purpose processors and may also include one or more DSPs (Digital Signal Processors) to perform related operations to implement the technical solutions provided in the embodiments of the present application.
[0214] The memory 920 generally includes internal memory and external memory, and the internal memory may be a random access memory (RAM), a read-only memory (ROM), and a cache (CACHE), etc. The external memory may be a hard disk, an optical disk, a USB disk, a floppy disk, or a tape drive, etc. The memory 920 is used to store computer programs and other data, and the computer program includes applications corresponding to each client, etc. Other data may include data generated after the operating system or application is run, and the data includes system data (such as configuration parameters of the operating system) and user data. In the embodiment of the present application, the computer program is stored in the memory 920, and the processor 980 executes the computer program in the memory 920 to implement any of the methods discussed in the previous figure.
[0215] The display unit 940 is used to receive input digital information, character information or contact touch operation / contactless gesture, and generate signal input related to user settings and function control of the computer device 900. Specifically, in the embodiment of the present application, the display unit 940 may include a display panel 941. The display panel 941 is, for example, a touch screen, which can collect user touch operations on or near it (such as operations performed by the user using fingers, stylus, or any other suitable object or accessory on or on the display panel 941), and drive corresponding connection devices according to a pre-set program.
[0216] In a possible embodiment, the display panel 941 may include two parts: a touch detection device and a touch controller. The touch detection device detects the touch position of the player, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 980, and can receive and execute the command sent by the processor 980.
[0217] The display panel 941 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the display unit 940, in some embodiments, the computer device 900 may further include an input unit 930, which may include an image input device 931 and other input devices 932, wherein the other input devices may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.
[0218] In addition to the above, the computer device 900 may also include a power supply 990 for supplying power to other modules, an audio circuit 960, a near field communication module 970, and an RF circuit 910. The computer device 900 may also include one or more sensors 950, such as an acceleration sensor, a light sensor, a pressure sensor, etc. The audio circuit 960 specifically includes a speaker 961 and a microphone 962, etc. For example, the computer device 900 can collect the user's voice through the microphone 962 to perform corresponding operations, etc.
[0219] As an embodiment, the number of processors 980 may be one or more, and the processor 980 and the memory 920 may be coupled or relatively independently configured.
[0220] As an example, Fig. 9 The processor 980 in the embodiment can be used to implement the following Figure 8 The functions of the acquisition module 801 and the processing module 802 in .
[0221] As an example, Fig. 9The processor 980 in can be used to implement the corresponding functions of the server or terminal device discussed above.
[0222] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by a computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When the computer program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0223] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product, for example, through a computer program product, which is stored in a storage medium, including a computer program for a computer device to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
[0224] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A service access method, characterized in that: Applicable to authentication nodes, including: Intercepting a service access request sent by a service request end to a target service end; wherein the service access request indicates: attribute information of the service request end, and a target service requested to be accessed by the service request end; Based on a first mapping relationship between each pre-stored reference service and each authentication policy, determine a plurality of authentication policies matching the target service, and generate an authentication process; Performing authentication processing on the attribute information based on the authentication process to obtain an authentication result; When it is determined based on the authentication result that the service request end has the right to access the target service, the service access request is forwarded to the target service end so that the target service end provides the target service to the service request end.
2. The method according to claim 1, characterized in that The step of determining a plurality of authentication policies matching the target service based on a first mapping relationship between each pre-stored reference service and each authentication policy, and generating an authentication process, comprises: Determine a plurality of authentication policies matching the target service based on a first mapping relationship between each pre-stored reference service and each authentication policy; Based on the pre-stored authentication processing complexity corresponding to each of the authentication policies, arrange the multiple authentication policies in ascending order of the authentication processing complexity corresponding to the multiple authentication policies to generate an authentication process; or, Based on the pre-stored authentication priorities corresponding to each of the authentication strategies, the multiple authentication strategies are arranged in descending order of the authentication priorities corresponding to the multiple authentication strategies to generate an authentication process; wherein the authentication priority is used to characterize the correlation between the corresponding authentication strategy and the target service; the authentication priority is positively correlated with the correlation.
3. The method according to claim 1, characterized in that When the attribute information includes a network address of the service requester and the multiple authentication strategies include a network address authentication strategy, performing authentication processing on the attribute information based on the authentication process to obtain an authentication result includes: When determining based on the authentication process to use the network address authentication strategy to authenticate the network address in the attribute information, obtaining a pre-stored network address whitelist; When it is determined that the network address whitelist includes the network address, continuing to perform authentication processing on the attribute information based on the authentication process to obtain an authentication result; When it is determined that the network address whitelist does not include the network address, an authentication result is generated indicating that the service request end has no right to access the target service.
4. The method according to claim 1, characterized in that: The attribute information includes a private key configured by the authentication node for the service requester, and when the multiple authentication strategies include a key authentication strategy, performing authentication processing on the attribute information based on the authentication process to obtain an authentication result includes: When determining based on the authentication process to use the key authentication strategy to authenticate the private key in the attribute information, obtaining the public key configured by the authentication node for the service requester; When it is determined that the public key matches the private key, continue to perform authentication processing on the attribute information based on the authentication process to obtain an authentication result; When it is determined that the public key does not match the private key, an authentication result is generated indicating that the service request end has no right to access the target service.
5. The method according to claim 1, characterized in that The attribute information includes a request identifier of the service request end, and the request identifier is used to uniquely identify the service request end; When the multiple authentication strategies include an identification authentication strategy, performing authentication processing on the attribute information based on the authentication process to obtain an authentication result includes: When determining to use the identification authentication strategy to authenticate the attribute information based on the authentication process, obtaining a second mapping relationship between each pre-stored reference identification and each service interface; wherein the service interface is used to link to the server where the corresponding service is located; When it is determined based on the second mapping relationship that at least one service interface corresponding to the request identifier includes a target interface for linking to the server where the target service is located, continue to perform authentication processing on the attribute information based on the authentication process to obtain an authentication result; When it is determined based on the second mapping relationship that the at least one service interface does not include the target interface, an authentication result indicating that the service request end has no right to access the target service is generated.
6. The method according to claim 1, characterized in that When the multiple authentication strategies include a user-defined authentication strategy, performing authentication processing on the attribute information based on the authentication process to obtain an authentication result includes: When determining to use the custom authentication strategy to authenticate the attribute information based on the authentication process, obtaining a third mapping relationship between each pre-stored reference service and each attribute field; When it is determined based on the third mapping relationship that the attribute information contains the attribute field corresponding to the target service, continue to perform authentication processing on the attribute information based on the authentication process to obtain an authentication result; When it is determined based on the third mapping relationship that the attribute information does not include an attribute field corresponding to the target service, an authentication result indicating that the service request end has no right to access the target service is generated.
7. The method according to any one of claims 1 to 6, characterized in that: When the target service is associated with an access count threshold, the method determines multiple authentication policies matching the target service based on a first mapping relationship between each pre-stored reference service and each authentication policy, and generates an authentication process, including: Obtaining statistics on the number of visits to the target service within a preset time period; When it is determined that the access count is not greater than the access count threshold, multiple authentication policies matching the target service are determined based on pre-stored first mapping relationships between reference services and authentication policies, and an authentication process is generated.
8. The method according to any one of claims 1 to 6, characterized in that: Before intercepting the service access request sent by the service request end to the target service end, the method further includes: Receiving a permission configuration request sent by the service request end; wherein the permission configuration request includes authentication information of the service request end; Generate a key pair based on the authentication information; wherein the key pair includes a public key and a private key; Send the private key to the service requester.
9. The method according to any one of claims 1 to 6, characterized in that: After forwarding the service access request to the target server, the method further includes: Receiving a permission change instruction sent by the target service end; wherein the permission change instruction indicates: a change processing strategy for changing at least one authentication strategy corresponding to the target service in the first mapping relationship; Based on the change processing strategy indicated by the permission change instruction, at least one authentication strategy corresponding to the target service in the first mapping relationship is changed to obtain an updated first mapping relationship.
10. A service access device, characterized in that: Applicable to authentication nodes, including: Acquisition module: used to intercept the service access request sent by the service request end to the target service end; wherein the service access request indicates: attribute information of the service request end, and the target service requested to be accessed by the service request end; Processing module: used to determine multiple authentication policies matching the target service based on the first mapping relationship between each pre-stored reference service and each authentication policy, and generate an authentication process; The processing module is further used to: perform authentication processing on the attribute information based on the authentication process to obtain an authentication result; The processing module is further used for: when it is determined based on the authentication result that the service request end has the right to access the target service, forwarding the service access request to the target service end so that the target service end provides the target service to the service request end.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
12. A computer device, characterized in that: include: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory, and execute the method according to any one of claims 1 to 9 according to the obtained program instructions.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Authentication method, device and system based on microservice and access request forwarding method, device and system based on microservice
CN108809956A
Application service access method and device
CN111209578A
Access control method, electronic equipment and storage medium
CN111416822A
Access request authentication method and device, storage medium and electronic device
CN116208396A
Authentication method and related device
WO2021115231A1
Cited By
Data security access method and device, electronic equipment and storage medium
CN119835007A
A data security access method, apparatus, electronic device, and storage medium
CN119835007B
