WO2025201096A1 - 一种数据处理的方法、设备、存储介质及程序产品 - Google Patents
一种数据处理的方法、设备、存储介质及程序产品Info
- Publication number
- WO2025201096A1 WO2025201096A1 PCT/CN2025/082803 CN2025082803W WO2025201096A1 WO 2025201096 A1 WO2025201096 A1 WO 2025201096A1 CN 2025082803 W CN2025082803 W CN 2025082803W WO 2025201096 A1 WO2025201096 A1 WO 2025201096A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- authentication
- authentication result
- configuration information
- access request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/40—Network security protocols
Definitions
- Cloud acceleration channels are a cloud service provided by cloud platforms. They can be understood as an acceleration channel established between the client and the server. Cloud acceleration channels rely on high-speed channels, forwarding clusters, and intelligent routing technologies between the cloud platform's own global nodes to achieve local access for users in all locations. By directly connecting to the source server region through high-speed channels, businesses can solve the problem of access lag or high latency for global users. Based on these advantages of cloud acceleration channels, many businesses (especially games with global servers or business systems of multinational enterprises) choose this solution when deploying. In recent years, with the increasing emphasis on the security protection of easily leaked data such as user personal information or other user-defined data, cloud acceleration channel businesses urgently need a convenient, flexible, and accurate data interception function to ensure the safe and legal collection, transmission, and use of data.
- the embodiments of the present application provide a data processing method, device, storage medium and program product, which can determine in advance whether to intercept or continue to transmit the first data at the access device based on the authentication result fed back by the data authentication server, without the need to upgrade and modify the client, which not only reduces the cost and difficulty of the upgrade and modification, but also improves the effect of data interception.
- an embodiment of the present application provides a method for data processing.
- the method can be applied to an access device.
- the method includes: receiving an access request sent by a terminal device, the access request including first data and a user identifier, the user identifier and configuration information having a mapping relationship, the configuration information being used to indicate whether dial-up type data is allowed to be transmitted to a target server; after detecting that there is a corresponding data authentication rule for the access request, forwarding the access request to a data authentication server, so that the data authentication server finds the configuration information based on the user identifier and the mapping relationship, and then performs authentication processing on the first data based on the configuration information to obtain an authentication result; after receiving the authentication result sent by the data authentication server, intercepting or transmitting the first data based on the authentication result.
- an embodiment of the present application provides an access device.
- the access device includes a receiving unit, a sending unit, and a processing unit.
- the receiving unit is used to receive an access request sent by a terminal device, the access request including first data and a user identifier, the user identifier and the configuration information have a mapping relationship, and the configuration information is used to indicate whether different types of data are allowed to be transmitted to the target server;
- the sending unit is used to forward the access request to a data authentication server after detecting that there is a corresponding data authentication rule for the access request, so that the data authentication server finds the configuration information based on the user identifier and the mapping relationship, and then performs authentication processing on the first data based on the configuration information to obtain an authentication result;
- the processing unit is used to intercept or transmit the first data based on the authentication result after receiving the authentication result sent by the data authentication server.
- an embodiment of the present application provides a data authentication server.
- the data authentication server includes a receiving module, a processing module, and a sending module.
- the receiving module is used to receive an access request sent by an access device, the access request includes first data and a user identifier, and there is a mapping relationship between the user identifier and the configuration information, and the configuration information is used to indicate whether different types of data are allowed to be transmitted to the target server.
- the processing module is used to search for configuration information based on the user identifier and the mapping relationship in the access request.
- the processing module is used to authenticate the first data based on the configuration information to obtain an authentication result.
- the sending module is used to send the authentication result to the access device, and the authentication result is used by the access device to intercept or transmit the first data.
- an embodiment of the present application provides a computer device, including:
- the processor, the communication interface and the memory complete communication with each other through the communication bus;
- the communication interface is an interface of the communication module;
- the memory is used to store a computer program and transmit the computer program to the processor; the processor is used to call the computer program in the memory to execute the above method.
- an embodiment of the present application provides a storage medium, which is used to store a computer program, and the computer program is used to execute the method of the above aspect.
- an access device receives an access request sent by a terminal device.
- the access request includes first data and a user identifier, and the user identifier is mapped to configuration information.
- the configuration information can be used to indicate whether different types of data are allowed to be transmitted to a target server.
- the access device Upon detecting that a corresponding data authentication rule exists for the access request, the access device forwards the access request to a data authentication server.
- the data authentication server locates the configuration information based on the user identifier and the mapping relationship and authenticates the first data based on the configuration information to obtain an authentication result.
- the access device intercepts or transmits the first data based on the authentication result.
- the access device forwards the access request to the data authentication server.
- the authentication result which is returned by the data authentication server after authenticating the first data, is then used to determine in advance whether to intercept or continue transmitting the first data.
- the access device by adding a data authentication server, and then using the access device and the data authentication server to realize the function of data interception, it is possible to decide whether to intercept the first data in advance at the access device based on the authentication result feedback from the data authentication server before the first data is transmitted to the target server. There is no need to upgrade and transform the terminal device or the target server, which not only reduces the cost and difficulty of upgrading and transforming, but also improves the effect of data interception.
- FIG1 is a schematic diagram showing data transmission through an acceleration channel in a related solution
- FIG2 shows a schematic diagram of a system architecture for data processing provided by an embodiment of the present application
- FIG3 shows a flow chart of a data processing method provided by an embodiment of the present application
- FIG4 shows an optional schematic diagram of the first data provided in this application.
- FIG5 shows an optional schematic diagram of data authentication rules provided by this application
- FIG6 shows an optional schematic diagram provided by the present application when data needs to be intercepted
- FIG7 shows another optional flowchart of data processing provided by the present application.
- FIG8 shows another optional flowchart of data processing provided by the present application.
- FIG9 shows an optional schematic diagram of functional modules of an access device provided in an embodiment of the present application.
- FIG10 shows an optional schematic diagram of the functional modules of the data authentication server provided in an embodiment of the present application.
- FIG11 shows an optional schematic diagram of the hardware structure of a data processing device provided in an embodiment of the present application.
- the target object hopes that certain data that is easy to leak and needs to be protected or certain user-defined data does not need to be transmitted to the server.
- these data can be intercepted and processed on the transmission link shown in Figure 1 above to prevent the relevant data from being transmitted to the server.
- this interception method is very easy to cause the transmission of easy-to-leak or user-defined data that does not need to be transmitted to the server when using the current SDK toolkit to verify the data due to the difficulty and cost of modification and upgrading. It cannot effectively implement data interception, resulting in the inability to ensure data security.
- the system architecture includes at least a terminal device, an access device, a data authentication server, a forwarding device, and a target server.
- the terminal device establishes a communication connection with the target server via the access device and the forwarding device, in sequence.
- the access device also establishes a communication connection with the data authentication server to implement data interception functionality via the access device and the data authentication server.
- the access device After receiving an access request, the access device does not directly forward the access request to the target server via the forwarding device. Instead, it first checks whether the access request matches a corresponding data authentication rule. After detecting the data authentication rule, the access device forwards the access request to the data authentication server. The data authentication server then searches for configuration information based on the user identifier and the mapping relationship. Once the configuration information is found, it authenticates the first data based on the configuration information, thereby determining an authentication result. The data authentication server then sends the authentication result to the access device.
- the data processing method provided in the embodiments of the present application can be implemented by a computer device, which can be a terminal device or a server, wherein the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud computing, cloud database, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
- Terminal devices include but are not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, aircraft, etc. Terminal devices and servers can be directly or indirectly connected through wired or wireless communication, and this application does not impose any restrictions on this.
- FIG3 shows a flow chart of a data processing method provided by an embodiment of the present application, which can be executed by an access device. As shown in FIG3 , the data processing method may include the following steps:
- a terminal device sends an access request to an access device.
- the access request includes first data and a user identifier.
- the configuration information is used to indicate whether different types of data are allowed to be transmitted to a target server.
- the target object usually wants to save it in a local database. Then, for this type of data, the target object can set the corresponding configuration state to the first setting state through the terminal device.
- the second setting state refers to the target user allowing certain types of data to be transmitted to the target server.
- the target user is generally not concerned about the security of this data and may allow it to be transmitted to the target server.
- the target user can set the corresponding configuration state to the second setting state through the terminal device.
- Figure 4 shows an optional schematic diagram of the first data provided by this application.
- a certain service for example, service A
- "personal information of service A” as the first data as an example
- the target object does not want the "personal information of service A" to be transmitted to the server to help improve XXX products and services.
- the target object can find an option about "personal information of service A” through the "Personal Information -> Privacy Settings -> Personal Information Provision of Service A" setting, such as "used to help improve XXX products and services”.
- the target object After querying the option of the first data, the target object can set the status of the "personal information of service A", for example, set it to the first setting state. For example, as shown in part (c) in Figure 4, for the "personal information of service A", the target object can "uncheck” the corresponding setting option to set the configuration status corresponding to the "personal information of service A” to the first setting state.
- the target object can set different settings for different types of data through the terminal device according to its own business needs.
- the terminal device can then generate configuration information corresponding to each type of data.
- the terminal device can also map this configuration information with the user identifier to determine the mapping relationship between the user identifier and the configuration information. This allows the subsequent data authentication server to quickly find the corresponding configuration information based on the mapping relationship after obtaining the user identifier carried in the access request, and then determine whether the first data needs to be transmitted to the target server through authentication.
- data authentication rules will establish a correspondence with the access requests that require data authentication. This correspondence will then clarify which data in the access requests requires authentication. For example, for some types of access requests, some data may not be transmitted to the target server. In this case, a correspondence can be established between these types of access requests and data authentication rules. For other types of access requests, no data should be transmitted to the target server. In this case, a correspondence between these types of access requests and data authentication rules may not be established.
- the difference between the first response message and the second response message is that the first response message is used to inform the terminal device that the access request has been responded to, so that the terminal device does not need to perceive that the access request has been intercepted; the second response message is used to inform the terminal device that the access request has failed to be accessed by the data authentication server and the access request needs to be retransmitted.
- the data authentication rule can be used to obtain specific information about the access request, such as forwarding rules, etc.
- the access device may also store the data authentication rule.
- whether the access request has a corresponding data authentication rule can accurately identify whether the data (e.g., the first data) carried in the access request has the possibility of being intercepted.
- the access device knows that the first data carried in the access request may contain data that should not be transmitted to the target server and needs to be authenticated.
- the access device knows that all the first data carried in the access request can be transmitted to the target server, and there is no need to authenticate the data in the access request through the data authentication server.
- the data authentication server searches for configuration information based on the user identifier and the mapping relationship in the access request.
- the data authentication server performs authentication processing on the first data based on the configuration information to obtain an authentication result.
- the data authentication server After determining the configuration status corresponding to the type of the first data from the configuration information, the data authentication server performs authentication processing on the first data based on the configuration status, thereby obtaining an authentication result.
- Figure 6 shows an optional schematic diagram provided by this application when data interception is required.
- the data authentication server can determine that the authentication result includes a first status code, such as "HTTP/1.1 401 Unauthorized”.
- the corresponding first response information is "X-GAAP-Filter-Auth-Http-Status-code:200; X-GAAP-Filter-Auth-Http-Content-type:application/json; X-GAAP-Filter-Auth-Http-X-abc-Environment:test; X-GAAP-Filter-Auth-Http-Body:eyJjb2Rlljox."
- the data authentication server may determine, based on the data authentication rules, that the authentication result is a second status code when the configuration state is determined to be the second setting state.
- the second status code is used to indicate a response code when interception of the first data is not required, including, for example, but not limited to, the aforementioned response code 200.
- the data authentication server sends the authentication result to the access device.
- the data authentication server may send the authentication result to the access device.
- the access device intercepts or transmits the first data based on the authentication result.
- the access device determines that the authentication result includes a first status code
- the interception processing includes not forwarding the first data, for example, forwarding it to a subsequent forwarding device in the link to avoid forwarding the first data to the target server through the subsequent forwarding device.
- the authentication result when the authentication result includes a first status code, the authentication result also includes first response information corresponding to the first status code.
- the access device may further extract the first response information from the authentication result, and after intercepting the first data based on the first status code, send the first response information to the terminal device. This first response information notifies the terminal device that the access request has been responded to, eliminating the need for the terminal device to be aware that the access request has been intercepted by the access device.
- the access device can accurately determine whether to intercept the first data in the access request based on the status code, avoiding additional parsing and processing. Furthermore, when a specific response code is agreed upon, it is easier for the access device to identify the status code, improving response efficiency.
- the access device can also accurately forward the second data to the terminal device when the target server returns the second data after processing the access request, thereby improving the integrity of the system.
- the access device in addition to the above-mentioned situation 1 or situation 2, if the data authentication server cannot be accessed normally due to equipment failure, network connection failure, etc., the access device still needs to feedback a response to the terminal device so that the terminal device can know that the access request has failed. In this case, the access device can also obtain the second response information after detecting the data authentication rule. The second response information can indicate the response when the access request to the data authentication server fails. After obtaining the second response information, the access device also needs to send the second response information to the terminal device so that the terminal device can retransmit the access request under the instruction of the second response information.
- the access device detects no data authentication rules, then interception of the first data is unnecessary. In this case, the access device directly forwards the access request to the forwarding device, which then transmits the access request to the target server. The target server then responds to the access request and transmits the response to the terminal device via the forwarding device and the access device.
- the terminal device sends an access request to the access device.
- the access request includes first data and a user identifier.
- the configuration information is used to indicate whether different types of data are allowed to be transmitted to the target server.
- the data authentication server searches for configuration information based on the user identifier and the mapping relationship in the access request.
- the data authentication server performs authentication processing on the first data based on the configuration information to obtain an authentication result.
- the data authentication server sends an authentication result to the access device, where the authentication result includes a first status code and first response information corresponding to the first status code.
- the access device intercepts and processes the first data based on the first status code.
- the first status code described can be understood with reference to the description of step 304 in FIG. 3 and is not further described here.
- the access device After receiving the authentication result sent by the data authentication server, if the access device determines that the authentication result is the first status code, it can intercept the first data based on the first status code to prevent the first data from being forwarded to the target server through the cloud acceleration channel, thereby ensuring data security.
- the access device sends first response information to the terminal device.
- the data authentication server adds the first response information corresponding to the first status code to the authentication result and sends it to the access device.
- the access device intercepts and processes the first data according to the first status code and then feeds the first response information back to the terminal device.
- FIG7 above mainly describes the implementation process of data interception from the perspective of an embodiment. The following will describe the process of not intercepting data from the perspective of an embodiment.
- FIG8 shows another optional flow diagram of data processing provided by this application. As shown in FIG8, the flow includes at least the following steps:
- the access device After detecting the existence of a data authentication rule, the access device forwards the access request to a data authentication server.
- the data authentication server searches for configuration information based on the user identifier in the access request and the mapping relationship.
- the data authentication server performs authentication processing on the first data based on the configuration information to obtain an authentication result.
- steps 801 to 805 can be understood with reference to the contents described in steps 301 to 305 in FIG. 3 , and are not described in detail here.
- the access device transmits the first data to the target server through the cloud acceleration channel based on the second status code.
- the second status code described can be understood with reference to the content described in step 304 in Figure 3 above, and will not be described in detail here.
- the access device After the access device receives the authentication result sent by the data authentication server, if it determines that the authentication result is the second status code, it can be determined that there is no need to intercept the first data. At this time, the access device can transmit the first data to the target server through the cloud acceleration channel. For example, the access device forwards the first data to the forwarding device, and then the forwarding device forwards the first data to the target server.
- the target server responds to the first data and obtains an access response message.
- the target server after receiving the first data sent by the access device, the target server processes the first data in response to obtain second data corresponding to the first data. In this way, the target server maps the second data into an access response message and sends the access response message to the access device via the forwarding device.
- the target server sends an access response message to the access device.
- the access device sends an access response message to the terminal device.
- the target server may send the access response message to the access device via the forwarding device, so that the access device can then send the access message to the terminal device.
- the access device before the access request, first data, etc. sent by the terminal device are sent to the target server, the access device first forwards the access request and data authentication rules to the data authentication server. Then, the authentication result fed back by the data authentication server after authenticating the configuration information is used to determine in advance whether to intercept the first data or continue to transmit the first data.
- the present application utilizes the access device and the data authentication server to implement the data interception function. Before the first data is transmitted to the target server, the access device can determine in advance whether to intercept the first data based on the authentication result fed back by the data authentication server. This eliminates the need to upgrade or modify the terminal device, thus avoiding data leakage and improving data security, and reducing the difficulty and cost of modification and upgrade.
- the embodiment of the present application can divide the functional modules of the device according to the above method example.
- each functional module can be divided according to each function, or two or more functions can be integrated into one processing module.
- the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. In actual implementation, there may be other division methods.
- the receiving unit 901 is used to receive an access request sent by a terminal device, the access request includes first data and a user identifier, there is a mapping relationship between the user identifier and the configuration information, and the configuration information is used to indicate whether different types of data are allowed to be transmitted to the target server.
- the sending unit 902 is used to forward the access request to the data authentication server after detecting the existence of the data authentication rule, so that the data authentication server finds the configuration information based on the user identifier and the mapping relationship, and then authenticates the first data based on the configuration information to obtain an authentication result.
- the processing unit 903 is configured to, after receiving the authentication result sent by the data authentication server, perform interception processing or transmission processing on the first data based on the authentication result.
- the processing unit 903 is used to intercept the first data based on the first status code when the authentication result includes a first status code, so as not to send the first data to the target server, and the first status code is used to represent a response code when the first data needs to be intercepted.
- the first status code is response code 401.
- the authentication result also includes first response information corresponding to the first status code; the sending unit 902 is also used to send the first response information to the terminal device after intercepting the first data based on the first status code, and the first response information is used for the terminal device to know that the access request has been responded to.
- the processing unit 903 is used to transmit the first data to the target server through the cloud acceleration channel based on the second status code when the authentication result includes a second status code, and the second status code is used to represent a response code when the first data does not need to be intercepted.
- the second status code is response code 200.
- FIG. 10 is an optional schematic diagram of the functional modules of the data authentication server provided in the embodiment of the present application.
- the data authentication server may include a receiving module 1001, a processing module 1002, and a sending module 1003.
- the receiving module 1001 is used to receive an access request sent by the access device, the access request includes first data and a user identifier, there is a mapping relationship between the user identifier and the configuration information, and the configuration information is used to indicate whether different types of data are allowed to be transmitted to the target server.
- the processing module 1002 is configured to search for configuration information based on the user identifier and the mapping relationship in the access request.
- the processing module is configured to perform authentication processing on the first data based on the configuration information to obtain an authentication result.
- the sending module 1003 is used to send the authentication result to the access device, and the authentication result is used by the access device to intercept or transmit the first data.
- the processing module 1002 is used to: determine the configuration status of the configuration information, for the first data type of the first data, the configuration status includes a first setting status or a second setting status, the first setting status is used to indicate that data of the first data type is not allowed to be transmitted to the target server, and the second setting status is used to indicate that data of the first data type is allowed to be transmitted to the target server; authenticate the first data based on the configuration status to obtain an authentication result.
- the processing module 1002 is used to: when the configuration state is the second setting state, determine that the authentication result is a second status code, and the second status code is used to represent a response code when the first data does not need to be intercepted.
- the data processing device 300 may further include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input and output interfaces 358, and/or one or more operating systems 341, such as Windows Server TM , Mac OS X TM , Unix TM , Linux TM , FreeBSD TM , etc.
- the steps executed by the data processing device in the above embodiments may be based on the data processing device structure shown in FIG11 .
- An embodiment of the present application further provides a computer program product including a computer program, which, when executed on a computer, enables the computer to execute the method provided in the above embodiment.
- all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof.
- all or part of the embodiments may be implemented in the form of a computer program product.
- the disclosed systems, devices and methods can be implemented in other ways.
- the device embodiments described above are merely schematic.
- the division of units is only a logical function division.
- Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
- the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit.
- the aforementioned integrated units may be implemented in the form of hardware or software functional units.
- the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
- the computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application.
- the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, and other media that can store program codes.
- the computer program product includes one or more computer instructions.
- the computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable devices.
- the computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
- the computer instruction can be transmitted from a website, a computer, a server or a data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode to another website, a computer, a server or a data center.
- wired such as coaxial cable, optical fiber, digital subscriber line (DSL)
- wireless such as infrared, wireless, microwave, etc.
- the computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrations.
- Available media can be magnetic media, (such as floppy disk, hard disk, tape), optical media (such as DVD) or semiconductor media (such as SSD)) etc.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Between Computers (AREA)
- Storage Device Security (AREA)
Abstract
本申请实施例公开了一种数据处理的方法、设备、存储介质及程序产品,无需升级和改造终端设备,降低升级改造的成本和难度,提高数据拦截的效果。该方法包括:接收终端设备发送的访问请求,访问请求包括用户标识,用户标识与配置信息存在映射关系,配置信息用于指示用户标识所对应的目标对象针对第一数据是否被允许传输至目标服务器时的配置情况;在检测到存在数据鉴权规则后,将访问请求和数据鉴权规则转发至数据鉴权服务器,以使数据鉴权服务器基于用户标识和映射关系查找到配置信息后,基于数据鉴权规则对配置信息进行鉴权处理,得到鉴权结果;在接收到数据鉴权服务器发送的鉴权结果后,基于鉴权结果对第一数据进行拦截处理或传输处理。
Description
本申请要求于2024年03月25日提交中国专利局、申请号为2024103544307、申请名称为“一种数据处理的方法、设备、存储介质及程序产品”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请实施例涉及计算机技术领域,具体涉及数据处理。
云上加速通道是云平台提供的一种云服务,其可以理解成在客户端与服务器之间建立起的一个加速通道。云上加速通道依赖于云平台自身全球节点之间的高速通道、转发集群及智能路由技术,实现各地用户的就近接入。通过高速通道直达源站区域,帮助业务解决全球用户访问卡顿或者延迟过高的问题。基于云上加速通道的这些优点,许多业务(特别是全球同服的游戏或者跨国企业的业务系统)在部署的时候会选择这种方案。近年来,随着对用户个人信息等易泄露数据或其它用户自定义数据安全保护的重视,云上加速通道的业务迫切需要一种方便的、灵活的、准确的数据拦截功能来保证数据被安全合法的采集、传输和使用。
在传统的数据拦截方式中,通常是在客户端中集成用于实现数据拦截功能的软件开发工具包(software development kit,SDK),进而利用该SDK来处理数据,以拦截不允许发送至服务器的数据或不拦截允许发送至服务器的数据。但是,当前通过改造和升级客户端的方式(即在客户端中集成SDK)来拦截数据,通常会因为改造和升级的难度和成本的增加,使得客户端无法实现升级改造,导致数据拦截的效果较差,进而无法保障数据的安全性。
本申请实施例提供了一种数据处理的方法、设备、存储介质及程序产品,可基于数据鉴权服务器反馈的鉴权结果,在接入设备处提前判断拦截或继续传输第一数据,无需升级改造客户端,不仅降低升级改造的成本和难度,而且还能够提高数据拦截的效果。
第一方面,本申请实施例提供了一种数据处理的方法。该方法可以应用于接入设备。该方法包括:接收终端设备发送的访问请求,访问请求包括第一数据和用户标识,用户标识与配置信息存在映射关系,配置信息用于指示针对拨通类型的数据是否被允许传输至目标服务器;在检测到访问请求存在对应的数据鉴权规则后,将访问请求转发至数据鉴权服务器,以使数据鉴权服务器基于用户标识和映射关系查找到配置信息后,基于配置信息对第一数据进行鉴权处理,得到鉴权结果;在接收到数据鉴权服务器发送的鉴权结果后,基于鉴权结果对第一数据进行拦截处理或传输处理。
第二方面,本申请实施例提供了一种数据处理的方法。该方法可应用于数据鉴权服务器。该方法包括:接收接入设备发送的访问请求,访问请求包括第一数据和用户标识,用户标识与配置信息存在映射关系,配置信息用于指示针对不同类型的数据是否被允许传输至目标服务器;基于访问请求中的用户标识和映射关系查找配置信息;基于配置信息对第一数据进行鉴权处理,得到鉴权结果;向接入设备发送鉴权结果,鉴权结果用于接入设备对第一数据进行拦截处理或传输处理。
第三方面,本申请实施例提供一种接入设备。该接入设备包括接收单元、发送单元以及处理单元。其中,接收单元,用于接收终端设备发送的访问请求,访问请求包括第一数据和用户标识,用户标识与配置信息存在映射关系,配置信息用于指示针对不同类型的数据是否被允许传输至目标服务器;发送单元,用于在检测到访问请求存在对应的数据鉴权规则后,将访问请求转发至数据鉴权服务器,以使数据鉴权服务器基于用户标识和映射关系查找到配置信息后,基于配置信息对第一数据进行鉴权处理,得到鉴权结果;处理单元,用于在接收到数据鉴权服务器发送的鉴权结果后,基于鉴权结果对第一数据进行拦截处理或传输处理。
第四方面,本申请实施例提供一种数据鉴权服务器。该数据鉴权服务器包括接收模块、处理模块以及发送模块。其中,接收模块,用于接收接入设备发送的访问请求,访问请求包括第一数据和用户标识,用户标识与配置信息存在映射关系,配置信息用于指示针对不同类型的数据是否被允许传输至目标服务器。处理模块,用于基于访问请求中的用户标识和映射关系查找配置信息。处理模块,用于基于配置信息对第一数据进行鉴权处理,得到鉴权结果。发送模块,用于向接入设备发送鉴权结果,鉴权结果用于接入设备对第一数据进行拦截处理或传输处理。
再一方面,本申请实施例提供一种计算机设备,包括:
处理器、通信接口、存储器和通信总线;
其中,所述处理器、所述通信接口和所述存储器通过所述通信总线完成相互间的通信;所述通信接口为通信模块的接口;
所述存储器,用于存储计算机程序,并将所述计算机程序传输给所述处理器;处理器,用于调用存储器中计算机程序执行以上方面的方法。
又一方面,本申请实施例提供一种存储介质,所述存储介质用于存储计算机程序,所述计算机程序用于执行以上方面的方法。
又一方面,本申请实施例提供了一种包括计算机程序的计算机程序产品,当其在计算机上运行时,使得所述计算机执行以上方面的方法。
从以上技术方案可以看出,本申请实施例具有以下优点:
本申请实施例中,通过接入设备接收终端设备发送的访问请求,访问请求包括第一数据和用户标识,并且该用户标识与配置信息存在映射关系。所提及的配置信息能够用来指示针对不同类型的数据是否被允许传输至目标服务器。那么,接入设备在检测到访问请求存在对应的数据鉴权规则后,将该访问请求转发至数据鉴权服务器,进而使得数据鉴权服务器在基于用户标识和映射关系查找到配置信息后,基于配置信息对第一数据进行鉴权处理,得到鉴权结果。这样,接入设备在接收到数据鉴权服务器发送的鉴权结果后,再基于该鉴权结果对第一数据进行拦截处理或传输处理。通过上述方式,本申请在将终端设备发送的访问请求、第一数据等发送至目标服务器之前,先由接入设备将访问请求转发至数据鉴权服务器,进而利用数据鉴权服务器针对第一数据进行鉴权处理后反馈的鉴权结果,提前来判断是否拦截该第一数据或者继续传输该第一数据。换句话说,本申请中通过新增数据鉴权服务器,进而利用接入设备与数据鉴权服务器实现数据拦截的功能,能够在第一数据传输至目标服务器之前,提前在接入设备处基于数据鉴权服务器反馈的鉴权结果来决定是否拦截第一数据,无需升级和改造终端设备或目标服务器,不仅降低升级改造的成本和难度,而且还能够提高数据拦截的效果。
图1示出了相关方案中通过加速通道传输数据的示意图;
图2示出了本申请实施例提供的数据处理的系统架构示意图;
图3示出了本申请实施例提供的数据处理的方法的一种流程图;
图4示出了本申请提供的第一数据的可选示意图;
图5示出了本申请提供的数据鉴权规则的可选示意图;
图6示出了本申请提供的需要拦截数据时的可选示意图;
图7示出了本申请提供的数据处理的另一个可选的流程示意图;
图8示出了本申请提供的数据处理的另一个可选的流程示意图;
图9示出了本申请实施例中提供的接入设备的功能模块的可选示意图;
图10示出了本申请实施例中提供的数据鉴权服务器的功能模块的可选示意图;
图11示出了本申请实施例中提供的数据处理设备的硬件结构的可选示意图。
本申请实施例提供了一种数据处理的方法、设备、存储介质及程序产品,可基于数据鉴权服务器反馈的鉴权结果,在接入设备处提前判断拦截或继续传输第一数据,无需升级改造客户端,不仅降低升级改造的成本和难度,而且还能够提高数据拦截的效果。
可以理解的是,在本申请的具体实施方式中,涉及到用户信息等相关的数据,当本申请以上实施例运用到具体产品或技术中时,需要获得用户许可或者同意,且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例如能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
通常情况下,将数据从终端设备发送至服务器,或者从服务器发送至终端设备,均需要事先在终端设备与服务器之间建立传输通道。在建立传输通道后,才能在终端设备与服务器之间传输数据。在某些传输场景中,为了加快传输效率,以及实现各地用户的就近接入,逐渐发展成在终端设备与服务器之间利用云上加速通道来实现。
所描述的云上加速通道,可以理解成利用云平台在终端设备与服务器之间建立起来的一个加速通道。通过该云上加速通道,可以快速地实现将数据在终端设备与服务器之间的传输。图1示出了相关方案中通过加速通道传输数据的示意图。如图1所示,以客户端为终端设备为例,在终端设备需要将数据传输至源站服务器的过程中,由该终端设备先将数据传输至加速通道接入节点,进而通过加速通道接入节点将数据转发至加速通道转发节点。最后,通过加速通道转发节点将数据转发至源站服务器,由此源站服务器接收到该终端设备发送的数据。
在上述数据传输的过程中,目标对象希望某些易泄露的需要保护的数据或者某些用户自定义的数据无需传输至服务器,此时则可以在上述图1示出的传输链路上对这些数据进行拦截处理,以避免相关数据传输至服务器。但在传统的数据拦截的方案中,需要依赖于客户端等终端设备中的SDK工具包来验证数据是否应该被拦截。但是这种拦截方式很容易因为改造和升级的难度和成本较大,造成使用当前的SDK工具包来检验数据的时候,容易造成易泄露的或者用户自定义不需要传输的数据传输至服务器,并不能较好地实现数据拦截,导致数据安全性无法得到保障。而且,需要改造和升级客户端等终端设备来完成数据拦截,导致改造和升级的难度和成本增加。
因此,为了解决上述提及的技术问题,本申请实施例提供了一种数据处理的方法。该数据处理的方法可以应用于图2示出的系统架构中。如图2所示,该系统架构中至少包括终端设备、接入设备、数据鉴权服务器、转发设备以及目标服务器。其中,终端设备依次通过接入设备、转发设备,与目标服务器建立通信连接。另外,接入设备还与数据鉴权服务器建立通信连接,以通过接入设备与数据鉴权服务器实现数据拦截功能。
在本申请中,目标对象通过终端设备向目标服务器发送数据之前,可以事先通过终端设备设置配置信息,用于标识哪些类型的数据可以传输至目标服务器,哪些类型的数据则不希望被传输至目标服务器,由此构建出用户标识与数据的配置信息之间的映射关系。所提及的用户标识可以用来标识目标对象。所提及的配置信息,能够表征用户标识所对应的目标对象针对不同类型的数据(例如后文提及的第一数据)是否被允许传输至目标服务器时的配置情况。需说明,本申请提及的第一数据,可以理解成从终端设备传输至目标服务器时的任意数据。
这样,在设置完成数据的配置信息与用户标识之间的映射关系后,目标对象可以通过终端设备向目标服务器发送访问请求,该访问请求中包括第一数据和用户标识。由于终端设备访问目标服务器需要通过接入设备,故该访问请求会在被目标服务器获取前被接入设备接收到。
接入设备在接收到访问请求后,并不直接通过转发设备将该访问请求发送至目标服务器,而是先检测访问请求是否存在对应的数据鉴权规则。接入设备在检测到数据鉴权规则后,将访问请求转发至数据鉴权服务器。由此,数据鉴权服务器基于用户标识和映射关系查找配置信息,并在查找到配置信息后,基于该配置信息对第一数据进行鉴权处理,从而确定得到鉴权结果。这样,数据鉴权服务器再将鉴权结果发送至接入设备。
接入设备在接收到数据鉴权服务器发送的鉴权结果之后,基于该鉴权结果对第一数据进行拦截处理或者通过转发设备将第一数据传输至目标服务器。也就是说,本申请中通过新增数据鉴权服务器,并利用接入设备与数据鉴权服务器实现数据拦截的功能,能够在第一数据传输至目标服务器之前,提前在接入设备处基于数据鉴权服务器反馈的鉴权结果来决定是否拦截第一数据,无需升级和改造终端设备,不仅避免数据产生泄露,提升数据安全性,并且降低改造和升级的难度和成本。
需说明,上述图2中提及的接入设备可以包括但不限于前述图1中示出的加速通道接入节点,或者其他具备加速功能的接入装置等等,本申请中不做限定。另外,图2中示出的转发设备可包括但不限于图1中示出的加速通道转发节点,或者其他具备加速功能的转发装置等等,本申请中不做限定。图2中示出的目标服务器,可以包括但不限于前述图1中示出的源站服务器,或者其他的业务服务器等,本申请中不做限定。另外,图2中提及的数据鉴权服务器,可以理解成具备数据鉴权功能的服务器或者其他的设备等,本申中不做限定。可选地,本申请提及的数据鉴权服务器,在实际应用中也可以是接入设备中的一个具备数据鉴权功能的装置等。本申请实施例中仅以数据鉴权服务器作为独立于接入设备的鉴权设备为例进行说明,具体不限定数据鉴权服务器的存在方式。
本申请实施例所提供的数据处理方法可以通过计算机设备实施,该计算机设备可以是终端设备或服务器,其中,服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云计算、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(content delivery network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器。终端设备包括但不限于手机、电脑、智能语音交互设备、智能家电、车载终端、飞行器等。终端设备以及服务器可以通过有线或无线通信方式进行直接或间接地连接,本申请在此不做限制。
其中,一些实施例是由作为接入设备的计算机设备执行的,一些实施例是由作为数据鉴权服务器的计算机设备执行的。
示例性地,本申请实施例提供的数据处理的方法还可以应用于人工智能、云技术、智慧物联网、车联网、虚拟游戏等各种场景,本申请中不做限定说明。
下面结合附图对本申请实施例提供的一种数据处理的方法进行介绍。图3示出了本申请实施例提供的数据处理的方法的一种流程图,该方法可以由接入设备执行。如图3所示,该数据处理的方法可以包括如下步骤:
301、终端设备向接入设备发送访问请求,访问请求包括第一数据和用户标识,用户标识与配置信息存在映射关系,配置信息用于指示针对不同类型的数据是否被允许传输至目标服务器。
该示例中,目标对象通过终端设备向目标服务器发送数据之前,可事先通过终端设备设置出配置信息,该配置信息标识出哪些类型的数据可以在传输过程中发送至目标服务器,哪些类型的数据则不希望被传输至目标服务器,由此,可以构建出用户标识与配置信息之间的映射关系。换句话说,本申请中目标对象通过终端设备事先为不同类型的数据设置不同配置信息,以通过配置信息来表明该用户标识对应的目标对象针对各个类型的数据是否被允许传输至目标服务器时的配置情况。
为了能够准确的标识出哪些类型的数据可被传输至目标服务器,哪些类型的数据不可被传输至目标服务器,所描述的配置信息,包括配置状态。通过配置状态,能够反映出目标对象设置是否允许传输某类型的数据至目标服务器时所设置的指示。譬如说,配置状态包括第一设置状态或第二设置状态中的至少一种。所提及的第一设置状态,可以理解成目标对象不允许将某类型的数据传输至目标服务器。作为一个示意性的描述,对于数据信息,开发者等目标对象希望有的类型的数据存储在本地数据库,有的类型的数据则允许上传至服务器进行保存。基于此,目标对象针对不同类型的数据,在配置信息中分别进行不同配置状态的设置。
譬如说,针对个人信息、其他容易泄露的或安全性等级较高的等类型的数据,通常情况下目标对象希望保存在本地数据库。那么,目标对象针对这类型的数据,可以通过终端设备设置相应的配置状态为第一设置状态。
反之,所提及的第二设置状态,则理解成目标对象允许将某类型的数据传输至目标服务器。譬如说,针对不涉及安全性的文件、图片、音频、其他安全性等级较低的等类型的数据,通常情况下目标对象并不太关注这些数据的安全性,允许被传输至目标服务器。那么,目标对象针对这类型的数据,可以通过终端设备设置相应的配置状态为第二设置状态。
举例来说,图4示出了本申请提供的第一数据的可选示意图。如图4所示,以某个服务(例如A服务)、以“A服务的个人信息”为第一数据为例,针对用户名为“12345”的目标对象,目标对象并不希望该“A服务的个人信息”传输至服务器,以用于帮助改进XXX产品及服务。从图4中(a)至(c)部分可以看出,目标对象可以通过“个人信息——>隐私设置——>A服务的个人信息提供”设置中找到一个关于“A服务的个人信息”选项,例如“用于帮助改进XXX产品及服务”。在查询到该第一数据的选项后,目标对象可以针对该“A服务的个人信息”进行状态设置,例如设置成第一设置状态。譬如说,如图4中(c)部分所示,针对该“A服务的个人信息”,目标对象可以“不勾选”对应的设置选项,以此设置该“A服务的个人信息”对应的配置状态为第一设置状态。
这样,目标对象按照自身的业务需求,通过终端设备对不同类型的数据设置不同的设置状态后,终端设备便可以生成与各个类型数据对应的配置信息。进一步地,终端设备还可以将该配置信息与用户标识进行映射,以确定用户标识与配置信息之间的映射关系,便于后续数据鉴权服务器能够在获知访问请求中所携带的用户标识后,可以利用映射关系快速地查找到相应的配置信息,进而通过鉴权确定是否需要将第一数据传输至目标服务器。
这样,终端设备基于目标对象的业务需求生成访问请求后,将该访问请求向目标服务器发送,由于接入设备处于终端设备和目标服务器的数据连接链路中,故接入设备会首先接收到该访问请求。譬如说,可以通过云上加速通道将该访问请求向目标服务器发送。
302、接入设备在检测到访问请求存在对应的数据鉴权规则后,将访问请求转发至数据鉴权服务器。
该示例中,业务运维人员等还可以基于业务需求,事先通过接入设备配置访问协议、数据鉴权结果字段、响应字段等信息,进而使得该接入设备在获取得到访问协议、数据鉴权结果字段、响应字段等信息之后,基于访问协议、数据鉴权结果字段、响应字段等信息生成数据鉴权规则。
基于对访问请求中数据的鉴权需求,数据鉴权规则会与需要进行数据鉴权的访问请求建立对应关系,基于该对应关系来明确哪些访问请求中的数据需要鉴权。例如,针对一些类型的访问请求,其中携带的数据可能有些不应传输至目标服务器,那么,可以将这些类型的访问请求与数据鉴权规则建立对应关系,针对一些类型的访问请求,其中携带的数据中没有不应传输至目标服务器的,那么,可以不建立这些类型的访问请求与数据鉴权规则的对应关系。
所描述的访问协议可以包括但不限于超文本传输协议(hyper Text transfer protocol,HTTP)等,本申请中不做限定。作为一个示意性的描述,本申请中仅以HTTP协议作为访问协议为例,在该HTTP协议中,可以包括请求头、请求体以及请求统一资源定位符(uniform resource locator,URL)等信息。
数据鉴权结果字段,可以包括需要拦截或不需拦截字段。其中,针对需要拦截的数据鉴权结果字段,其对应可以设置相应的第一状态码。譬如说,以HTTP协议为例,此时第一状态码可以为该HTTP协议中的响应码401。针对不需要拦截的数据鉴权结果字段,其对应可以设置相应的第二状态码。例如,以HTTP协议为例,此时第二状态码可以为该HTTP协议中的响应码200。
另外,所描述的响应字段可以包括两种情况下的响应字段,例如需要拦截时向终端设备反馈的响应字段、数据鉴权服务器访问失败时向终端设备反馈的响应字段。譬如说,针对需要拦截时向终端设备反馈的响应字段,其可以通过配置相应的第一响应信息,该第一响应信息中包括响应头、响应体、以及响应码。又或者,针对数据鉴权服务器访问失败时向终端设备反馈的响应字段,其可以通过配置相应的第二响应信息,该第二响应信息包括响应头、响应体、以及响应码。需说明,第一响应信息和第二响应信息之间的区别在于:第一响应信息用于告知终端设备该访问请求已被响应,使得该终端设备不需要感知到访问请求已被拦截;第二响应信息用于告知终端设备该访问请求被数据鉴权服务器访问失败,需要重新传输该访问请求。
举例来说,图5示出了本申请提供的数据鉴权规则的可选示意图。如图5所示,在规则标识(identity,ID)为“11111”对应的数据鉴权规则中,其设置的鉴权地址为“http://gaap-filter.abc.com.cn”,默认失败状态对应的响应码为500,其对应的默认失败响应信息为“c2VydmV...”。另外,在该数据鉴权规则中,需要拦截时的第一状态码为响应码401,不需要拦截时的第二状态码为响应码200等。
通过该数据鉴权规则,能够获知针对该访问请求的具体情况,例如转发规则等等。示例性地,接入设备还可以保存该数据鉴权规则。
接入设备在检测到访问请求存在对应的数据鉴权规则后,便可以向数据鉴权服务器发送访问请求。
也就是说,通过访问请求是否具有对应的数据鉴权规则,来准确的识别出该访问请求中携带的数据(例如第一数据)是否具有拦截的鉴权可能。当访问请求存在对应的数据鉴权规则时,接入设备明确该访问请求携带的第一数据中可能具有不应传输到目标服务器的数据,需要被进行鉴权,当访问请求不存在对应的数据鉴权规则时,接入设备明确该访问请求携带的第一数据均可传输到目标服务器,不需要通过数据鉴权服务器对该访问请求中的数据进行鉴权。
303、数据鉴权服务器基于访问请求中的用户标识和映射关系查找配置信息。
该示例中,接入设备将访问请求发送至数据鉴权服务器后,数据鉴权服务器便能够获取得到该访问请求。这样,在接收到该访问请求后,数据鉴权服务器对该访问请求进行处理,从而提取得到该访问请求中的用户标识和第一数据。数据鉴权服务器通过该用户标识和已知的映射关系,便能够获知需要去了解该用户标识的相关配置情况。因此,数据鉴权服务器在获得用户标识之后,还能够基于该用户标识和映射关系查找相应的配置信息。
需说明,此处所描述的配置信息,可以参照前述步骤301中所描述的配置信息进行理解,此处不做赘述。
304、数据鉴权服务器基于配置信息对第一数据进行鉴权处理,得到鉴权结果。
该示例中,数据鉴权服务器在查找到配置信息后,还需要基于该配置信息对第一数据进行鉴权处理,以得到鉴权结果。通过该鉴权结果,能够了解到针对该第一数据的处理策略,例如拦截处理还是传输处理。所描述的传输处理,可以理解成接入设备将第一数据继续传输至目标服务器。所描述的拦截处理,可以理解成在接入设备将第一数据进行拦截,接入设备不会将第一数据向目标服务器转发,避免第一数据传输至目标服务器。
示例性地,针对数据鉴权服务器如何对第一数据进行鉴权处理,可以参照下述方式进行理解,即:数据鉴权服务器先确定配置信息的配置状态,配置状态包括第一设置状态和第二设置状态。譬如说,数据鉴权服务器可以在配置信息中,查找与第一数据的类型相关的选项设置,例如若“勾选”,则表示与第一数据的类型对应的配置状态为第二设置状态;反之,若为“不勾选”,则表示与第一数据的类型对应的配置状态为第一设置状态。需说明,此处所描述的第一设置状态和第二设置状态,可以参照前述步骤301所描述的内容进行理解,此处不做赘述。在从配置信息中确定出与第一数据的类型对应的配置状态之后,数据鉴权服务器基于配置状态对第一数据进行鉴权处理,从而得到鉴权结果。
譬如说,数据鉴权服务器可以在配置状态为第一设置状态的情况下,确定针对第一数据的鉴权结果为第一状态码。所描述的第一状态码用于表征需要对第一数据进行拦截时的响应代码,例如包括但不限于HTTP协议中的响应码401等。在一些可选的示例中,数据鉴权服务器在确定出针对第一数据的鉴权结果包括第一状态码之后,还可以将该第一状态码对应的第一响应信息加入到鉴权结果中,进而使得在后续向接入设备发送鉴权结果的过程中,能够实现将该第一状态码对应的第一响应信息发送至接入设备。所描述的第一响应信息在被接入设备转发给终端设备后,能够使得终端设备获知访问请求已被响应。
举例来说,图6示出了本申请提供的需要拦截数据时的可选示意图。如图6所示,针对访问请求“X-GAAP-Request-Host:abcd.cn;X-GAAP-Request-Uri:/test/post_request_auth_failed_with_json_response”,数据鉴权服务器可以确定出的鉴权结果包括第一状态码,如“HTTP/1.1 401 Unauthorized”。相应地,对应的第一响应信息为“X-GAAP-Filter-Auth-Http-Status-code:200;X-GAAP-Filter-Auth-Http-Content-type:application/json;X-GAAP-Filter-Auth-Http-X-abc-Environment:test;X-GAAP-Filter-Auth-Http-Body:eyJjb2Rlljox...”。
又或者,数据鉴权服务器也可以在判断出配置状态为第二设置状态的情况下,基于数据鉴权规则确定鉴权结果为第二状态码。所描述的第二状态码用于表征不需要对第一数据进行拦截时的响应代码,例如包括但不限于前述提及的响应码200等。
305、数据鉴权服务器向接入设备发送鉴权结果。
该示例中,数据鉴权服务器在确定出鉴权结果后,可以将该鉴权结果发送至接入设备。
306、接入设备基于鉴权结果对第一数据进行拦截处理或传输处理。
该示例中,在数据鉴权服务器将鉴权结果发送至接入设备后,接入设备便能获取得到该鉴权结果。这样,接入设备可以基于该鉴权结果对第一数据进行拦截处理或者传输处理。示例性地,由于鉴权结果包括第一状态码或第二状态码,而且第一状态码能够指示需要对第一数据进行拦截,第二状态码则指示不需要对第一数据进行拦截。因此,接入设备在获取得到鉴权结果后,通过判断该鉴权结果是第一状态码还是第二状态码,来决定对该第一数据进行拦截处理还是传输处理。具体可以参照下述情况①和情况②的内容进行理解,即:
情况①:鉴权结果包括第一状态码的情况
示例性地,接入设备在判断出鉴权结果包括第一状态码的情况下,则基于该第一状态码对第一数据进行拦截处理,该拦截处理包括不对第一数据进行转发,例如转发给链路后续的转发设备,以避免通过后续的转发设备将该第一数据转发至目标服务器。
可选地,在鉴权结果包括第一状态码的情况下,该鉴权结果还包括与该第一状态码对应的第一响应信息。数据鉴权服务器在将鉴权结果发送至接入设备后,该接入设备还可以从该鉴权结果中提取到该第一响应信息,并在基于第一状态码对第一数据进行拦截处理之后,将该第一响应信息发送至终端设备,以便于通过该第一响应信息告知终端设备,该访问请求已被响应,使得该终端设备无需感知到该访问请求已被接入设备拦截。
情况②:鉴权结果包括第二状态码的情况
示例性地,接入设备也可以在判断鉴权结果包括第二状态码的情况下,基于第二状态码将第一数据通过云上加速通道传输至目标服务器。譬如说,接入设备可以将该第一数据通过云上加速通道转发至转发设备,并继续由转发设备将该第一数据发送至目标服务器中。
由此可见,通过不同的状态码来区分不同的鉴权结果,使得接入设备可以准确的基于状态码确定是否对访问请求中的第一数据进行拦截,避免额外的解析、处理。而且,当通过具体的响应码进行约定后,对于接入设备来说,能够更为便捷的识别出状态码,提高响应效率。
这样,目标服务器在接收到接入设备发送的第一数据之后,对该第一数据进行响应处理,以获得与第一数据对应的第二数据。这样,目标服务器将第二数据映射到访问响应消息中,以通过转发设备将该访问响应消息发送至接入设备。由此,接入设备还可以在基于第二状态码将第一数据通过云上加速通道传输至目标服务器之后,接收目标服务器发送的访问响应消息,并将该访问响应消息发送至终端设备,使得终端设备能够获得与第一数据对应的第二数据。
接入设备除了可以在终端设备访问目标服务器时,对访问请求中的数据进行针对性拦截,还可以在目标服务器处理完访问请求后返回第二数据时,准确的将第二数据转发给终端设备,提高了系统完备性。在另一些可选的示例中,除了上述提及的情况①或情况②以外,如果因为数据鉴权服务器发生设备故障、网络连接故障等情况,导致该数据鉴权服务器无法正常地被访问到的时候,接入设备也依旧需要向终端设备反馈一个响应,以便于终端设备能够获知访问请求失败。在这种情况下,接入设备还可以在检测到数据鉴权规则后,获取第二响应信息。通过该第二响应信息,能够指示针对访问请求对数据鉴权服务器进行访问失败时的响应情况。在获得第二响应信息之后,接入设备还需要向终端设备发送第二响应信息,以使得该终端设备能够在第二响应信息的指示下,重传访问请求。
在另一些可选的示例中,如果接入设备没有检测到数据鉴权规则,那么则表明并不需要对第一数据进行拦截。这时候,接入设备直接将访问请求转发至转发设备,以通过该转发设备将访问请求发送至目标服务器。这样,目标服务器针对该访问请求进行响应后,再依次通过转发设备和接入设备将该响应发送至终端设备。
图7示出了本申请提供的数据处理的另一个可选的流程示意图。如图7所示,该流程至少包括如下步骤:
701、终端设备向接入设备发送访问请求,访问请求包括第一数据和用户标识,用户标识与配置信息存在映射关系,配置信息用于指示针对不同类型的数据是否被允许传输至目标服务器。
702、接入设备在检测到存在数据鉴权规则后,将访问请求转发至数据鉴权服务器。
703、数据鉴权服务器基于访问请求中的用户标识和映射关系查找配置信息。
704、数据鉴权服务器基于配置信息对第一数据进行鉴权处理,得到鉴权结果。
705、数据鉴权服务器向接入设备发送鉴权结果,鉴权结果包括第一状态码和与该第一状态码对应的第一响应信息。
需说明,上述提及的步骤701至步骤705,其可以参照前述图3中步骤301至步骤305中所描述的内容进行理解,此处不做赘述。
706、接入设备基于第一状态码对第一数据进行拦截处理。
该示例中,所描述的第一状态码,可以参照前述图3中步骤304所描述的内容进行理解,此处不做赘述。接入设备在接收到数据鉴权服务器发送的鉴权结果后,若确定出该鉴权结果为第一状态码,则可以基于该第一状态码对第一数据进行拦截处理,以避免该第一数据通过云上加速通道转发至目标服务器中,确保了数据安全。
707、接入设备向终端设备发送第一响应信息。
该示例中,由于第一数据已被接入设备拦截,为了确保终端设备无感知到第一数据对应的访问请求被拦截处理,此时依旧需要向终端设备反馈一个响应。譬如说,数据鉴权服务器将第一状态码对应的第一响应信息添加至鉴权结果中,以发送至接入设备。这样,接入设备在接收到鉴权结果后,在根据第一状态码拦截处理第一数据之后,将该第一响应信息反馈至终端设备。
上述图7主要从实施例的角度描述了对数据拦截时的实现过程,下面将从实施例的角度描述对不拦截数据时的过程。图8示出了本申请提供的数据处理的另一个可选的流程示意图。如图8所示,该流程至少包括如下步骤:
801、终端设备向接入设备发送访问请求,访问请求包括第一数据和用户标识,用户标识与配置信息存在映射关系,配置信息用于指示针对不同类型的数据是否被允许传输至目标服务器。
802、接入设备在检测到存在数据鉴权规则后,将访问请求转发至数据鉴权服务器。
803、数据鉴权服务器基于访问请求中的用户标识和映射关系查找配置信息。
804、数据鉴权服务器基于配置信息对第一数据进行鉴权处理,得到鉴权结果。
805、数据鉴权服务器向接入设备发送鉴权结果,鉴权结果包括第二状态码。
需说明,上述提及的步骤801至步骤805,其可以参照前述图3中步骤301至步骤305中所描述的内容进行理解,此处不做赘述。
806、接入设备基于第二状态码,将第一数据通过云上加速通道传输至目标服务器。
该示例中,所描述的第二状态码,可以参照前述图3中步骤304所描述的内容进行理解,此处不做赘述。接入设备在接收到数据鉴权服务器发送的鉴权结果后,若确定出该鉴权结果为第二状态码,则可以确定并不需要拦截该第一数据。此时,接入设备可以将第一数据通过云上加速通道传输至目标服务器。譬如说,接入设备将第一数据转发至转发设备,继而由转发设备将第一数据转发至目标服务器。
807、目标服务器对第一数据进行响应处理,得到访问响应消息。
该示例中,目标服务器在接收到接入设备发送的第一数据之后,对该第一数据进行响应处理,以获得与第一数据对应的第二数据。这样,目标服务器将第二数据映射到访问响应消息中,以通过转发设备将该访问响应消息发送至接入设备。
808、目标服务器向接入设备发送访问响应消息。
809、接入设备向终端设备发送访问响应消息。
该示例中,目标服务器在确定访问响应消息后,可以将该访问响应消息通过转发设备发送至接入设备,进而使得接入设备再将该访问消息发送至终端设备。
本申请实施例中,将终端设备发送的访问请求、第一数据等发送至目标服务器之前,先由接入设备将访问请求和数据鉴权规则转发至数据鉴权服务器,进而利用数据鉴权服务器针对配置信息进行鉴权处理后反馈的鉴权结果,提前来判断是否拦截该第一数据或者继续传输该第一数据。换句话说,本申请中利用接入设备与数据鉴权服务器实现数据拦截的功能,能够在第一数据传输至目标服务器之前,提前在接入设备处基于数据鉴权服务器反馈的鉴权结果来决定是否拦截第一数据,无需升级和改造终端设备,不仅避免了数据泄露,提升了数据安全性,而且降低了改造和升级的难度和成本。
上述主要从方法的角度对本申请实施例提供的方案进行了介绍。可以理解的是为了实现上述功能,包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本申请中所公开的实施例描述的各示例的模块及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法示例对装置进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
本申请实施例中,术语“模块”或“单元”是指有预定功能的计算机程序或计算机程序的一部分,并与其他相关部分一起工作以实现预定目标,并且可以通过使用软件、硬件(如处理电路或存储器)或其组合来全部或部分实现。同样的,一个处理器(或多个处理器或存储器)可以用来实现一个或多个模块或单元。此外,每个模块或单元都可以是包含该模块或单元功能的整体模块或单元的一部分。
下面对本申请实施例中的接入设备进行详细描述,图9为本申请实施例中提供的接入设备的功能模块的可选示意图。如图9所示,该接入设备可以包括接收单元901、发送单元902以及处理单元903。
其中,接收单元901,用于接收终端设备发送的访问请求,访问请求包括第一数据和用户标识,用户标识与配置信息存在映射关系,配置信息用于指示针对不同类型的数据是否被允许传输至目标服务器。
发送单元902,用于在检测到存在数据鉴权规则后,将访问请求转发至数据鉴权服务器,以使数据鉴权服务器基于用户标识和映射关系查找到配置信息后,基于配置信息对第一数据进行鉴权处理,得到鉴权结果。
处理单元903,用于在接收到数据鉴权服务器发送的鉴权结果后,基于鉴权结果对第一数据进行拦截处理或传输处理。
在一些可选的实施方式中,处理单元903,用于在鉴权结果包括第一状态码时,基于第一状态码对第一数据进行拦截处理,以不向所述目标服务器发送所述第一数据,第一状态码用于表征需要对第一数据进行拦截时的响应代码。
在另一些可选的实施方式中,第一状态码为响应码401。
在另一些可选的实施方式中,鉴权结果还包括与第一状态码对应的第一响应信息;发送单元902,还用于基于第一状态码对第一数据进行拦截处理之后,向终端设备发送第一响应信息,第一响应信息用于终端设备获知访问请求已被响应。
在另一些可选的实施方式中,处理单元903,用于在鉴权结果包括第二状态码时,基于第二状态码将第一数据通过云上加速通道传输至目标服务器,第二状态码用于表征不需要对第一数据进行拦截时的响应代码。
在另一些可选的实施方式中,第二状态码为响应码200。
在另一些可选的实施方式中,接收单元901,还用于基于第二状态码将第一数据通过云上加速通道传输至目标服务器之后,接收目标服务器发送的访问响应消息,访问响应消息包括第二数据,第二数据由目标服务器响应于第一数据得到的数据。发送单元902,用于将访问响应消息转发至终端设备。
在另一些可选的实施方式中,接收单元901,还用于在检测到存在数据鉴权规则后,获取第二响应信息,第二响应信息用于指示针对访问请求对数据鉴权服务器进行访问失败时的响应情况。发送单元902,用于向终端设备发送第二响应信息,第二响应信息用于指示终端设备重传访问请求。
上面从模块化功能实体的角度对本申请实施例中的接入设备进行描述,下面从模块化功能实体的角度对本申请实施例中的数据鉴权服务器进行描述。图10为本申请实施例中提供的数据鉴权服务器的功能模块的可选示意图。如图10所示,该数据鉴权服务器可以包括接收模块1001、处理模块1002以及发送模块1003。
其中,接收模块1001,用于接收接入设备发送的访问请求,访问请求包括第一数据和用户标识,用户标识与配置信息存在映射关系,配置信息用于指示针对不同类型的数据是否被允许传输至目标服务器。
处理模块1002,用于基于访问请求中的用户标识和映射关系查找配置信息。处理模块,用于基于配置信息对第一数据进行鉴权处理,得到鉴权结果。
发送模块1003,用于向接入设备发送鉴权结果,鉴权结果用于接入设备对第一数据进行拦截处理或传输处理。
在一些可选的实施方式中,处理模块1002,用于:确定配置信息的配置状态,针对所述第一数据的第一数据类型,配置状态包括第一设置状态或第二设置状态,第一设置状态用于表征不允许将第一数据类型的数据传输至目标服务器,第二设置状态用于表征允许将第一数据类型的数据传输至目标服务器;基于配置状态对第一数据进行鉴权处理,得到鉴权结果。
在另一些可选的实施方式中,处理模块1002,用于在配置状态为第一设置状态时,确定鉴权结果为第一状态码,第一状态码用于表征需要对第一数据进行拦截时的响应代码。
在另一些可选的实施方式中,鉴权结果还包括与第一状态码对应的第一响应信息,以使接入设备将第一响应信息转发至终端设备,第一响应信息用于终端设备获知访问请求已被响应。
在另一些可选的实施方式中,处理模块1002,用于:在配置状态为第二设置状态时,确定鉴权结果为第二状态码,第二状态码用于表征不需要对第一数据进行拦截时的响应代码。
上面从模块化功能实体的角度对本申请实施例中的接入设备、数据鉴权服务器进行描述,下面从硬件处理的角度对本申请实施例中的数据处理设备进行描述。图11是本申请实施例提供的数据处理设备的结构示意图。该数据处理设备可因配置或性能不同而产生比较大的差异,例如包括但不限于图9中示出的接入设备、图10中示出的数据鉴权服务器等。
如图11所示,该数据处理设备300可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(central processing units,CPU)322(例如,一个或一个以上处理器)和存储器332,一个或一个以上用于存储应用程序342或数据344的存储介质330(例如一个或一个以上海量存储设备)。其中,存储器332和存储介质330可以是短暂存储或持久存储。存储在存储介质330的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对数据处理设备中的一系列指令操作。更进一步地,中央处理器322可以设置为与存储介质330通信,在数据处理设备300上执行存储介质330中的一系列指令操作。示例性地,中央处理器322用于执行存储介质330中存储的应用程序342,从而实现本申请上述实施例提供的数据处理的方法。
数据处理设备300还可以包括一个或一个以上电源326,一个或一个以上有线或无线网络接口350,一个或一个以上输入输出接口358,和/或,一个或一个以上操作系统341,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。
示例性地,图11中的中央处理器322可以通过调用存储器332中存储的计算机执行指令,使得数据处理设备执行如图3至图8对应的方法实施例中的方法。
具体的,图9中的处理单元903和图10中的处理模块1002的功能/实现过程可以通过图11中的中央处理器322调用存储器332中存储的计算机执行指令来实现。图9中的接收单元901和发送单元902、图10中的接收模块1001和发送模块1003的功能/实现过程可以通过图11中的输入输出接口358来实现。
上述实施例中由数据处理设备所执行的步骤可以基于该图11所示的数据处理设备结构。
另外,本申请实施例还提供了一种存储介质,所述存储介质用于存储计算机程序,所述计算机程序用于执行上述实施例提供的方法。
本申请实施例还提供了一种包括计算机程序的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例提供的方法。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机执行指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如SSD))等。
以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。
Claims (18)
- 一种数据处理的方法,应用于接入设备,所述方法包括:接收终端设备发送的访问请求,所述访问请求包括第一数据和用户标识,所述用户标识与配置信息存在映射关系,所述配置信息用于指示针对不同类型的数据是否被允许传输至目标服务器;在检测到所述访问请求存在对应的数据鉴权规则后,将所述访问请求转发至数据鉴权服务器,以使所述数据鉴权服务器基于所述用户标识和所述映射关系查找到所述配置信息后,基于所述配置信息对所述第一数据进行鉴权处理,得到鉴权结果;在接收到所述数据鉴权服务器发送的所述鉴权结果后,基于所述鉴权结果对所述第一数据进行拦截处理或传输处理。
- 根据权利要求1所述的方法,所述基于所述鉴权结果对所述第一数据进行拦截处理或传输处理,包括:在所述鉴权结果包括第一状态码时,基于所述第一状态码对所述第一数据进行拦截处理,以不向所述目标服务器发送所述第一数据,所述第一状态码用于表征需要对所述第一数据进行拦截时的响应代码。
- 根据权利要求2所述的方法,第一状态码为响应码401。
- 根据权利要求2至3中任一项所述的方法,所述鉴权结果还包括与所述第一状态码对应的第一响应信息;所述基于所述第一状态码对所述第一数据进行拦截处理之后,方法还包括:向所述终端设备发送所述第一响应信息,所述第一响应信息用于所述终端设备获知所述访问请求已被响应。
- 根据权利要求1所述的方法,所述基于所述鉴权结果对所述第一数据进行拦截处理或传输处理,包括:在所述鉴权结果包括第二状态码时,基于所述第二状态码将所述第一数据通过云上加速通道传输至所述目标服务器,所述第二状态码用于表征不需要对所述第一数据进行拦截时的响应代码。
- 根据权利要求5所述的方法,所述第二状态码为响应码200。
- 根据权利要求5至6中任一项所述的方法,基于所述第二状态码将所述第一数据通过云上加速通道传输至所述目标服务器之后,所述方法还包括:接收所述目标服务器发送的访问响应消息,所述访问响应消息包括第二数据,所述第二数据由所述目标服务器响应于所述第一数据得到的数据;将所述访问响应消息转发至所述终端设备。
- 根据权利要求1所述的方法,所述在检测到所述访问请求存在对应的数据鉴权规则后,所述方法还包括:获取第二响应信息,所述第二响应信息用于指示针对所述访问请求对所述数据鉴权服务器进行访问失败时的响应情况;向所述终端设备发送所述第二响应信息,所述第二响应信息用于指示所述终端设备重传所述访问请求。
- 一种数据处理的方法,应用于数据鉴权服务器,所述方法包括:接收接入设备发送的访问请求,所述访问请求包括第一数据和用户标识,所述用户标识与配置信息存在映射关系,所述配置信息用于指示针对不同类型的数据是否被允许传输至目标服务器;基于所述用户标识和所述映射关系查找所述配置信息;基于所述配置信息对所述第一数据进行鉴权处理,得到鉴权结果;向所述接入设备发送所述鉴权结果,所述鉴权结果用于指示所述接入设备对所述第一数据进行拦截处理或传输处理。
- 根据权利要求9所述的方法,基于所述配置信息对所述第一数据进行鉴权处理,得到鉴权结果,包括:确定所述配置信息的配置状态,针对所述第一数据的第一数据类型,所述配置状态包括第一设置状态或第二设置状态,所述第一设置状态用于表征不允许将所述第一数据类型的数据传输至所述目标服务器,所述第二设置状态用于表征允许将所述第一数据类型的数据传输至所述目标服务器;基于所述配置状态对所述第一数据进行鉴权处理,得到鉴权结果。
- 根据权利要求10所述的方法,所述基于所述配置状态对所述第一数据进行鉴权处理,得到鉴权结果,包括:在所述配置状态为所述第一设置状态时,确定所述鉴权结果为第一状态码,所述第一状态码用于表征需要对所述第一数据进行拦截时的响应代码。
- 根据权利要求11所述的方法,所述鉴权结果还包括与所述第一状态码对应的第一响应信息,以使所述接入设备将所述第一响应信息转发至终端设备,所述第一响应信息用于所述终端设备获知所述访问请求已被响应。
- 根据权利要求10所述的方法,所述基于所述配置状态对所述第一数据进行鉴权处理,得到鉴权结果,包括:在所述配置状态为所述第二设置状态时,确定所述鉴权结果为第二状态码,所述第二状态码用于表征不需要对所述第一数据进行拦截时的响应代码。
- 一种接入设备,包括:接收单元,用于接收终端设备发送的访问请求,所述访问请求包括第一数据和用户标识,所述用户标识与配置信息存在映射关系,所述配置信息用于指示针对不同类型的数据是否被允许传输至目标服务器;发送单元,用于在检测到所述访问请求存在对应的数据鉴权规则后,将所述访问请求转发至数据鉴权服务器,以使所述数据鉴权服务器基于所述用户标识和所述映射关系查找到所述配置信息后,基于所述配置信息对所述第一数据进行鉴权处理,得到鉴权结果;处理单元,用于在接收到所述数据鉴权服务器发送的所述鉴权结果后,基于所述鉴权结果对所述第一数据进行拦截处理或传输处理。
- 一种数据鉴权服务器,包括:接收模块,用于接收接入设备发送的访问请求,所述访问请求包括第一数据和用户标识,所述用户标识与配置信息存在映射关系,所述配置信息用于指示针对不同类型的数据是否被允许传输至目标服务器;处理模块,用于基于所述用户标识和所述映射关系查找所述配置信息;所述处理模块,用于基于所述配置信息对所述第一数据进行鉴权处理,得到鉴权结果;发送模块,用于向所述接入设备发送所述鉴权结果,所述鉴权结果用于所述接入设备对所述第一数据进行拦截处理或传输处理。
- 一种数据处理设备,包括:输入/输出接口、处理器和存储器,存储器中存储有计算机程序;所述处理器用于执行所述存储器中存储的计算机程序,执行如权利要求1至8中任一所述的方法;或者执行如权利要求9至13中任一所述的方法。
- 一种计算机可读存储介质,所述计算机可读存储介质包括计算机程序,当计算机程序在计算机设备上运行时,使得所述计算机设备执行如权利要求1至8中任一项所述的方法;或者执行如权利要求9至13中任一所述的方法。
- 一种计算机程序产品,计算机程序产品包括计算机程序,当计算机程序在计算机设备上运行时,使得所述计算机设备执行如权利要求1至8中任一项所述的方法;或者执行如权利要求9至13中任一所述的方法。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US19/637,534 US20260238627A1 (en) | 2024-03-25 | 2026-04-02 | Data processing method and device, storage medium, and program product |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410354430.7A CN120710689A (zh) | 2024-03-25 | 2024-03-25 | 一种数据处理的方法、设备、存储介质及程序产品 |
| CN202410354430.7 | 2024-03-25 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US19/637,534 Continuation US20260238627A1 (en) | 2024-03-25 | 2026-04-02 | Data processing method and device, storage medium, and program product |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2025201096A1 true WO2025201096A1 (zh) | 2025-10-02 |
Family
ID=97114786
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2025/082803 Pending WO2025201096A1 (zh) | 2024-03-25 | 2025-03-17 | 一种数据处理的方法、设备、存储介质及程序产品 |
Country Status (3)
| Country | Link |
|---|---|
| US (1) | US20260238627A1 (zh) |
| CN (1) | CN120710689A (zh) |
| WO (1) | WO2025201096A1 (zh) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103650424A (zh) * | 2013-08-20 | 2014-03-19 | 华为技术有限公司 | 一种家庭网关服务功能的实现方法和服务器 |
| CN107733908A (zh) * | 2017-10-26 | 2018-02-23 | 北京知道创宇信息技术有限公司 | 数据包处理方法、装置、网络设备及可读存储介质 |
| CN113507393A (zh) * | 2021-09-08 | 2021-10-15 | 腾讯科技(深圳)有限公司 | 数据加速传输方法、装置、计算机设备和存储介质 |
| CN114928458A (zh) * | 2021-02-03 | 2022-08-19 | 中国移动通信有限公司研究院 | 数据处理方法、装置及智能家居网关 |
| WO2023109337A1 (zh) * | 2021-12-15 | 2023-06-22 | 中兴通讯股份有限公司 | 非独立专网的接入控制方法、装置及存储介质 |
-
2024
- 2024-03-25 CN CN202410354430.7A patent/CN120710689A/zh active Pending
-
2025
- 2025-03-17 WO PCT/CN2025/082803 patent/WO2025201096A1/zh active Pending
-
2026
- 2026-04-02 US US19/637,534 patent/US20260238627A1/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103650424A (zh) * | 2013-08-20 | 2014-03-19 | 华为技术有限公司 | 一种家庭网关服务功能的实现方法和服务器 |
| CN107733908A (zh) * | 2017-10-26 | 2018-02-23 | 北京知道创宇信息技术有限公司 | 数据包处理方法、装置、网络设备及可读存储介质 |
| CN114928458A (zh) * | 2021-02-03 | 2022-08-19 | 中国移动通信有限公司研究院 | 数据处理方法、装置及智能家居网关 |
| CN113507393A (zh) * | 2021-09-08 | 2021-10-15 | 腾讯科技(深圳)有限公司 | 数据加速传输方法、装置、计算机设备和存储介质 |
| WO2023109337A1 (zh) * | 2021-12-15 | 2023-06-22 | 中兴通讯股份有限公司 | 非独立专网的接入控制方法、装置及存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN120710689A (zh) | 2025-09-26 |
| US20260238627A1 (en) | 2026-08-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113672896B (zh) | 接口权限校验方法、系统、电子装置和存储介质 | |
| CN113347206B (zh) | 一种网络访问方法和装置 | |
| CN115086306B (zh) | 一种数据传输方法、装置、电子设备和存储介质 | |
| CN108616490B (zh) | 一种网络访问控制方法、装置及系统 | |
| US9866556B2 (en) | Common internet file system proxy authentication of multiple servers | |
| EP3907973A1 (en) | Method for establishing communication connection and proxy server | |
| WO2020057163A1 (zh) | Mec平台部署方法及装置 | |
| CN106790420B (zh) | 一种多会话通道建立方法和系统 | |
| CN112491776A (zh) | 安全认证方法及相关设备 | |
| CN105450582A (zh) | 业务处理方法、终端、服务器及系统 | |
| CN114826754A (zh) | 一种不同网络间的通信方法及系统、存储介质、电子装置 | |
| WO2025213813A1 (zh) | 基于开放式安全套接层协议建立通信连接的方法、装置 | |
| CN117439745A (zh) | 进程通信控制方法、装置、设备和存储介质 | |
| US12489767B2 (en) | Device communication method and apparatus based on MQTT protocol | |
| US8950000B1 (en) | Application digital rights management (DRM) and portability using a mobile device for authentication | |
| CN112039882B (zh) | 一种消息传输处理方法、系统、设备及存储介质 | |
| CN116156497B (zh) | 一种网关认证方法、装置及存储介质 | |
| US8881241B2 (en) | Method of and system for implementing privacy control | |
| CN111988319B (zh) | 访问控制方法及装置 | |
| CN115348041A (zh) | 一种设备激活方法及装置 | |
| CN116684113A (zh) | 一种基于软件定义边界sdp的业务处理方法及相关装置 | |
| CN120710689A (zh) | 一种数据处理的方法、设备、存储介质及程序产品 | |
| CN113810330A (zh) | 发送验证信息的方法、装置及存储介质 | |
| CN113691545B (zh) | 路由的控制方法、装置、电子设备及计算机可读介质 | |
| EP4513926A1 (en) | Systems and methods for end user authentication |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 25777192 Country of ref document: EP Kind code of ref document: A1 |