Data access method and device
By identifying and transforming the user's access request, the third -party service address is converted into the internal network address of the server, which solves the problem that users cannot fully use third -party services in the server. Under the premise of data security The effect of service.
Patent Information
- Application Number
- CN202211506530.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-29
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2042-11-29
AI Technical Summary
When users access data through setting up dedicated lines, they cannot fully use the third-party services configured on the server.
By identifying the user's access request to access the request for third -party services, the third -party service address is converted into the internal network address of the server, forming a target request, and sending the request to the server to obtain the target data of third -party services.
Under the premise of ensuring data security, users can fully use third -party services configured by the server to solve the problem that users cannot fully use third -party services.
Smart Images

Figure CN115801868B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data access method and device. Background Art
[0002] With the development of computer technology, in order to meet the extremely high network security requirements of users, a method of data access through dedicated lines has emerged. Specifically, dedicated lines can enable data exchange between users and servers.
[0003] However, third-party services are usually configured in the server. The current dedicated line data access method has the problem that users cannot fully use the third-party services configured in the server when they exchange data with the server, which urgently needs to be improved. Summary of the invention
[0004] Based on this, it is necessary to provide a data access method and device for the above technical problems, which can enable users to fully use the third-party services configured by the server under the premise of ensuring data security.
[0005] In a first aspect, the present application provides a data access method, the method comprising:
[0006] Get the user's access request;
[0007] If it is identified that the access request is a request from a dedicated line user to access a third-party service, the third-party service address in the access request is converted into an intranet address of the server to obtain a target request;
[0008] Sending the target request to the server to request the server to obtain the target data of the third-party service and provide feedback;
[0009] Obtain the target data fed back by the server.
[0010] In one embodiment, the identifying that the access request is a request for a dedicated line user to access a third-party service includes:
[0011] If it is identified that the access request carries a dedicated line user identifier and the access address in the access request is a third-party service address, it is determined that the access request is a request for the dedicated line user to access a third-party service.
[0012] In a second aspect, the present application provides a data access method, the method comprising:
[0013] Receiving a target request sent by a terminal; wherein the target request is obtained by converting a third-party service address in the access request into an intranet address of the server when the terminal identifies that the access request is a request for a dedicated line user to access a third-party service;
[0014] Obtain target data of a third-party service in the target request;
[0015] The target data is fed back to the terminal.
[0016] In one embodiment, obtaining target data of a third-party service in the target request includes:
[0017] A data acquisition method is determined according to the type of the third-party service; and target data of the third-party service in the target request is acquired according to the data acquisition method.
[0018] In one embodiment, determining the data acquisition method according to the type of the third-party service includes:
[0019] If the type of the third-party service is a local third-party service, the data acquisition method is an internal data acquisition method; if the type of the third-party service is an external third-party service, the data acquisition method is an external data acquisition method.
[0020] In one embodiment, acquiring the target data of the third-party service in the target request according to the data acquisition method includes:
[0021] If the data acquisition method is an internal data acquisition method, verify whether the user has access rights to the third-party service; if the user has access rights, acquire the target data of the third-party service.
[0022] In one embodiment, acquiring the target data of the third-party service in the target request according to the data acquisition method includes:
[0023] If the data acquisition method is an external data acquisition method, sending a data acquisition request to the third-party service;
[0024] The target data fed back by the third-party service based on the data acquisition request is obtained.
[0025] In a third aspect, the present application also provides a data access device. The device comprises:
[0026] A request acquisition module is used to obtain the user's access request;
[0027] A request conversion module, for converting the third-party service address in the access request into an intranet address of the server to obtain a target request if the access request is identified as a request for a dedicated line user to access a third-party service;
[0028] A request sending module, used to send the target request to the server to request the server to obtain the target data of the third-party service and provide feedback;
[0029] The first data acquisition module is used to acquire the target data fed back by the server.
[0030] In a fourth aspect, the present application further provides a data access device. The device comprises:
[0031] A request receiving module, used to receive a target request sent by a terminal; wherein the target request is obtained by converting the third-party service address in the access request into the intranet address of the server when the terminal identifies that the access request is a request for a dedicated line user to access a third-party service;
[0032] A second data acquisition module, used to acquire target data of a third-party service in the target request;
[0033] A data feedback module is used to feed back the target data to the terminal.
[0034] In a fifth aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0035] Get the user's access request;
[0036] If it is identified that the access request is a request from a dedicated line user to access a third-party service, the third-party service address in the access request is converted into an intranet address of the server to obtain a target request;
[0037] Sending the target request to the server to request the server to obtain the target data of the third-party service and provide feedback;
[0038] Obtain the target data fed back by the server.
[0039] In a sixth aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0040] Receiving a target request sent by a terminal; wherein the target request is obtained by converting a third-party service address in the access request into an intranet address of the server when the terminal identifies that the access request is a request for a dedicated line user to access a third-party service;
[0041] Obtain target data of a third-party service in the target request;
[0042] The target data is fed back to the terminal.
[0043] In a seventh aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0044] Get the user's access request;
[0045] If it is identified that the access request is a request from a dedicated line user to access a third-party service, the third-party service address in the access request is converted into an intranet address of the server to obtain a target request;
[0046] Sending the target request to the server to request the server to obtain the target data of the third-party service and provide feedback;
[0047] Obtain the target data fed back by the server.
[0048] In an eighth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0049] Receiving a target request sent by a terminal; wherein the target request is obtained by converting a third-party service address in the access request into an intranet address of the server when the terminal identifies that the access request is a request for a dedicated line user to access a third-party service;
[0050] Obtain target data of a third-party service in the target request;
[0051] The target data is fed back to the terminal.
[0052] In a ninth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0053] Get the user's access request;
[0054] If it is identified that the access request is a request from a dedicated line user to access a third-party service, the third-party service address in the access request is converted into an intranet address of the server to obtain a target request;
[0055] Sending the target request to the server to request the server to obtain the target data of the third-party service and provide feedback;
[0056] Obtain the target data fed back by the server.
[0057] In a tenth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0058] Receiving a target request sent by a terminal; wherein the target request is obtained by converting a third-party service address in the access request into an intranet address of the server when the terminal identifies that the access request is a request for a dedicated line user to access a third-party service;
[0059] Obtain target data of a third-party service in the target request;
[0060] The target data is fed back to the terminal.
[0061] In the above data access method and device, when the terminal obtains the user's access request, if it recognizes that the access request is a request for a dedicated line user to access a third-party service, the third-party service address in the access request is converted into the intranet address of the server to obtain the target request; further, the terminal sends the target request to the server, and the server obtains the target data of the third-party service and feeds it back to the terminal; finally, the terminal obtains the target data fed back by the server. In the above scheme, the terminal converts the address of the third-party service configured by the access server into the address corresponding to the server, that is, the access request is directed to the server, and the server obtains data from the third-party service. Under the premise of ensuring access security, the third-party service configured in the server can be fully used by users. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 An application environment diagram of a data access method in an embodiment;
[0063] Figure 2 A schematic diagram of a flow chart of a data access method in an embodiment;
[0064] Figure 3 is a flow chart of a data access method in another embodiment;
[0065] Figure 4 A schematic diagram of a process for obtaining target data in one embodiment;
[0066] Figure 5 is a signaling diagram of a data access method in one embodiment;
[0067] Figure 6 is a structural block diagram of a data access device in one embodiment;
[0068] Figure 7 is a structural block diagram of a data access device in another embodiment;
[0069] Figure 8It is a structural block diagram of a data access device in yet another embodiment;
[0070] Fig. 9 is an internal structure diagram of a computer device in one embodiment;
[0071] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION
[0072] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0073] The data access method provided in the embodiment of the present application can be applied to the scenario where the user wants to use the third-party service provided by the server. Optionally, the whole set of data access methods can be implemented by the terminal and the server. Optionally, the terminal can be configured with a tool for connecting the server and the terminal, which can be an APP, a small program or a web page, etc.; the server can be a server for forwarding and verifying the access request sent by the terminal.
[0074] Figure 1 It is an application environment applicable to the data access method provided by the present application. Among them, the terminal 102 interacts with the server 104. Optionally, in this embodiment, the terminal 102 can obtain the user's access request and identify the access request. If the access request is identified as a request for a dedicated line user to access a third-party service, the third-party service address in the access request is converted into the intranet address of the server, and then the target request is obtained; further, the terminal 102 sends a target request to the server 104 to request the server to obtain the target data of the third-party service and feedback to the terminal 102; the terminal 102 obtains the target data fed back by the server 104. Among them, the terminal 102 can be but not limited to various personal computers, laptops, smart phones, tablet computers and Internet of Things devices. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.
[0075] In one embodiment, Figure 2 As shown, a data access method is provided, which is applied to Figure 1 The terminal 102 in the example is used as an example to illustrate, and the following steps are included:
[0076] S201, obtaining a user's access request.
[0077] The access request may be a request for accessing a service configured by the server, based on an operation triggered by a user on a tool provided by the server configured by the terminal. Optionally, the access request may include relevant information about the service that the user wants to access (such as but not limited to the name and address of the service), as well as information such as the operation that the user wants to perform on the service.
[0078] Specifically, after the user logs in from the terminal and enters an internal system of the server, if the terminal detects that the user has sent an access request to access the service provided by the server, the terminal will immediately intercept the access request and perform the next operation on the access request.
[0079] For example, user A logs into the internal website B provided by the company through the terminal. When user A wants to use the service provided by B, an access request is generated; the terminal will immediately intercept the access request sent by user A.
[0080] S202: If it is identified that the access request is a request from a dedicated line user to access a third-party service, the third-party service address in the access request is converted into an intranet address of the server to obtain a target request.
[0081] Among them, users with high user security requirements are called dedicated line users. Optionally, in order to provide highly secure services to dedicated line users, each dedicated line user is provided with an internal dedicated line IP for accessing a certain internal system of the server, and a corresponding account.
[0082] Third-party services refer to services provided by third-party networks outside the internal system; target requests refer to access requests for accessing the server obtained by converting the third-party service address in the access request into the server's intranet address. In other words, the access request originally directed to the third-party service is converted into a target request directed to the server.
[0083] Specifically, after the terminal intercepts the user's access request, the terminal can identify whether the user is a dedicated line user by identifying the user's login account. If the user is not a dedicated line user, the access request is directly passed so that the user can perform the access operation; if the user is a dedicated line user, the access request is further identified.
[0084] Furthermore, the terminal compares the access URL contained in the dedicated line user's access request with the URL contained in the internal system. If the access URL is the URL contained in the internal system, the dedicated line user can access it normally; if the access URL is a third-party service address, the third-party service address is converted into the intranet address of the server, and based on the intranet address, the target request that needs to be sent to the server is obtained.
[0085] Exemplarily, the third-party service address can be converted into the intranet address of the server through the address conversion program preset in the terminal; the third-party service address can also be converted into the intranet address of the server by modifying the code before the third-party service address.
[0086] S203, sending a target request to the server to request the server to obtain target data of the third-party service and provide feedback.
[0087] The target data refers to the data that the user wants to obtain from the third-party service address.
[0088] Specifically, since the modified third-party service address is the intranet address of the server, the terminal can directly send the modified target request to the server. The server analyzes the received target request and obtains the third-party service address that the user wants to access. If the third-party service address is safe, the server will access the third-party service address and feed back the obtained data to the terminal.
[0089] Exemplarily, the server may analyze the received target request by verifying the third-party service address in the target request based on the access whitelist of the account sending the target request. If the third-party service address is in the access whitelist, it can be accessed normally; if the third-party service address is not in the access whitelist, a prompt message indicating that it cannot be accessed is fed back to the terminal.
[0090] S204, obtaining target data fed back by the server.
[0091] Specifically, after the server feeds back the obtained data to the terminal, the terminal directly obtains the target data fed back by the server and displays the target data to the user. It is understandable that in order to improve the user experience, all operations will not be presented to the user, and the user can directly obtain the target data after issuing an access request.
[0092] In the above data access method, when the terminal obtains the user's access request, if it recognizes that the access request is a request for a dedicated line user to access a third-party service, the third-party service address in the access request is converted into the intranet address of the server to obtain the target request; further, the terminal sends the target request to the server, and the server obtains the target data of the third-party service and feeds it back to the terminal; finally, the terminal obtains the target data fed back by the server. In the above scheme, the terminal converts the address of the third-party service configured by the access server into the address corresponding to the server, that is, the access request is directed to the server, and the server obtains data from the third-party service. Under the premise of ensuring access security, the third-party service configured in the server can be fully used by users.
[0093] Exemplarily, based on the above embodiment, determining that the access request is a request for a dedicated line user to access a third-party service may also be to add a dedicated line user identifier in the account of each dedicated line user. If the terminal recognizes that the account sending the access request carries the dedicated line user identifier, and the access address in the access request is a third-party service address, then it is determined that the access request is a request for a dedicated line user to access a third-party service.
[0094] In one embodiment, Figure 3 As shown, a data access method is provided, which is applied to Figure 1 The server 104 in the example is used as an example to illustrate, including the following steps:
[0095] S301, receiving a target request sent by a terminal.
[0096] The target request is obtained by converting the third-party service address in the access request into the intranet address of the server when the terminal recognizes that the access request is a request for a dedicated line user to access a third-party service.
[0097] Specifically, after the terminal converts the third-party service address in the access request into the intranet address of the server to obtain the target request and sends it, the server can receive the target request sent by the terminal.
[0098] S302, obtaining target data of the third-party service in the target request.
[0099] Specifically, after the server receives the target request sent by the terminal, it can obtain the third-party service address based on the relevant information of the third-party service in the target request (such as the name); or, the server can convert the intranet address contained in the target request into the original third-party service address that the user wants to access; further, the server will verify the third-party service address, and after the verification is passed, the server will access the third-party service address.
[0100] Exemplarily, the third-party service address may be subjected to security verification to determine whether the third-party service address to be accessed is safe; the third-party service address may also be subjected to authority verification to determine whether the user has access rights to the third-party service address to be accessed, etc.
[0101] Furthermore, after the third-party service address passes the server's inspection, the server will access and operate the third-party service address based on the operation in the target request; further, after the server operates the third-party service address, it can obtain target data for the third-party service.
[0102] S303, feeding back target data to the terminal.
[0103] Specifically, after the server obtains the target data, it will feed back the target data to the terminal, which will provide it to the user for use.
[0104] In the above data access method, the server obtains the target data of the third-party service in the target request by receiving the target request sent by the terminal; further, after obtaining the target data, the server will feedback the target data to the terminal. In the above scheme, the terminal converts the address of the third-party service configured by the access server into the address corresponding to the server, that is, the access request is directed to the server, and the server obtains data from the third-party service. Under the premise of ensuring access security, the third-party service configured in the server can be fully used by users.
[0105] Based on the above embodiment, an optional embodiment is provided for obtaining the target data of the third-party service in the target request. In one embodiment, Figure 4 As shown, the specific steps include:
[0106] S401, determining a data acquisition method according to the type of the third-party service.
[0107] The third-party services configured by the server can include local third-party services and external third-party services. Among them, local third-party services refer to third-party services provided by different addresses under the same organization as the server; external third-party services refer to third-party services that are unrelated to the server.
[0108] Specifically, after receiving the target request, the server identifies the type of third-party service contained in the target request. If the type of the third-party service is a local third-party service, the data acquisition method is an internal data acquisition method; if the type of the third-party service is an external third-party service, the data acquisition method is an external data acquisition method. Among them, the internal data acquisition method refers to the method of acquiring data for third-party services provided by different addresses under the same organization; the external data acquisition method refers to the method of acquiring data for third-party services that are unrelated to the server.
[0109] S402: Acquire target data of the third-party service in the target request according to the data acquisition method.
[0110] Specifically, if the server recognizes that the data acquisition method of the third-party service is an internal data acquisition method, the server will verify whether the user has access rights to the third-party service. If the user has access rights, the server will acquire the target data of the third-party service.
[0111] For example, user D wants to access document library F in a third-party service provided by company E through company E's internal system. After the server receives the target request from user D, the server will identify the permissions of user D. When the server identifies that user D has access rights to document library F, the server will operate on document library F based on the target request and obtain the target data required by user D.
[0112] Furthermore, if the server recognizes that the data acquisition method of the third-party service is an external data acquisition method, the server will send a data acquisition request to the third-party service, and obtain the target data fed back by the third-party service based on the data acquisition request.
[0113] In this embodiment, by introducing various types of third-party services, it is possible to ensure that when a user operates a third-party service address, all services provided by the third party can be fully used.
[0114] In one embodiment, an optional example of a method for implementing data access through interaction between a terminal and a server is provided. Figure 5 The interactive process signaling diagram of the data access method shown in the figure can be implemented by the following steps:
[0115] S501: The terminal obtains an access request from a user and identifies the access request.
[0116] S502: If the terminal identifies that the access request is a request from a dedicated line user to access a third-party service, the third-party service address in the access request is converted into an intranet address of the server to obtain a target request.
[0117] S503: The terminal sends a target request to the server.
[0118] S504, the server receives the target request sent by the terminal, and determines a data acquisition method according to the type of the third-party service in the target request.
[0119] S505: The server obtains target data of the third-party service in the target request according to the data acquisition method.
[0120] S506, the server feeds back the target data to the terminal.
[0121] S507: The terminal obtains the target data fed back by the server.
[0122] The specific process of S501-S507 can refer to the description of the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0123] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0124] Based on the same inventive concept, the embodiment of the present application also provides a data access device for implementing the data access method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more data access device embodiments provided below can refer to the limitations on the data access method above, and will not be repeated here.
[0125] In one embodiment, Figure 6 As shown, a data access device 1 is provided, comprising: a request acquisition module 110, a request conversion module 120, a request sending module 130 and a first data acquisition module 140, wherein:
[0126] A request acquisition module 110, used to acquire an access request from a user;
[0127] The request conversion module 120 is used to convert the third-party service address in the access request into the intranet address of the server to obtain the target request if the access request is identified as a request for a dedicated line user to access a third-party service;
[0128] The request sending module 130 is used to send a target request to the server to request the server to obtain the target data of the third-party service and provide feedback;
[0129] The first data acquisition module 140 is used to acquire target data fed back by the server.
[0130] Based on the above embodiment, in one embodiment, the request conversion module 120 is specifically used for:
[0131] If it is identified that the access request carries a dedicated line user identifier, and the access address in the access request is a third-party service address, it is determined that the access request is a request for the dedicated line user to access the third-party service.
[0132] In one embodiment, Figure 7As shown, a data access device 2 is provided, comprising: a request receiving module 210, a second data acquisition module 220 and a data feedback module 230, wherein:
[0133] The request receiving module 210 is used to receive a target request sent by a terminal; wherein the target request is obtained by converting the third-party service address in the access request into the intranet address of the server when the terminal identifies that the access request is a request for a dedicated line user to access a third-party service;
[0134] The second data acquisition module 220 is used to acquire target data of the third-party service in the target request;
[0135] The data feedback module 230 is used to feed back target data to the terminal.
[0136] Based on the above embodiments, Figure 8 As shown, in one embodiment, the second data acquisition module 220 includes:
[0137] The acquisition method determining unit 221 is used to determine the data acquisition method according to the type of the third-party service;
[0138] The data acquisition unit 222 is used to acquire the target data of the third-party service in the target request according to the data acquisition method.
[0139] Based on the above embodiment, in one embodiment, the acquisition mode determination unit 221 is specifically used for:
[0140] If the type of the third-party service is a local third-party service, the data acquisition method is an internal data acquisition method; if the type of the third-party service is an external third-party service, the data acquisition method is an external data acquisition method.
[0141] Based on the above embodiment, in one embodiment, the data acquisition unit 222 is specifically used for:
[0142] If the data acquisition method is internal data acquisition method, verify whether the user has access rights to the third-party service. If the user has access rights, obtain the target data of the third-party service.
[0143] Based on the above embodiment, in one embodiment, the data acquisition unit 222 is further used for:
[0144] If the data acquisition method is an external data acquisition method, a data acquisition request is sent to a third-party service; and target data fed back by the third-party service based on the data acquisition request is acquired.
[0145] Each module in the above data access device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0146] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a data access method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0147] In one embodiment, a computer device is provided. The computer device may be a server that integrates a server end to perform data access functions. The internal structure diagram thereof may be as follows: Fig.10 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as target request information sent by users. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a data access method is implemented.
[0148] Those skilled in the art will understand that Fig. 9 and Fig.10The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0149] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0150] Get the user's access request;
[0151] If the access request is identified as a request from a dedicated line user to access a third-party service, the third-party service address in the access request is converted into the intranet address of the server to obtain the target request;
[0152] Send a target request to the server to request the server to obtain the target data of the third-party service and provide feedback;
[0153] Get the target data fed back by the server.
[0154] In one embodiment, when the processor executes the logic in the computer program for identifying that the access request is a request for a dedicated line user to access a third-party service, the following steps are specifically implemented:
[0155] If it is identified that the access request carries a dedicated line user identifier, and the access address in the access request is a third-party service address, it is determined that the access request is a request for the dedicated line user to access the third-party service.
[0156] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0157] Receiving a target request sent by a terminal; wherein the target request is obtained by converting a third-party service address in the access request into an intranet address of the server when the terminal identifies that the access request is a request for a dedicated line user to access a third-party service;
[0158] Get the target data of the third-party service in the target request;
[0159] Feedback target data to the terminal.
[0160] In one embodiment, when the processor executes the logic of obtaining the target data of the third-party service in the target request in the computer program, the following steps are specifically implemented:
[0161] Determine a data acquisition method according to the type of the third-party service; and acquire target data of the third-party service in the target request according to the data acquisition method.
[0162] In one embodiment, when the processor executes the logic of determining the data acquisition method according to the type of the third-party service in the computer program, the following steps are specifically implemented:
[0163] If the type of the third-party service is a local third-party service, the data acquisition method is an internal data acquisition method; if the type of the third-party service is an external third-party service, the data acquisition method is an external data acquisition method.
[0164] In one embodiment, when the processor executes the logic in the computer program for acquiring target data of the third-party service in the target request according to the data acquisition method, the following steps are specifically implemented:
[0165] If the data acquisition method is internal data acquisition method, verify whether the user has access rights to the third-party service. If the user has access rights, obtain the target data of the third-party service.
[0166] In one embodiment, when the processor executes the logic in the computer program for acquiring target data of the third-party service in the target request according to the data acquisition method, the following steps are specifically implemented:
[0167] If the data acquisition method is an external data acquisition method, a data acquisition request is sent to a third-party service; and target data fed back by the third-party service based on the data acquisition request is acquired.
[0168] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0169] Get the user's access request;
[0170] If the access request is identified as a request from a dedicated line user to access a third-party service, the third-party service address in the access request is converted into the intranet address of the server to obtain the target request;
[0171] Send a target request to the server to request the server to obtain the target data of the third-party service and provide feedback;
[0172] Get the target data fed back by the server.
[0173] In one embodiment, when the code logic in the computer program for identifying that the access request is a request by a dedicated line user to access a third-party service is executed by a processor, the following steps are specifically implemented:
[0174] If it is identified that the access request carries a dedicated line user identifier, and the access address in the access request is a third-party service address, it is determined that the access request is a request for the dedicated line user to access the third-party service.
[0175] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0176] Receiving a target request sent by a terminal; wherein the target request is obtained by converting a third-party service address in the access request into an intranet address of the server when the terminal identifies that the access request is a request for a dedicated line user to access a third-party service;
[0177] Get the target data of the third-party service in the target request;
[0178] Feedback target data to the terminal.
[0179] In one embodiment, when the code logic for obtaining the target data of the third-party service in the target request in the computer program is executed by the processor, the following steps are specifically implemented:
[0180] Determine a data acquisition method according to the type of the third-party service; and acquire target data of the third-party service in the target request according to the data acquisition method.
[0181] In one embodiment, when the code logic for determining the data acquisition method according to the type of the third-party service in the computer program is executed by the processor, the following steps are specifically implemented:
[0182] If the type of the third-party service is a local third-party service, the data acquisition method is an internal data acquisition method; if the type of the third-party service is an external third-party service, the data acquisition method is an external data acquisition method.
[0183] In one embodiment, when the code logic of the computer program for obtaining target data of the third-party service in the target request according to the data acquisition method is executed by the processor, the following steps are specifically implemented:
[0184] If the data acquisition method is internal data acquisition method, verify whether the user has access rights to the third-party service. If the user has access rights, obtain the target data of the third-party service.
[0185] In one embodiment, when the code logic of the computer program for obtaining target data of the third-party service in the target request according to the data acquisition method is executed by the processor, the following steps are specifically implemented:
[0186] If the data acquisition method is an external data acquisition method, a data acquisition request is sent to a third-party service; and target data fed back by the third-party service based on the data acquisition request is acquired.
[0187] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0188] Get the user's access request;
[0189] If the access request is identified as a request from a dedicated line user to access a third-party service, the third-party service address in the access request is converted into the intranet address of the server to obtain the target request;
[0190] Send a target request to the server to request the server to obtain the target data of the third-party service and provide feedback;
[0191] Get the target data fed back by the server.
[0192] In one embodiment, when the computer program is executed by the processor to identify that the access request is a request for a dedicated line user to access a third-party service, the following steps are specifically implemented:
[0193] If it is identified that the access request carries a dedicated line user identifier, and the access address in the access request is a third-party service address, it is determined that the access request is a request for the dedicated line user to access the third-party service.
[0194] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0195] Receiving a target request sent by a terminal; wherein the target request is obtained by converting a third-party service address in the access request into an intranet address of the server when the terminal identifies that the access request is a request for a dedicated line user to access a third-party service;
[0196] Get the target data of the third-party service in the target request;
[0197] Feedback target data to the terminal.
[0198] In one embodiment, when the computer program is executed by the processor to obtain the target data of the third-party service in the target request, the following steps are specifically implemented:
[0199] Determine a data acquisition method according to the type of the third-party service; and acquire target data of the third-party service in the target request according to the data acquisition method.
[0200] In one embodiment, when the computer program is executed by the processor to determine the data acquisition method according to the type of the third-party service, the following steps are specifically implemented:
[0201] If the type of the third-party service is a local third-party service, the data acquisition method is an internal data acquisition method; if the type of the third-party service is an external third-party service, the data acquisition method is an external data acquisition method.
[0202] In one embodiment, when the computer program is executed by the processor to obtain the target data of the third-party service in the target request according to the data acquisition method, the following steps are specifically implemented:
[0203] If the data acquisition method is internal data acquisition method, verify whether the user has access rights to the third-party service. If the user has access rights, obtain the target data of the third-party service.
[0204] In one embodiment, when the computer program is executed by the processor to obtain the target data of the third-party service in the target request according to the data acquisition method, the following steps are specifically implemented:
[0205] If the data acquisition method is an external data acquisition method, a data acquisition request is sent to a third-party service; and target data fed back by the third-party service based on the data acquisition request is acquired.
[0206] It should be noted that the information (including but not limited to access information, user account information, etc.) and data (including but not limited to target data for server feedback, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0207] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0208] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0209] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A data access method, characterized in that: The method comprises: Obtain access requests from intranet dedicated line users; If it is identified that the access request carries a dedicated line user identifier, and the access address in the access request is a third-party service address, the third-party service address in the access request is converted into an intranet address of the server to obtain a target request; wherein the third-party service includes a local third-party service or an external third-party service; Sending the target request to the server to request the server to obtain the target data of the third-party service and provide feedback; Obtaining target data fed back by the server; The converting of the third-party service address in the access request into the intranet address of the server includes: The third-party service address is converted into the intranet address of the server through an address conversion program; or, the third-party service address is converted into the intranet address of the server by modifying the code before the third-party service address.
2. A data access method, characterized in that: The method comprises: A target request sent by a receiving terminal; wherein the target request is obtained by converting the third-party service address into the intranet address of the server through an address conversion program when the terminal identifies that the access request sent by the intranet dedicated line user carries a dedicated line user identifier and the access address in the access request is a third-party service address; or, by modifying the code before the third-party service address, converting the third-party service address into the intranet address of the server; the third-party service includes a local third-party service or an external third-party service; Obtain target data of a third-party service in the target request; The target data is fed back to the terminal.
3. The method according to claim 2, characterized in that The obtaining target data of the third-party service in the target request includes: Determine the data acquisition method based on the type of third-party service; According to the data acquisition method, target data of the third-party service in the target request is acquired.
4. The method according to claim 3, characterized in that Determining the data acquisition method according to the type of the third-party service includes: If the type of the third-party service is a local third-party service, the data acquisition method is an internal data acquisition method; If the type of the third-party service is an external third-party service, the data acquisition method is an external data acquisition method.
5. The method according to claim 4, characterized in that The acquiring, according to the data acquisition method, target data of the third-party service in the target request includes: If the data acquisition method is an internal data acquisition method, verify whether the user has access rights to the third-party service; If the access permission is granted, target data of the third-party service is obtained.
6. The method according to claim 4, characterized in that The acquiring, according to the data acquisition method, target data of the third-party service in the target request includes: If the data acquisition method is an external data acquisition method, sending a data acquisition request to the third-party service; The target data fed back by the third-party service based on the data acquisition request is obtained.
7. A data access device, characterized in that: The device comprises: The request acquisition module is used to obtain access requests from intranet dedicated line users; A request conversion module, for converting the third-party service address in the access request into an intranet address of the server to obtain a target request if it is recognized that the access request carries a dedicated line user identifier and the access address in the access request is a third-party service address; wherein the third-party service includes a local third-party service or an external third-party service; A request sending module, used to send the target request to the server to request the server to obtain the target data of the third-party service and provide feedback; A first data acquisition module, used to acquire target data fed back by the server; Wherein, the request conversion module is also used for: The third-party service address is converted into the intranet address of the server through an address conversion program; or, the third-party service address is converted into the intranet address of the server by modifying the code before the third-party service address.
8. A data access device, characterized in that: The device comprises: A request receiving module, used for receiving a target request sent by a terminal; wherein the target request is obtained by converting the third-party service address into the intranet address of the server through an address conversion program when the terminal identifies that the access request sent by the intranet dedicated line user carries a dedicated line user identifier, and the access address in the access request is a third-party service address; or, by modifying the code before the third-party service address, converting the third-party service address into the intranet address of the server; the third-party service includes a local third-party service or an external third-party service; A second data acquisition module, used to acquire target data of a third-party service in the target request; A data feedback module is used to feed back the target data to the terminal.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Access control method and electronic equipment
CN114553823A