[go: up one dir, main page]

WO2026037143A1 - Mini‑program authorization processing - Google Patents

Mini‑program authorization processing

Info

Publication number
WO2026037143A1
WO2026037143A1 PCT/CN2025/112499 CN2025112499W WO2026037143A1 WO 2026037143 A1 WO2026037143 A1 WO 2026037143A1 CN 2025112499 W CN2025112499 W CN 2025112499W WO 2026037143 A1 WO2026037143 A1 WO 2026037143A1
Authority
WO
WIPO (PCT)
Prior art keywords
mini
program
authorization
current user
user
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
Application number
PCT/CN2025/112499
Other languages
French (fr)
Chinese (zh)
Inventor
马莎莎
杨孝强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Publication of WO2026037143A1 publication Critical patent/WO2026037143A1/en
Pending legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

Disclosed in embodiments of the present disclosure are a mini-program authorization processing method, apparatus and device. The solution comprises: entering a centralized scenario page of a specified application, the centralized scenario page having respective entry points of a plurality of mini-programs integrated by the specified application; in the centralized scenario page, initiating to a current user a unified authorization request corresponding to the plurality of mini-programs; if the current user agrees to perform pre-authorization in response to the unified authorization request, triggering the generation of corresponding authorization data; and after the pre-authorization, if the current user enters a corresponding mini-program among the plurality of mini-programs from the corresponding entry point in the centralized scenario page, directly acquiring specified information of the current user in the corresponding mini-program on the basis of the authorization data, so as to perform a service of the corresponding mini‑program for the current user, without requesting authorization from the current user within the corresponding mini‑program.

Description

小程序授权处理Mini Program Authorization Processing 技术领域Technical Field

本公开涉及小程序技术领域,尤其涉及小程序授权处理。This disclosure relates to the field of mini-program technology, and in particular to mini-program authorization processing.

背景技术Background Technology

随着互联网技术的发展和智能手机的使用普及,越来越多的业务通过各类应用进行,由此也产生了一些大中型的综合性平台应用。With the development of internet technology and the widespread use of smartphones, more and more businesses are being conducted through various applications, which has led to the emergence of some large and medium-sized comprehensive platform applications.

综合性平台应用自身所属服务商的一些子应用,或者其他中小服务商的应用,将已方能够提供的服务以小程序的形式,内嵌接入于综合性平台应用中,将综合性平台应用视为母应用,可以依托母应用来运行小程序,从而可以更轻量化地向用户提供服务,用户无需单独再去下载和安装这些小程度对应的应用客户端,从而提高了用户体验,并且有助于通过母应用获得更多流量。Comprehensive platform applications can embed their own services, such as sub-applications of service providers or applications of other small and medium-sized service providers, into the comprehensive platform application in the form of mini-programs. The comprehensive platform application is regarded as the parent application, and the mini-programs can run on the parent application. This allows for a more lightweight service delivery to users, eliminating the need for users to download and install the corresponding mini-program clients separately. This improves the user experience and helps to obtain more traffic through the parent application.

在这样的背景下,母应用往往会接入很多小程序,则一些用户在母应用中也可以频繁地访问不同的小程序。目前的小程序通常需要用户在使用时提供地理位置、头像昵称、手机号、优惠、消息等信息的授权,小程序会通过弹窗请求用户授权,在这种情况下,对于短时间内访问不同的小程序的用户而言,相应地会被不同的小程序的授权请求弹窗频繁打扰,从而影响用户体验,进而会影响小程序获取和转化流量的有效性,甚至还可能造成母应用自身因此流失用户。In this context, parent applications often integrate with many mini-programs, meaning some users can frequently access different mini-programs within the parent application. Currently, mini-programs typically require users to authorize information such as location, profile picture/nickname, phone number, discounts, and messages. Mini-programs request authorization via pop-ups. In this situation, users accessing different mini-programs within a short period are frequently disturbed by these authorization request pop-ups, impacting user experience and consequently affecting the effectiveness of mini-programs in acquiring and converting traffic. This could even lead to user churn for the parent application itself.

基于此,在母应用接入了多个小程序的场景下,需要用户体验更好的小程序授权方案。Therefore, in scenarios where the parent application integrates multiple mini-programs, a mini-program authorization solution with a better user experience is needed.

发明内容Summary of the Invention

本公开一个或多个实施例提供一种小程序授权处理方法、装置、设备以及存储介质,用以解决如下技术问题:在母应用接入了多个小程序的场景下,需要用户体验更好的小程序授权方案。This disclosure provides one or more embodiments of a mini-program authorization processing method, apparatus, device, and storage medium to solve the following technical problem: in scenarios where a parent application accesses multiple mini-programs, a mini-program authorization scheme with a better user experience is needed.

为解决上述技术问题,本公开一个或多个实施例是这样实现的:本公开一个或多个实施例提供的一种小程序授权处理方法,包括:进入指定应用的中心化场景页面,所述中心化场景页面具有所述指定应用所接入的多个小程序分别的入口;在所述中心化场景页面中,向当前用户发起对应于所述多个小程序的统一授权请求;若所述当前用户响应于所述统一授权请求同意进行前置授权,则触发相应的授权数据生成;在所述前置授权后,若所述当前用户从所述中心化场景页面中的所述入口,进入所述多个小程序中的对应小程序,则在所述对应小程序中根据所述授权数据,直接获取所述当前用户的指定信息,用于为所述当前用户进行所述对应小程序的业务,而不在所述对应小程序中向所述当前用户请求授权。To address the aforementioned technical problems, one or more embodiments of this disclosure provide a method for processing mini-program authorization, comprising: entering a centralized scene page of a specified application, the centralized scene page having entry points for multiple mini-programs accessed by the specified application; in the centralized scene page, initiating a unified authorization request corresponding to the multiple mini-programs to the current user; if the current user agrees to pre-authorization in response to the unified authorization request, triggering the generation of corresponding authorization data; after the pre-authorization, if the current user enters a corresponding mini-program from the entry point in the centralized scene page, the specified information of the current user is directly obtained in the corresponding mini-program based on the authorization data, and used to perform the business of the corresponding mini-program for the current user, without requesting authorization from the current user in the corresponding mini-program.

本公开一个或多个实施例提供的一种小程序授权处理装置,包括:中心化场景进入模块,进入指定应用的中心化场景页面,所述中心化场景页面具有所述指定应用所接入的多个小程序分别的入口;统一授权请求模块,在所述中心化场景页面中,向当前用户发起对应于所述多个小程序的统一授权请求;授权数据触发模块,若所述当前用户响应于所述统一授权请求同意进行前置授权,则触发相应的授权数据生成;小程序快捷处理模块,在所述前置授权后,若所述当前用户从所述中心化场景页面中的所述入口,进入所述多个小程序中的对应小程序,则在所述对应小程序中根据所述授权数据,直接获取所述当前用户的指定信息,用于为所述当前用户进行所述对应小程序的业务,而不在所述对应小程序中向所述当前用户请求授权。This disclosure provides a mini-program authorization processing device according to one or more embodiments, comprising: a centralized scene entry module, which enters a centralized scene page of a specified application, the centralized scene page having separate entry points for multiple mini-programs accessed by the specified application; a unified authorization request module, which initiates a unified authorization request corresponding to the multiple mini-programs to the current user in the centralized scene page; an authorization data triggering module, which triggers the generation of corresponding authorization data if the current user agrees to pre-authorization in response to the unified authorization request; and a mini-program quick processing module, which, after pre-authorization, if the current user enters a corresponding mini-program from the entry point in the centralized scene page, directly obtains the specified information of the current user in the corresponding mini-program based on the authorization data, and uses it to perform the business of the corresponding mini-program for the current user, without requesting authorization from the current user in the corresponding mini-program.

本公开一个或多个实施例提供的一种小程序授权处理设备,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行:进入指定应用的中心化场景页面,所述中心化场景页面具有所述指定应用所接入的多个小程序分别的入口;在所述中心化场景页面中,向当前用户发起对应于所述多个小程序的统一授权请求;若所述当前用户响应于所述统一授权请求同意进行前置授权,则触发相应的授权数据生成;在所述前置授权后,若所述当前用户从所述中心化场景页面中的所述入口,进入所述多个小程序中的对应小程序,则在所述对应小程序中根据所述授权数据,直接获取所述当前用户的指定信息,用于为所述当前用户进行所述对应小程序的业务,而不在所述对应小程序中向所述当前用户请求授权。This disclosure provides a mini-program authorization processing device according to one or more embodiments, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform: entering a centralized scene page of a specified application, the centralized scene page having separate entry points for multiple mini-programs accessed by the specified application; in the centralized scene page, initiating a unified authorization request corresponding to the multiple mini-programs to the current user; if the current user agrees to pre-authorization in response to the unified authorization request, triggering the generation of corresponding authorization data; after the pre-authorization, if the current user enters a corresponding mini-program from the entry point in the centralized scene page, the specified information of the current user is directly obtained in the corresponding mini-program based on the authorization data, and used to perform the business of the corresponding mini-program for the current user, without requesting authorization from the current user in the corresponding mini-program.

本公开一个或多个实施例提供的一种非易失性计算机存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为:进入指定应用的中心化场景页面,所述中心化场景页面具有所述指定应用所接入的多个小程序分别的入口;在所述中心化场景页面中,向当前用户发起对应于所述多个小程序的统一授权请求;若所述当前用户响应于所述统一授权请求同意进行前置授权,则触发相应的授权数据生成;在所述前置授权后,若所述当前用户从所述中心化场景页面中的所述入口,进入所述多个小程序中的对应小程序,则在所述对应小程序中根据所述授权数据,直接获取所述当前用户的指定信息,用于为所述当前用户进行所述对应小程序的业务,而不在所述对应小程序中向所述当前用户请求授权。This disclosure provides a non-volatile computer storage medium storing computer-executable instructions, which are configured to: enter a centralized scene page of a specified application, the centralized scene page having entry points for multiple mini-programs accessed by the specified application; in the centralized scene page, initiate a unified authorization request to the current user corresponding to the multiple mini-programs; if the current user agrees to pre-authorization in response to the unified authorization request, trigger the generation of corresponding authorization data; after the pre-authorization, if the current user enters the corresponding mini-program from the entry point in the centralized scene page, the corresponding mini-program directly obtains the specified information of the current user based on the authorization data, and uses it to perform the business of the corresponding mini-program for the current user, without requesting authorization from the current user in the corresponding mini-program.

本公开一个或多个实施例采用的上述至少一个技术方案能够达到以下有益效果:考虑到若当前用户进入到指定应用(作为母应用)的中心化场景页面时,有极大概率会以该页面提供的不同的小程序入口,进入小程序,并且还可能退出该小程序回到该页面,又进入其他小程序,从而短时间内使用多个不同的小程序,因此,在用户初始时到达中心化场景页面时,可以代表多个小程序,统一地向用户请求进行前置授权,而不分别在用户后续可能从此处进一步进入的小程序中单独向用户请求授权,从而大大降低了授权弹窗对用户的打扰;不仅如此,在用户同意前置授权的情况下,这样的授权可以方便地由母应用来统一掌控,防止小程序滥用,可以使得只有用户从中心化场景页面实际进入某个小程序后,才使得该小程序能够真正使用所授权限,而若用户尚未进入该小程序,则即使用户已经进行了前置授权,仍然可以不允许该小程序使用所授权限,并且,还可以将前置授权的有效性收敛到该中心化场景页面的管辖范围内,使得用户若从该中心化场景页面以外的渠道进入该小程序,仍然可以不允许该小程序使用所授权限;从而提高了安全性;因此,上述方案能够有效地提高用户体验和兼顾了安全性。The above-described at least one technical solution adopted in one or more embodiments of this disclosure can achieve the following beneficial effects: Considering that when a user enters the centralized scene page of a specified application (as the parent application), there is a high probability that the user will enter a mini-program through different mini-program entry points provided on the page, and may also exit the mini-program and return to the page, and then enter other mini-programs, thus using multiple different mini-programs in a short period of time, therefore, when the user initially arrives at the centralized scene page, it can represent multiple mini-programs and uniformly request the user for prior authorization, instead of separately requesting authorization from the user in the mini-programs that the user may further enter from here, thereby greatly reducing the disturbance of authorization pop-ups to the user; Moreover, when using With prior authorization from the user, this authorization can be easily controlled by the parent application, preventing abuse by mini-programs. It ensures that a mini-program can only truly use its authorized permissions after the user actually enters it from a centralized scenario page. If the user has not yet entered the mini-program, even if prior authorization has been granted, the mini-program may still be denied access to its authorized permissions. Furthermore, the effectiveness of prior authorization can be consolidated within the jurisdiction of the centralized scenario page, meaning that if the user enters the mini-program from a channel outside the centralized scenario page, the mini-program may still be denied access to its authorized permissions, thus improving security. Therefore, the above solution effectively improves user experience while ensuring security.

附图说明Attached Figure Description

为了更清楚地说明本公开实施例或相关技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。To more clearly illustrate the technical solutions in the embodiments or related technologies of this disclosure, the accompanying drawings used in the description of the embodiments or prior art will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments recorded in this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

图1为本公开一个或多个实施例提供的一种小程序授权处理方法的流程示意图;Figure 1 is a flowchart illustrating a method for processing mini-program authorization according to one or more embodiments of this disclosure;

图2为本公开一个或多个实施例提供的一种在小程序中获取用户的指定信息的方案的流程示意图;Figure 2 is a flowchart illustrating a scheme for obtaining specified user information in a mini-program according to one or more embodiments of this disclosure;

图3为本公开一个或多个实施例提供的一种应用场景下的小程序快捷授权处理方案的流程示意图;Figure 3 is a flowchart illustrating a quick authorization processing scheme for mini-programs in an application scenario provided by one or more embodiments of this disclosure;

图4为本公开一个或多个实施例提供的图3中方案的一些页面效果示意图;Figure 4 is a schematic diagram of some page effects of the scheme in Figure 3 provided by one or more embodiments of this disclosure;

图5为本公开一个或多个实施例提供的一种配合前置授权的风险防御方案的流程示意图;Figure 5 is a flowchart illustrating a risk defense scheme in conjunction with pre-authorization provided by one or more embodiments of this disclosure;

图6为本公开一个或多个实施例提供的一种母应用针对小程序的用户保护方案的流程示意图;Figure 6 is a flowchart illustrating a user protection scheme for a mini-program provided by one or more embodiments of this disclosure;

图7为本公开一个或多个实施例提供的一种小程序授权处理装置的结构示意图;Figure 7 is a schematic diagram of the structure of a mini-program authorization processing device provided in one or more embodiments of the present disclosure;

图8为本公开一个或多个实施例提供的一种小程序授权处理设备的结构示意图。Figure 8 is a schematic diagram of the structure of a mini-program authorization processing device provided in one or more embodiments of this disclosure.

具体实施方式Detailed Implementation

本公开实施例提供一种小程序授权处理方法、装置、设备以及存储介质。This disclosure provides a method, apparatus, device, and storage medium for processing mini-program authorization.

为了使本技术领域的人员更好地理解本公开中的技术方案,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本公开实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。To enable those skilled in the art to better understand the technical solutions in this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this application.

正如背景技术中所提到的,目前,对于一些大中型综合性平台应用,用户在中心化场景下进入小程序,可能存在频繁弹窗、流程冗长混乱等体验问题。由此也带来了更多负面影响,包括:平台和商家流程耗损大,运营成本浪费,比如,对于中心化场景进入的小程序,当小程序为非知名商家时,由于用户不了解场景且无品牌背书,体验差时授权通过率较低;平台满意度低,影响用户复访和留存,比如,中心化进入的用户有诉求的知名小程序,虽然由于定向消费和品牌背书,当次授权通过率可能不受影响,但是对比其他可能做得更好的平台可能会影响用户对本平台的整体满意度,从而影响本平台的竞争力。As mentioned in the background section, currently, for some large and medium-sized comprehensive platform applications, users entering mini-programs in centralized scenarios may experience issues such as frequent pop-ups and lengthy, confusing processes. This also brings more negative impacts, including: high process overhead for both platforms and merchants, and wasted operational costs. For example, for mini-programs entered in centralized scenarios, when the mini-program is from a lesser-known merchant, the authorization approval rate is low due to users' lack of understanding of the scenario and brand endorsement, resulting in a poor experience; low platform satisfaction affects user return visits and retention. For example, for well-known mini-programs where users have specific needs, although the authorization approval rate may not be affected in the first instance due to targeted consumption and brand endorsement, it may affect users' overall satisfaction with the platform compared to other platforms that may perform better, thereby impacting the platform's competitiveness.

为了解决这些问题,本申请在平台中心化流量分发的场景下,可以快捷地向用户请求前置授权,而尽量避免在各小程序分别单独请求授权,从而能够降低多次弹窗打扰,且无需小程序进行麻烦的适配改造,有助于提高提升用户体验、平台满意度和引流转化率。下面基于这样的总体思路,对本申请的方案继续说明。To address these issues, this application, in scenarios with centralized traffic distribution on a platform, can quickly request prior authorization from users, minimizing the need for separate authorization requests for each mini-program. This reduces the intrusion of multiple pop-up windows and eliminates the need for cumbersome adaptation modifications to mini-programs, thereby improving user experience, platform satisfaction, and traffic conversion rates. Based on this overall approach, the solution outlined in this application will be further explained below.

关于授权,基于个人信息保护的合法正当、最小必要原则,保障用户的知情权和自主权,当第三方或其他非信息持有方需要获取用户留存在当前平台的信息来完成服务时,需要获取用户的充分同意。比如,假定用户要在当前平台上使用其他平台提供的打车服务,目前,用户一般有两种选择,一种是选择输入新的手机号注册新账号;另一种是选择利用当前平台账号快速登录,在这种情况下用户是同意了向该其他平台授权自己在当前平台的账号信息。Regarding authorization, based on the principles of legality, legitimacy, and minimum necessity in personal information protection, and to safeguard users' right to know and autonomy, when a third party or other non-information holder needs to obtain information stored by a user on the current platform to complete a service, the user's full consent must be obtained. For example, suppose a user wants to use a ride-hailing service provided by another platform on the current platform. Currently, users generally have two options: one is to enter a new mobile phone number to register a new account; the other is to quickly log in using their current platform account. In this case, the user agrees to authorize the other platform to access their account information on the current platform.

图1为本公开一个或多个实施例提供的一种小程序授权处理方法的流程示意图。该流程的执行主体可以包括指定应用的客户端(这里可以将客户端中接入的小程序也与客户端视为一体),还可以包括对应的服务端,对于客户端的情况,硬件方面的执行主体还包括客户端所在的设备,比如用户的智能手机、平板电脑等。Figure 1 is a flowchart illustrating a mini-program authorization processing method provided by one or more embodiments of this disclosure. The execution entity of this process may include the client of the specified application (the mini-program accessed by the client can also be considered as part of the client), and may also include the corresponding server. In the case of the client, the hardware execution entity may also include the device where the client is located, such as the user's smartphone, tablet, etc.

图1中的流程包括以下步骤。The process in Figure 1 includes the following steps.

S102:进入指定应用的中心化场景页面,所述中心化场景页面具有所述指定应用所接入的多个小程序分别的入口。S102: Enter the centralized scene page of the specified application, which has separate entry points for multiple mini-programs accessed by the specified application.

在本公开一个或多个实施例中,指定应用可以是背景技术中提到的母应用,尤其可以是流量较大的大中型平台型应用,其通过一个或多个中心化场景页面,为合作接入的多个小程序进行引流,以提高用户们对这些小程序的访问量。In one or more embodiments of this disclosure, the designated application may be the parent application mentioned in the background art, especially a large or medium-sized platform application with high traffic, which drives traffic to multiple mini-programs that are connected in cooperation through one or more centralized scene pages, so as to increase the number of users accessing these mini-programs.

这里所说的中心化场景,实质上即为中心化流量分发场景,是平台为其他合作方提供的中心化的流量入口,中心化场景页面尤其可以是该场景下的主页。比如,某支付平台提供的消费圈、市民中心、游戏中心、医疗中心等业务场景主页面,这就类似于线下的商业综合体进大门后的公共区域,用户可以自由选择去往自己有兴趣的店铺(类似于小程序)。The centralized scenarios mentioned here are essentially centralized traffic distribution scenarios, which are centralized traffic entry points provided by the platform to other partners. Centralized scenario pages can especially be the homepage within that scenario. For example, the main pages of business scenarios such as consumer circles, citizen centers, game centers, and medical centers provided by a payment platform are similar to the public areas after entering the main gate of an offline commercial complex, where users can freely choose to go to the shops they are interested in (similar to mini-programs).

小程序分别的入口,在中心化场景页面中通常以有相应的图标、卡片或文字等链接形式来呈现,用户点击即可跳转进入对应的小程序。需要说明的是,跳转进入小程序后,用户一般仍处于指定应用中,不过,根据合作方式和技术实现方式的不同,也可以使得用户脱离指定应用,在这种情况下,可以基于应用间的合作或操作系统层面上的协助,来继续实现本申请的方案,则该方案的执行主体可以相应增加。The entry points for each mini-program are typically presented as links with corresponding icons, cards, or text on centralized application pages. Users can click to jump to the corresponding mini-program. It should be noted that after jumping to the mini-program, the user is generally still in the designated application. However, depending on the cooperation method and technical implementation, the user can also leave the designated application. In this case, the solution proposed in this application can continue to be implemented based on cooperation between applications or assistance at the operating system level, and the number of entities implementing the solution can be increased accordingly.

S104:在所述中心化场景页面中,向当前用户发起对应于所述多个小程序的统一授权请求。S104: In the centralized scene page, initiate a unified authorization request to the current user corresponding to the multiple mini-programs.

在本公开一个或多个实施例中,在中心化场景页面中,向当前用户弹窗,通过所弹窗口发起对应于多个小程序的统一授权请求,以便当前用户通过与所弹窗口交互而进行授权。除了弹窗方式以外,也可以采用其他方式,比如,横幅、标记、额外小屏幕通知等方式。当然,这些方式实际上都可能给用户带来一定的打扰,不过本申请正是为了用这一次可能的打扰,来换取后续无需再在不同的小程序中多次打扰用户,因此全局而言是非常划算的。In one or more embodiments of this disclosure, a pop-up window is displayed to the current user on a centralized scene page. This pop-up window initiates a unified authorization request corresponding to multiple mini-programs, allowing the current user to authorize the request by interacting with the pop-up window. Besides pop-ups, other methods can also be used, such as banners, tags, or additional small-screen notifications. While these methods may potentially be somewhat disruptive to the user, this application aims to use this potential disruption to avoid repeatedly disturbing the user in different mini-programs, making it a very worthwhile approach overall.

在本公开一个或多个实施例中,统一授权请求所请求进行的授权称为前置授权,即在当前用户进入各小程序之前,预先进行的授权,但是,需要注意的是,这里的所授权限虽然是统一针对了这多个小程序,但是同时又受到指定应用的管控。也即,实质上是用户是在授权给指定应用,可以由指定应用根据需要控制所受权限具体何时生效,具体对哪个小程序生效,如此避免授权泛化,多个小程序滥用权限,另外,即时是指定应用本身,也可以根据与用户的预先协商或平台本身的安全策略,来限制指定应用具体在怎样的条件下才能够使用该权限。In one or more embodiments of this disclosure, the authorization requested by the unified authorization request is called pre-authorization, which means that authorization is performed in advance before the current user enters each mini-program. However, it should be noted that although the authorization here is uniformly applied to these multiple mini-programs, it is also subject to the control of a designated application. That is, in essence, the user is authorizing a designated application, which can control when the granted permission takes effect and which mini-program it applies to as needed. This avoids authorization generalization and abuse of permissions by multiple mini-programs. In addition, even the designated application itself can restrict the specific conditions under which the designated application can use the permission based on prior negotiation with the user or the platform's own security policy.

S106:若所述当前用户响应于所述统一授权请求同意进行前置授权,则触发相应的授权数据生成。S106: If the current user agrees to pre-authorization in response to the unified authorization request, the corresponding authorization data is generated.

以弹窗进行统一授权请求为例,当前用户则可以通过在所弹窗口中点击相应的按钮,以下达同意前置授权或拒绝前置授权的指示。若用户同意,则会相应生成用于描述本次同意授权情况或用于作为授权凭据的授权数据,以便用于后续验证权限,授权数据可以在当前的用户终端上生成,也可以在对应的服务端上生成,可以取决于后续要在本地验证还是远端验证。授权数据可以指示已授权的状态,还可以指示是针对哪个中心化场景或哪个中心化场景页面授权的,根据需要还可以进行更多方面的指示,比如,指示授权有效时间范围、授权业务范围等。Taking a unified authorization request via a pop-up window as an example, the current user can click the corresponding button in the pop-up window to indicate whether they agree to or refuse prior authorization. If the user agrees, authorization data will be generated to describe the authorization status or serve as authorization credentials for subsequent permission verification. This authorization data can be generated on the current user's terminal or on the corresponding server, depending on whether local or remote verification is required. The authorization data can indicate the authorized status, the specific centralized scenario or page for which the authorization was granted, and more, such as the effective time range or scope of authorized business.

S108:在所述前置授权后,若所述当前用户从所述中心化场景页面中的所述入口,进入所述多个小程序中的对应小程序,则在所述对应小程序中根据所述授权数据,直接获取所述当前用户的指定信息,用于为所述当前用户进行所述对应小程序的业务,而不在所述对应小程序中向所述当前用户请求授权。S108: After the prior authorization, if the current user enters the corresponding mini-program among the multiple mini-programs from the entry point in the centralized scene page, the specified information of the current user is directly obtained in the corresponding mini-program according to the authorization data, and used to perform the business of the corresponding mini-program for the current user, without requesting authorization from the current user in the corresponding mini-program.

指定信息属于需要获得当前用户授权才能够获取的信息,其通常是涉及用户隐私的信息,比如,可以是用户的地理位置、头像昵称、手机号、优惠等。在未进行前置授权的情况下,若当前用户从中心化场景页面中的入口,进入多个小程序中的对应小程序,该小程序若想要获取当前用户的指定信息,则该小程序需要像背景技术所说的那样,在该小程序中向用户发起授权请求(通常是弹窗形式),用户同意授权后,才能够获取当前用户的指定信息。而在步骤S108中,所说的“直接获取”,指无需在对应小程序中打扰(比如,弹窗)用户以请求授权,即能够获取当前用户的指定信息,基于对授权数据的校验,若校验通过则能够获取。The specified information requires the current user's authorization to access and typically involves user privacy, such as the user's location, profile picture/nickname, phone number, and discounts. Without prior authorization, if the current user enters one of multiple mini-programs from a centralized page, and that mini-program wants to access the specified information, it needs to initiate an authorization request (usually via a pop-up) within the mini-program itself, as described in the background. Only after the user agrees to the authorization can the specified information be accessed. However, in step S108, "direct access" means that the specified information can be accessed without disturbing the user (e.g., via a pop-up) within the corresponding mini-program to request authorization. Based on the verification of the authorization data, if the verification passes, the information can be accessed.

进一步地,指定信息可以是及时动态更新的信息,比如,实时地理位置、实时订单信息、用户实时行为操作等,以便小程序能够更有针对性地迎合用户情况进行即时服务。Furthermore, the specified information can be timely and dynamically updated information, such as real-time geographical location, real-time order information, and real-time user behavior, so that the mini-program can provide more targeted and timely services to meet the user's needs.

在本公开一个或多个实施例中,前面提到指定应用可以对所授权限进行管控,具体比如,在前置授权后,可以使在当前用户从中心化场景页面中的入口,进入对应小程序之前,不允许对应小程序直接获取当前用户的指定信息,只有进入后才能够获取。另外,若当前用户是从中心化场景页面以外的其他渠道进入对应小程序的,也可以不允许使用所授权限,在这种情况下,用户进行的前置权限实际上是比较严格地针对中心化场景页面的,如此有助于保障用户的信息安全。In one or more embodiments of this disclosure, as mentioned above, the designated application can control the authorized permissions. Specifically, for example, after prior authorization, the corresponding mini-program may not be allowed to directly obtain the user's specified information before the current user enters the mini-program from the centralized scene page; such information can only be obtained after entry. Furthermore, if the current user enters the corresponding mini-program from a channel other than the centralized scene page, the authorized permissions may also be disallowed. In this case, the prior permissions granted by the user are actually quite strict and targeted at the centralized scene page, thus helping to protect the user's information security.

通过图1的方法,考虑到若当前用户进入到指定应用(作为母应用)的中心化场景页面时,有极大概率会以该页面提供的不同的小程序入口,进入小程序,并且还可能退出该小程序回到该页面,又进入其他小程序,从而短时间内使用多个不同的小程序,因此,在用户初始时到达中心化场景页面时,可以代表多个小程序,统一地向用户请求进行前置授权,而不分别在用户后续可能从此处进一步进入的小程序中单独向用户请求授权,从而大大降低了授权弹窗对用户的打扰;不仅如此,在用户同意前置授权的情况下,这样的授权可以方便地由母应用来统一掌控,防止小程序滥用,可以使得只有用户从中心化场景页面实际进入某个小程序后,才使得该小程序能够真正使用所授权限,而若用户尚未进入该小程序,则即使用户已经进行了前置授权,仍然可以不允许该小程序使用所授权限,并且,还可以将前置授权的有效性收敛到该中心化场景页面的管辖范围内,使得用户若从该中心化场景页面以外的渠道进入该小程序,仍然可以不允许该小程序使用所授权限;从而提高了安全性;因此,上述方案能够有效地提高用户体验和兼顾了安全性。Using the method shown in Figure 1, considering that when a user enters the centralized scene page of a specified application (as the parent application), there is a high probability that they will enter different mini-programs through different entry points provided on that page, and may also exit the mini-program and return to the same page, only to enter other mini-programs, thus using multiple different mini-programs in a short period of time, the method can request prior authorization from the user on behalf of multiple mini-programs when the user initially arrives at the centralized scene page. This avoids requesting authorization separately from each mini-program the user might subsequently enter from there, greatly reducing the intrusion of authorization pop-ups on the user. Furthermore, if the user agrees to the prior authorization, this... The authorization can be easily controlled centrally by the parent application, preventing abuse by mini-programs. It ensures that a mini-program can only truly use its authorized permissions after a user actually enters it from a centralized scenario page. Even if the user has granted prior authorization, the mini-program may still be denied permission if the user has not yet entered the mini-program. Furthermore, the effectiveness of prior authorization can be consolidated within the jurisdiction of the centralized scenario page, meaning that if a user enters the mini-program from a channel outside the centralized scenario page, the mini-program may still be denied permission to use its authorized permissions, thus improving security. Therefore, the above solution effectively improves user experience while ensuring security.

基于图1的方法,本公开还提供了该方法的一些具体实施方案和扩展方案,下面继续进行说明。Based on the method in Figure 1, this disclosure also provides some specific implementation schemes and extension schemes of the method, which will be further explained below.

本公开一个或多个实施例提供了一种在小程序中获取用户的指定信息的方案的流程示意图,如图2所示。This disclosure provides a flowchart illustrating a scheme for obtaining specified user information in a mini-program, as shown in Figure 2, through one or more embodiments.

图2中的流程包括以下步骤。The process shown in Figure 2 includes the following steps.

S202:在所述前置授权后,确定所生成的相应的授权数据,所述相应的授权数据包括所述当前用户的用户标识、所述中心化场景页面对应的中心化场景标识,以及已授权状态信息之间的对应关系。S202: After the prior authorization, determine the corresponding authorization data generated. The corresponding authorization data includes the user identifier of the current user, the centralized scene identifier corresponding to the centralized scene page, and the correspondence between the authorized status information.

还可以将相应的小程序标识加入上述对应关系,以便能够单独针对某个小程序来维护上述对应关系。You can also add the corresponding mini-program identifier to the above correspondence so that you can maintain the above correspondence for a specific mini-program.

前置授权默认是针对中心化场景标识对应的中心化场景中全部小程序的,但是,对于用户而言,未必都能信任这些小程序,甚至有可能会反感某个小程序,因此,可以向用户提供单独管理手段。比如,在前置授权后,可以向当前用户展示多个小程序对应的授权设置选项,若接收到当前用户通过操作授权设置选项,针对多个小程序中任一小程序设置取消授权,则确定前置授权对该任一小程序失效(比如,可以从上述对应关系中,将该任一小程序的标识去除),以使得不允许任一小程序根据授权数据,直接获取当前用户的指定信息,而仍然允许多个小程序中未被取消的其他小程序根据授权数据,直接获取当前用户的指定信息;类似地,用户也可以预先将进行上述设置。Pre-authorization by default applies to all mini-programs within a centralized scenario corresponding to the centralized scenario identifier. However, users may not trust all of these mini-programs, and may even dislike a particular mini-program. Therefore, a separate management method can be provided to users. For example, after pre-authorization, authorization settings options for multiple mini-programs can be displayed to the current user. If the current user cancels authorization for any of the multiple mini-programs by operating the authorization settings options, it is determined that the pre-authorization is invalid for that mini-program (for example, the identifier of that mini-program can be removed from the above correspondence). This prevents any mini-program from directly obtaining the current user's specified information based on the authorization data, while still allowing other mini-programs among the multiple mini-programs that have not had their authorization canceled to directly obtain the current user's specified information based on the authorization data. Similarly, users can also make the above settings in advance.

S204:在从所述中心化场景页面中的所述入口,进入所述多个小程序中的对应小程序时,将所述中心化场景页面对应的中心化场景标识发送给服务端,以便所述服务端校验。S204: When entering the corresponding mini-program among the multiple mini-programs from the entry point in the centralized scene page, the centralized scene identifier corresponding to the centralized scene page is sent to the server for verification by the server.

服务端可以校验所接收到的对应的中心化场景标识是否与已生成的授权数据匹配,根据匹配结果确定是否允许对应小程序直接获取用户的信息。比如,若通过匹配确定某已生成的授权数据中包含的中心化场景标识,即为服务端当前所接收到的对应的中心化场景标识,且双方诸如用户标识、授权范围等方面也匹配,则可以允许对应小程序直接获取用户的信息,否则可以拒绝。该校验的动作也可以在用户终端上进行,对于这种情况,可以预先将授权数据保存在用户终端上,从而能够高效校验。The server can verify whether the received centralized scenario identifier matches the generated authorization data, and determine whether to allow the corresponding mini-program to directly access user information based on the matching result. For example, if the matching determines that the centralized scenario identifier contained in a generated authorization data is the same as the centralized scenario identifier currently received by the server, and both parties also match in aspects such as user identifier and authorization scope, then the corresponding mini-program can be allowed to directly access user information; otherwise, it can be rejected. This verification can also be performed on the user's terminal. In this case, the authorization data can be pre-stored on the user's terminal for efficient verification.

这里的校验也可以简化进行,比如,仅校验所接收到的中心化场景标识对应的中心化场景是否支持前置授权,若支持,则校验通过。从而可以更高效地确定当前的小程序进入渠道是否是本方案所针对的渠道(即,从特定的中心化场景进入)。The verification process here can be simplified. For example, it can only verify whether the centralized scenario corresponding to the received centralized scenario identifier supports prior authorization. If it does, the verification passes. This allows for a more efficient determination of whether the current mini-program entry channel is the channel targeted by this solution (i.e., entering from a specific centralized scenario).

S206:在从所述中心化场景页面中的所述入口,进入所述多个小程序中的对应小程序时,通过所述对应小程序发起授权请求而不相应弹窗。S206: When entering a corresponding mini-program from the entry point in the centralized scene page, an authorization request is initiated through the corresponding mini-program without responding to a pop-up window.

在本公开一个或多个实施例中,这里通过对应小程序发起的授权请求是针对指定应用的,对于当前用户而言是无感的,不会打扰用户。在实施本方案时,可以先拦截对应小程序的授权请求弹窗,之后根据是否进行了前置授权,来决定最终是否需要所拦截的弹窗向用户展示,如此在实施本方案时,能够尽量避免对应小程序也配合改进,而只需要指定应用自身进行改进即可,这对于多个小程序分别的服务商而言是更友好的。In one or more embodiments of this disclosure, the authorization request initiated by the corresponding mini-program is directed at the specified application and is imperceptible to the current user, without disturbing the user. When implementing this solution, the authorization request pop-up of the corresponding mini-program can be intercepted first. Then, depending on whether prior authorization has been performed, it can be decided whether the intercepted pop-up needs to be displayed to the user. This way, when implementing this solution, it can minimize the need for the corresponding mini-program to also make modifications; only the specified application needs to make the modifications. This is more user-friendly for service providers of multiple mini-programs.

S208:在本地或所述服务端响应于所述授权请求,根据已生成的授权数据包含的用户标识和已授权状态信息,校验所述授权请求对应的用户是否已授权,且所请求授权的授权范围是否合理。S208: In response to the authorization request, either locally or on the server, the system verifies whether the user corresponding to the authorization request has been authorized and whether the scope of the requested authorization is reasonable, based on the user identifier and authorized status information contained in the generated authorization data.

步骤S204和S208中的校验可以集中地一并进行,也可以分别在不同的时机进行。The verifications in steps S204 and S208 can be performed together or at different times.

S210:若是,则将所述用户的信息发送给所述对应小程序。S210: If so, the user's information is sent to the corresponding mini-program.

若校验不通过,则可以允许对应小程序弹窗向当前用户请求授权。If the verification fails, the corresponding mini-program can be allowed to pop up a request for authorization from the current user.

通过图2的方案,能够通过维护反映前置授权情况的对应关系,以及在用户实际进入小程序时进行相应校验,精细可靠性地控制用户接下来在小程序中是否可能被授权请求打扰的体验,同时若有需要,用户也可以提前主动进行控制,以提高自己体验。The scheme shown in Figure 2 allows for precise and reliable control over whether a user's experience might be disrupted by authorization requests within the mini-program by maintaining a corresponding relationship that reflects the prior authorization status and performing corresponding verifications when the user actually enters the mini-program. At the same time, if necessary, users can also proactively control this in advance to improve their experience.

根据上面的说明,本公开一个或多个实施例还提供了一种应用场景下的小程序快捷授权处理方案的流程示意图,以及该方案的一些页面效果示意图,分别参见图3、图4。Based on the above description, one or more embodiments of this disclosure also provide a flowchart of a quick authorization processing scheme for mini programs in an application scenario, as well as some page effect diagrams of the scheme, as shown in Figures 3 and 4 respectively.

在该方案中,可以预先在app(即上述的指定应用)中确定出一个或多个中心化场景,比如,“xx商店”、“消费圈”等,其中都接入了多个商家小程序。可以为每一个中心化场景分别设置相应的区分标识,比如,称其为中心化场景渠道标识,诸如取值A、B、C等,当用户从中心化场景主页面跳转到其中的小程序时,可以由当前客户端携带对应的场景渠道标识给到服务端。In this solution, one or more centralized scenarios can be pre-defined within the app (i.e., the designated application mentioned above), such as "xx Store" or "Consumer Circle," each of which integrates multiple merchant mini-programs. A distinct identifier can be set for each centralized scenario, for example, called a centralized scenario channel identifier, with values such as A, B, and C. When a user navigates from the main page of a centralized scenario to a mini-program within it, the current client can carry the corresponding scenario channel identifier to the server.

初始时,假定用户尚未进行授权,此时进入中心化场景时,app可以唤起快捷授权管理弹窗,以请求用户进行该场景下统一的前置授权。若用户同意授权,则可以为该用户创建一条快捷授权关系作为上述授权数据,保存于本地或服务端,示例性地快捷授权关系比如包括:场景渠道标识(A/B/C)+用户标识+开通状态+免弹窗授权范围。若用户拒绝授权,则关闭弹窗。Initially, assuming the user has not yet authorized access, when entering a centralized scenario, the app can invoke a quick authorization management pop-up to request the user to grant unified pre-authorization for that scenario. If the user agrees to authorize, a quick authorization relationship can be created for that user as the aforementioned authorization data, stored locally or on the server. An example quick authorization relationship might include: scenario channel identifier (A/B/C) + user identifier + activation status + pop-up-free authorization scope. If the user refuses authorization, the pop-up will close.

在用户同意授权以后,若用户尚未从进入中心化场景跳转进入某个商家小程序,则该商家小程序仍然无法获取相应权限所对应的用户数据(即上述的指定信息)。也即,对于该商家小程序而言,该权限实质上尚未生效,从而有助于降低商家滥用用户数据的风险。Even after a user grants authorization, if the user has not yet been redirected from the centralized scenario to a specific merchant mini-program, that merchant mini-program will still be unable to obtain the user data corresponding to the relevant permissions (i.e., the specified information mentioned above). In other words, for that merchant mini-program, the permission is not actually effective, thus helping to reduce the risk of merchants abusing user data.

当用户从中心化场景跳转进入某个商家小程序时,该商家小程序发起授权请求,系统校验用户是否开通快捷授权且授权范围包含了商户的请求范围,校验成功则直接返回该权限所对应的用户数据,否则,则可以唤起授权请求弹窗以便用户进行确认授权。When a user jumps from a centralized scenario to a merchant's mini-program, the merchant's mini-program initiates an authorization request. The system verifies whether the user has enabled quick authorization and whether the authorization scope includes the merchant's request scope. If the verification is successful, the system directly returns the user data corresponding to the permission. Otherwise, an authorization request pop-up window can be invoked so that the user can confirm the authorization.

在图4的效果示意图中,屏蔽了一些信息不影响理解,按照从左到右能够看到4个子图,在第1个图中,用户处于名为“xx商店”的一个中心化场景的主页面中,该页面中已经唤起了快捷授权管理弹窗,从弹窗可以看出,所要求的权限范围是包括用户的地理位置和在app中的优惠信息(还提示了对这些信息的预期用途),用户可以点击“允许”按钮表示同意授权。若用户同意授权,则会展示第2个图中的页面,在该页面中,还提示用户可以根据需要进行快捷授权管理,比如,通过快捷授权开关随时取消该快捷授权。第3个图示例性地示出了从什么访问路径能够到达快捷授权管理页面,第4个图示出了快捷授权管理页面中的快捷授权开关。当然,根据前面的说明,若有需要还可以在快捷授权管理页面中,更细粒度增加对各小程序分别的快捷授权开关。In Figure 4, some information has been obscured without affecting understanding. From left to right, four sub-figures are visible. In the first figure, the user is on the main page of a centralized scenario called "xx Store." This page has a pop-up window for quick authorization management, which indicates that the requested permissions include the user's location and promotional information within the app (with a description of the intended use of this information). The user can click the "Allow" button to grant authorization. If the user agrees, the page shown in the second figure will be displayed. This page also prompts the user to manage quick authorization as needed, such as canceling quick authorization at any time via a quick authorization switch. The third figure exemplifies the access path to the quick authorization management page, and the fourth figure shows the quick authorization switch within the quick authorization management page. Of course, as explained above, if needed, more granular quick authorization switches for each mini-program can be added to the quick authorization management page.

通过图3的方案,由于中心化场景的数量有限且可控,能够避免数据膨胀技术成本过高的问题发生,方案的实用性较好。The solution shown in Figure 3 is practical because the number of centralized scenarios is limited and controllable, thus avoiding the problem of excessive data expansion and high technical costs.

在本公开一个或多个实施例中,在前置授权的情况下,用户实际上更多地将安全保障责任交到了指定应用这一方,为了让用户也有能力更明确地感知和应对风险,本公开一个或多个实施例还提供了一种配合前置授权的风险防御方案的流程示意图,参见图5。In one or more embodiments of this disclosure, under the case of prior authorization, the user actually entrusts more of the security responsibility to the designated application. In order to enable the user to more clearly perceive and deal with the risks, one or more embodiments of this disclosure also provide a flowchart of a risk defense scheme in conjunction with prior authorization, see Figure 5.

图5中的流程包括以下步骤。The process shown in Figure 5 includes the following steps.

S502:在所述对应小程序中根据所述授权数据,直接获取所述当前用户的指定信息之后,检测在所述对应小程序中,涉及所述当前用户的指定信息的业务时机节点。S502: After directly obtaining the specified information of the current user in the corresponding mini-program based on the authorization data, detect the business timing node involving the specified information of the current user in the corresponding mini-program.

对应小程序获取到当前用户的指定信息之后,会根据用户的即时操作以及小程序自身的业务逻辑,执行一个或多个具有时序的业务过程,可以将当前实际执行的这个业务过程按照设定的方式划分(比如,按照所使用的业务数据的不同划分、按照所调用函数的不同划分、按照返回数据的不同业务类型划分、按照所交互的用户界面元素进行划分,等等)为多个业务时机节点。After obtaining the specified information of the current user, the corresponding mini-program will execute one or more time-sequential business processes based on the user's real-time operations and the mini-program's own business logic. The currently executed business process can be divided into multiple business timing nodes according to a set method (such as dividing according to different business data used, different functions called, different business types of returned data, or interactive user interface elements, etc.).

本方案则主要关注其中与指定信息相关的业务时机节点,比如可以检测筛选出直接或间接使用到指定信息的业务时机节点,作为相关的业务时机节点。This solution mainly focuses on business timing nodes related to specified information. For example, it can detect and filter business timing nodes that directly or indirectly use specified information as relevant business timing nodes.

S504:根据各所述业务时机节点的时序关系,生成用户信息风险链路。S504: Generate a user information risk link based on the temporal relationship of each of the aforementioned business timing nodes.

在本公开一个或多个实施例中,通过将各业务时机节点按照时序关系,进行排布链接(其中可以出现链路分支,以便能够覆盖对应小程序中更长时间范围内的业务行为),生成可视化的尽量简洁的用户信息风险链路。用户信息风险链路上反映出的针对指定信息的业务行为中,可能包含潜在的风险,因此,可以给予用户作为参考,以使得用户更明确地了解指定信息到底用到了哪些地方。In one or more embodiments of this disclosure, by arranging and linking the various business timing nodes according to their temporal relationships (where link branches may appear to cover business behaviors over a longer period of time within the corresponding mini-program), a visually concise user information risk link is generated. The business behaviors related to the specified information reflected on the user information risk link may contain potential risks. Therefore, this can be provided to users as a reference, enabling them to more clearly understand where the specified information is used.

考虑到在实际应用中,用户信息风险链路的表现方式的专业程度可能不同,因此未必能够让用户们都充分理解,因此,可以辅以智能分析的手段,来帮助生成对用户更为友好的用户信息风险链路。比如,假定上述的统一授权请求携带有对当前用户的指定信息的预期用途(比如图4中的第1个子图就属于这种情况),则可以将检测得到的各业务时机节点与该预期用途进行匹配分析,得到用途偏差结果,根据用途偏差结果,以及各业务时机节点的时序关系,生成用户信息风险链路。Considering that the level of sophistication in the manifestation of user information risk links may vary in practical applications, and therefore may not be fully understood by all users, intelligent analysis methods can be used to help generate more user-friendly user information risk links. For example, assuming that the unified authorization request mentioned above carries the expected use of the specified information of the current user (such as the first subgraph in Figure 4), the detected business timing nodes can be matched and analyzed with the expected use to obtain the use deviation result. Based on the use deviation result and the temporal relationship of each business timing node, a user information risk link can be generated.

S506:响应于所述当前用户的请求,将所述信息风险链路向所述当前用户展示。S506: In response to the current user's request, the information risk link is displayed to the current user.

信息风险链路可以不是默认展示的,若用户想要观可以主动操作调出信息风险链路。或者,也可以在自动检测出存在风险的情况下,再主动向用户展示信息风险链路。The information risk path doesn't have to be displayed by default; users can actively request and access it if they wish. Alternatively, the information risk path can be proactively displayed to users only when a risk is automatically detected.

S508:接收所述当前用户在所述信息风险链路中指示的风险阻断点。S508: Receive the risk blocking point indicated by the current user in the information risk link.

不仅是前面向用户提供了发现风险的手段,还进一步提供了灵活且及时地应对风险的方案。用户可以在信息风险链路中选择自己认为存在风险,或系统提示存在风险的业务时机节点,进而,作为风险阻断点。It not only provides users with means to discover risks, but also offers flexible and timely solutions for responding to risks. Users can select business nodes in the information risk chain that they believe are at risk, or that the system alerts them to, and thus use these nodes as risk prevention points.

S510:将所述信息风险链路中处于所述风险阻断点之后的路径阻断,并在所述对应小程序中将所述信息风险链路涉及的业务回滚至所述风险阻断点或其之前。S510: Block the path in the information risk link that is after the risk blocking point, and roll back the business involved in the information risk link to the risk blocking point or before it in the corresponding mini-program.

为了更可靠地保护用户隐私,以及影响更小地实现业务回滚,本公开一个或多个实施例还提供了一种母应用针对小程序的用户保护方案的流程示意图,参见图6。To more reliably protect user privacy and achieve business rollback with less impact, one or more embodiments of this disclosure also provide a flowchart of a user protection scheme for a mini-program in a parent application, as shown in Figure 6.

图6中的流程包括以下步骤。The process shown in Figure 6 includes the following steps.

S602:在所述对应小程序中根据所述授权数据,直接获取所述当前用户的指定信息之前,通过所述指定应用,根据所述对应小程序的业务特征和所述当前用户的指定原始信息,为所述当前用户生成对应的伪装用户,以及生成所述伪装用户的伪装特征信息。S602: Before directly obtaining the specified information of the current user in the corresponding mini-program based on the authorization data, the specified application generates a corresponding fake user for the current user and generates the fake user's fake feature information based on the business characteristics of the corresponding mini-program and the specified original information of the current user.

在本公开一个或多个实施例中,指定应用会将当前用户的真实账号进行重映射,生成一个新的账号用来代表当前用户,即成为伪装用户。并且,根据对应小程序的业务特征,按照使对应小程序基本足以正常进行业务的条件下,尽量对当前用户的指定原始信息也相应进行伪装,得到伪装用户的伪装特征信息。比如,对于送餐小程序,其最低限度需要用户的送餐地址,则可以将其他信息尽量模糊化或与其他用户混淆化,还可以将送餐地址轻度模糊化(比如,模糊为楼层而不具体到门牌号;再比如,模糊为实际送餐地址数十米乃至十几米旁的一个用户预先接受的动态地址;等等),从而实现伪装。In one or more embodiments of this disclosure, a designated application remaps the current user's real account to generate a new account to represent the current user, thus becoming a fake user. Furthermore, based on the business characteristics of the corresponding mini-program, and under the condition that the mini-program can basically function normally, the application also attempts to disguise the current user's original information to obtain the disguised user's characteristic information. For example, for a food delivery mini-program, which at a minimum requires the user's delivery address, other information can be obscured or confused with other users' information. The delivery address can also be slightly obscured (e.g., obscured to the floor instead of the specific house number; or obscured to a pre-accepted dynamic address tens or even hundreds of meters away from the actual delivery address; etc.), thereby achieving disguise.

S604:在所述对应小程序中根据所述授权数据,直接获取所述当前用户的指定信息时,具体在所述对应小程序中根据所述授权数据,直接获取所述伪装用户的伪装特征信息,用于为所述当前用户进行所述对应小程序的业务。S604: When the specified information of the current user is directly obtained in the corresponding mini-program based on the authorization data, specifically, the disguised user's disguised feature information is directly obtained in the corresponding mini-program based on the authorization data, and used to perform the business of the corresponding mini-program for the current user.

如此,对于指定应用而言,使得对应小程序即能正常完成业务,又避免了使其精确化掌握用户信息。不仅如此,假定支持上述的风险阻断回滚操作,则可以由指定应用为同一个用户的同一个小程序,生成两个以上的伪装用户,以及为它们分别区别化地生成伪装特征信息,一开始只将其中一个伪装用户提供给该小程序,若该伪装用户发生了风险阻断回滚,则将回滚后剩余的业务逻辑复制或替换到剩余的某个伪装用户上,以便该小程序针对该剩余的伪装用户继续完成业务。当然,在该方案中,该剩余的伪装用户也可以类似地替换为真实用户,比如,可以在确定大概率无风险后,再对该小程序启用真实用户。通过这种方式,使得伪装用户能够帮助真实用户来试探风险,并更可靠地确立出大概率风险无风险的业务路径,以便于小程序进行业务,从而能够更强力地保障用户隐私安全。In this way, for the designated application, the corresponding mini-program can complete its business normally while avoiding the mini-program's precise acquisition of user information. Furthermore, assuming the aforementioned risk-blocking rollback operation is supported, the same mini-program for the same user can generate two or more fake users, and generate distinctive fake user characteristics for each. Initially, only one fake user is provided to the mini-program. If a risk-blocking rollback occurs for that fake user, the remaining business logic after the rollback is copied or replaced to one of the remaining fake users, allowing the mini-program to continue its business with that remaining fake user. Of course, in this solution, the remaining fake user can also be replaced with a real user. For example, after determining that there is a high probability of no risk, a real user can be enabled for the mini-program. In this way, fake users can help real users test risks and more reliably establish business paths with a high probability of no risk, enabling the mini-program to conduct its business and thus providing stronger protection for user privacy and security.

基于同样的思路,本公开一个或多个实施例还提供了上述方法对应的装置和设备,如图7、图8所示。装置和设备能够相应执行上述方法及相关的可选方案。Based on the same approach, one or more embodiments of this disclosure also provide apparatus and devices corresponding to the above methods, as shown in Figures 7 and 8. The apparatus and devices are capable of executing the above methods and related optional solutions accordingly.

图7为本公开一个或多个实施例提供的一种小程序授权处理装置的结构示意图,所述装置包括:中心化场景进入模块702,进入指定应用的中心化场景页面,所述中心化场景页面具有所述指定应用所接入的多个小程序分别的入口;统一授权请求模块704,在所述中心化场景页面中,向当前用户发起对应于所述多个小程序的统一授权请求;授权数据触发模块706,若所述当前用户响应于所述统一授权请求同意进行前置授权,则触发相应的授权数据生成;小程序快捷处理模块708,在所述前置授权后,若所述当前用户从所述中心化场景页面中的所述入口,进入所述多个小程序中的对应小程序,则在所述对应小程序中根据所述授权数据,直接获取所述当前用户的指定信息,用于为所述当前用户进行所述对应小程序的业务,而不在所述对应小程序中向所述当前用户请求授权。Figure 7 is a schematic diagram of a mini-program authorization processing device provided in one or more embodiments of this disclosure. The device includes: a centralized scene entry module 702, which enters a centralized scene page of a specified application, the centralized scene page having separate entry points for multiple mini-programs accessed by the specified application; a unified authorization request module 704, which initiates a unified authorization request corresponding to the multiple mini-programs to the current user in the centralized scene page; an authorization data triggering module 706, which triggers the generation of corresponding authorization data if the current user agrees to pre-authorization in response to the unified authorization request; and a mini-program quick processing module 708, which, after pre-authorization, if the current user enters the corresponding mini-program from the entry point in the centralized scene page, directly obtains the specified information of the current user in the corresponding mini-program based on the authorization data, and uses it to perform the business of the corresponding mini-program for the current user, without requesting authorization from the current user in the corresponding mini-program.

可选地,所述授权数据触发模块706,在所述前置授权后,在所述当前用户从所述中心化场景页面中的所述入口,进入所述对应小程序之前,不允许所述对应小程序直接获取所述当前用户的指定信息。Optionally, the authorization data triggering module 706, after the pre-authorization, does not allow the corresponding mini-program to directly obtain the specified information of the current user before the current user enters the corresponding mini-program from the entry point in the centralized scene page.

可选地,所述统一授权请求模块704,在所述中心化场景页面中,向当前用户弹窗,通过所弹窗口发起对应于所述多个小程序的统一授权请求,以便所述当前用户通过与所述所弹窗口交互而进行授权;所述小程序快捷处理模块708,在所述对应小程序中根据所述授权数据,直接获取所述用户的信息,而不在所述对应小程序中向所述当前用户弹窗请求授权获取所述当前用户的指定信息。Optionally, the unified authorization request module 704 pops up a window for the current user in the centralized scene page, and initiates a unified authorization request corresponding to the multiple mini-programs through the pop-up window, so that the current user can authorize by interacting with the pop-up window; the mini-program quick processing module 708 directly obtains the user's information in the corresponding mini-program based on the authorization data, without popping up a window for authorization to the current user in the corresponding mini-program to obtain the current user's specified information.

可选地,所述小程序快捷处理模块708,在从所述中心化场景页面中的所述入口,进入所述多个小程序中的对应小程序时,将所述中心化场景页面对应的中心化场景标识发送给服务端,以便所述服务端校验所接收到的所述对应的中心化场景标识是否与已生成的授权数据匹配,根据匹配结果确定是否允许所述对应小程序直接获取所述用户的信息。Optionally, when the mini-program quick processing module 708 enters the corresponding mini-program among the multiple mini-programs from the entry point in the centralized scene page, it sends the centralized scene identifier corresponding to the centralized scene page to the server so that the server can verify whether the received corresponding centralized scene identifier matches the generated authorization data, and determine whether to allow the corresponding mini-program to directly obtain the user's information based on the matching result.

可选地,所述相应的授权数据包括所述当前用户的用户标识、所述中心化场景页面对应的中心化场景标识,以及已授权状态信息之间的对应关系;所述小程序快捷处理模块708,在从所述中心化场景页面中的所述入口,进入所述多个小程序中的对应小程序时,通过所述对应小程序发起授权请求而不相应弹窗;在本地或所述服务端响应于所述授权请求,根据已生成的授权数据包含的用户标识和已授权状态信息,校验所述授权请求对应的用户是否已授权,且所请求授权的授权范围是否合理;若是,则将所述用户的信息发送给所述对应小程序。Optionally, the corresponding authorization data includes the correspondence between the current user's user identifier, the centralized scene identifier corresponding to the centralized scene page, and the authorized status information; the mini-program quick processing module 708, when entering the corresponding mini-program among the multiple mini-programs from the entry point in the centralized scene page, initiates an authorization request through the corresponding mini-program without responding to a pop-up window; responding to the authorization request locally or on the server side, it verifies whether the user corresponding to the authorization request has been authorized, and whether the scope of the requested authorization is reasonable, based on the user identifier and authorized status information contained in the generated authorization data; if so, it sends the user's information to the corresponding mini-program.

可选地,所述授权数据触发模块706,在所述前置授权后,向所述当前用户展示所述多个小程序对应的授权设置选项;若接收到所述当前用户通过操作授权设置选项,针对所述多个小程序中任一小程序设置取消授权,则确定所述前置授权对所述任一小程序失效,以使得不允许所述任一小程序根据所述授权数据,直接获取所述当前用户的指定信息,而仍然允许所述多个小程序中未被取消的其他小程序根据所述授权数据,直接获取所述当前用户的指定信息。Optionally, the authorization data triggering module 706, after the pre-authorization, displays the authorization settings options corresponding to the multiple mini-programs to the current user; if it receives that the current user cancels the authorization for any of the multiple mini-programs by operating the authorization settings options, it determines that the pre-authorization is invalid for any of the mini-programs, so that no mini-program is allowed to directly obtain the current user's specified information based on the authorization data, while other mini-programs among the multiple mini-programs that have not been canceled are still allowed to directly obtain the current user's specified information based on the authorization data.

可选地,所述小程序快捷处理模块708,在所述对应小程序中根据所述授权数据,直接获取所述当前用户的指定信息之后,检测在所述对应小程序中,涉及所述当前用户的指定信息的业务时机节点;根据各所述业务时机节点的时序关系,生成用户信息风险链路;响应于所述当前用户的请求,将所述信息风险链路向所述当前用户展示。Optionally, the mini-program quick processing module 708, after directly obtaining the specified information of the current user in the corresponding mini-program based on the authorization data, detects business timing nodes in the corresponding mini-program that involve the specified information of the current user; generates a user information risk link based on the temporal relationship of each business timing node; and displays the information risk link to the current user in response to the current user's request.

可选地,所述统一授权请求携带有对所述当前用户的指定信息的预期用途;所述小程序快捷处理模块708,将各所述业务时机节点与所述预期用途进行匹配分析,得到用途偏差结果;根据所述用途偏差结果,以及所述各所述业务时机节点的时序关系,生成用户信息风险链路。Optionally, the unified authorization request carries the intended use of the specified information of the current user; the mini-program quick processing module 708 matches and analyzes each of the business timing nodes with the intended use to obtain the use deviation result; and generates a user information risk link based on the use deviation result and the temporal relationship of each of the business timing nodes.

可选地,所述小程序快捷处理模块708,在所述将所述信息风险链路向所述当前用户展示之后,接收所述当前用户在所述信息风险链路中指示的风险阻断点;将所述信息风险链路中处于所述风险阻断点之后的路径阻断,并在所述对应小程序中将所述信息风险链路涉及的业务回滚至所述风险阻断点或其之前。Optionally, after the information risk link is displayed to the current user, the mini-program quick processing module 708 receives the risk blocking point indicated by the current user in the information risk link; blocks the path after the risk blocking point in the information risk link; and rolls back the business involved in the information risk link to the risk blocking point or before it in the corresponding mini-program.

可选地,所述小程序快捷处理模块708,在所述对应小程序中根据所述授权数据,直接获取所述当前用户的指定信息之前,通过所述指定应用,根据所述对应小程序的业务特征和所述当前用户的指定原始信息,为所述当前用户生成对应的伪装用户,以及生成所述伪装用户的伪装特征信息;所述在所述对应小程序中根据所述授权数据,直接获取所述当前用户的指定信息,具体包括:在所述对应小程序中根据所述授权数据,直接获取所述伪装用户的伪装特征信息,用于为所述当前用户进行所述对应小程序的业务。Optionally, before directly obtaining the specified information of the current user in the corresponding mini-program based on the authorization data, the mini-program quick processing module 708 generates a corresponding fake user and fake user feature information for the current user through the specified application, based on the business characteristics of the corresponding mini-program and the specified original information of the current user; the step of directly obtaining the specified information of the current user in the corresponding mini-program based on the authorization data specifically includes: directly obtaining the fake user feature information in the corresponding mini-program based on the authorization data, for use in performing the business of the corresponding mini-program for the current user.

图8为本公开一个或多个实施例提供的一种小程序授权处理设备的结构示意图,所述设备包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行:进入指定应用的中心化场景页面,所述中心化场景页面具有所述指定应用所接入的多个小程序分别的入口;在所述中心化场景页面中,向当前用户发起对应于所述多个小程序的统一授权请求;若所述当前用户响应于所述统一授权请求同意进行前置授权,则触发相应的授权数据生成;在所述前置授权后,若所述当前用户从所述中心化场景页面中的所述入口,进入所述多个小程序中的对应小程序,则在所述对应小程序中根据所述授权数据,直接获取所述当前用户的指定信息,用于为所述当前用户进行所述对应小程序的业务,而不在所述对应小程序中向所述当前用户请求授权。Figure 8 is a schematic diagram of the structure of a mini-program authorization processing device provided in one or more embodiments of this disclosure. The device includes: at least one processor; and a memory communicatively connected to the at least one processor. The memory stores instructions executable by the at least one processor, which, when executed, enable the at least one processor to: enter a centralized scene page of a specified application, the centralized scene page having separate entry points for multiple mini-programs accessed by the specified application; in the centralized scene page, initiate a unified authorization request corresponding to the multiple mini-programs to the current user; if the current user agrees to pre-authorization in response to the unified authorization request, trigger the generation of corresponding authorization data; after the pre-authorization, if the current user enters a corresponding mini-program from the entry point in the centralized scene page, the corresponding mini-program directly obtains the specified information of the current user based on the authorization data, and uses this information to perform the business of the corresponding mini-program for the current user, without requesting authorization from the current user in the corresponding mini-program.

基于同样的思路,本公开一个或多个实施例还提供了一种非易失性计算机存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为:进入指定应用的中心化场景页面,所述中心化场景页面具有所述指定应用所接入的多个小程序分别的入口;在所述中心化场景页面中,向当前用户发起对应于所述多个小程序的统一授权请求;若所述当前用户响应于所述统一授权请求同意进行前置授权,则触发相应的授权数据生成;在所述前置授权后,若所述当前用户从所述中心化场景页面中的所述入口,进入所述多个小程序中的对应小程序,则在所述对应小程序中根据所述授权数据,直接获取所述当前用户的指定信息,用于为所述当前用户进行所述对应小程序的业务,而不在所述对应小程序中向所述当前用户请求授权。Based on the same idea, one or more embodiments of this disclosure also provide a non-volatile computer storage medium storing computer-executable instructions, the computer-executable instructions being configured to: enter a centralized scene page of a specified application, the centralized scene page having entry points for multiple mini-programs accessed by the specified application; in the centralized scene page, initiate a unified authorization request to the current user corresponding to the multiple mini-programs; if the current user agrees to pre-authorization in response to the unified authorization request, trigger the generation of corresponding authorization data; after the pre-authorization, if the current user enters the corresponding mini-program from the entry point in the centralized scene page, then in the corresponding mini-program, based on the authorization data, directly obtain the specified information of the current user for performing the business of the corresponding mini-program for the current user, without requesting authorization from the current user in the corresponding mini-program.

在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1990s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the methodology). However, with technological advancements, many improvements to the methodology today can be considered direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved methodology into the hardware circuit. Therefore, it cannot be said that an improvement to the methodology cannot be implemented using hardware physical modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. Designers can program a digital system themselves to "integrate" it onto a PLD, without needing chip manufacturers to design and manufacture dedicated integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software. Similar to the software compiler used in program development, the original code before compilation must be written in a specific programming language, called a Hardware Description Language (HDL). There is not just one type of HDL, but many, such as ABEL (Advanced Boolean Expression Language) and AHDL (Altera Hardware Description Language). Hardware description languages such as Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, and RHDL (Ruby Hardware Description Language) are commonly used, with VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog being the most prevalent currently. Those skilled in the art should also understand that by simply performing some logic programming on the method flow using one of these languages and then programming it into an integrated circuit, the hardware circuit implementing the logical method flow can be easily obtained.

控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller can be implemented in any suitable manner. For example, it can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicon Labs C8051F320. A memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also recognize that, in addition to implementing the controller in purely computer-readable program code form, the same functionality can be achieved by logically programming the method steps to make the controller take the form of logic gates, switches, ASICs, programmable logic controllers, and embedded microcontrollers. Therefore, such a controller can be considered a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.

上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.

为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本公开时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For ease of description, the above apparatus is described by dividing it into various functional units. Of course, in implementing this disclosure, the functions of each unit can be implemented in one or more software and/or hardware.

本领域内的技术人员应明白,本公开实施例可提供为方法、系统、或计算机程序产品。因此,本公开实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本公开实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will understand that embodiments of this disclosure can be provided as methods, systems, or computer program products. Therefore, embodiments of this disclosure can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of this disclosure can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

本公开是参照根据本公开实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。This disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in one or more flowchart illustrations and/or one or more block diagrams.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means that implement the functions specified in one or more flowcharts and/or one or more block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, such that the instructions, which execute on the computer or other programmable apparatus, provide steps for implementing the functions specified in one or more flowcharts and/or one or more block diagrams.

在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.

内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

本公开可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本公开,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。This disclosure can be described in the general context of computer-executable instructions that are executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. This disclosure can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

本公开中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、设备、非易失性计算机存储介质实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in this disclosure are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the embodiments of apparatus, devices, and non-volatile computer storage media are basically similar to the method embodiments, so the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

上述对本公开特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing has described specific embodiments of this disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired results. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

以上所述仅为本公开的一个或多个实施例而已,并不用于限制本公开。对于本领域技术人员来说,本公开的一个或多个实施例可以有各种更改和变化。凡在本公开的一个或多个实施例的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本公开的权利要求范围之内。The above description is merely one or more embodiments of this disclosure and is not intended to limit the scope of this disclosure. Various modifications and variations can be made to the one or more embodiments of this disclosure by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of one or more embodiments of this disclosure should be included within the scope of the claims of this disclosure.

Claims (21)

一种小程序授权处理方法,包括:A method for handling WeChat Mini Program authorization includes: 进入指定应用的中心化场景页面,所述中心化场景页面具有所述指定应用所接入的多个小程序分别的入口;Enter the centralized scene page of the specified application, which has separate entry points for multiple mini-programs connected to the specified application; 在所述中心化场景页面中,向当前用户发起对应于所述多个小程序的统一授权请求;In the centralized scene page, a unified authorization request corresponding to the multiple mini-programs is initiated to the current user; 若所述当前用户响应于所述统一授权请求同意进行前置授权,则触发相应的授权数据生成;If the current user responds to the unified authorization request and agrees to pre-authorization, then the corresponding authorization data is generated. 在所述前置授权后,若所述当前用户从所述中心化场景页面中的所述入口,进入所述多个小程序中的对应小程序,则在所述对应小程序中根据所述授权数据,直接获取所述当前用户的指定信息,用于为所述当前用户进行所述对应小程序的业务,而不在所述对应小程序中向所述当前用户请求授权。After the prior authorization, if the current user enters the corresponding mini-program among the multiple mini-programs from the entry point in the centralized scene page, the corresponding mini-program directly obtains the specified information of the current user based on the authorization data, and uses it to perform the business of the corresponding mini-program for the current user, without requesting authorization from the current user in the corresponding mini-program. 如权利要求1所述的方法,在所述前置授权后,所述方法还包括:The method of claim 1, further comprising, after the prior authorization: 在所述当前用户从所述中心化场景页面中的所述入口,进入所述对应小程序之前,不允许所述对应小程序直接获取所述当前用户的指定信息。Before the current user enters the corresponding mini-program from the entry point in the centralized scene page, the corresponding mini-program is not allowed to directly obtain the current user's specified information. 如权利要求1所述的方法,所述在所述中心化场景页面中,向当前用户发起对应于所述多个小程序的统一授权请求,具体包括:The method as described in claim 1, wherein in the centralized scene page, initiating a unified authorization request corresponding to the multiple mini-programs to the current user specifically includes: 在所述中心化场景页面中,向当前用户弹窗,通过所弹窗口发起对应于所述多个小程序的统一授权请求,以便所述当前用户通过与所述所弹窗口交互而进行授权;In the centralized scene page, a pop-up window is displayed to the current user, and a unified authorization request corresponding to the multiple mini-programs is initiated through the pop-up window so that the current user can authorize the request by interacting with the pop-up window. 所述在所述对应小程序中根据所述授权数据,直接获取所述当前用户的指定信息,具体包括:The step of directly obtaining the specified information of the current user in the corresponding mini-program based on the authorization data specifically includes: 在所述对应小程序中根据所述授权数据,直接获取所述用户的信息,而不在所述对应小程序中向所述当前用户弹窗请求授权获取所述当前用户的指定信息。The user's information is obtained directly in the corresponding mini-program based on the authorization data, without requesting authorization from the current user to obtain the specified information of the current user through a pop-up window in the corresponding mini-program. 如权利要求1所述的方法,所述从所述中心化场景页面中的所述入口,进入所述多个小程序中的对应小程序,具体包括:The method as described in claim 1, wherein entering the corresponding mini-program among the plurality of mini-programs from the entry point in the centralized scene page specifically includes: 在从所述中心化场景页面中的所述入口,进入所述多个小程序中的对应小程序时,将所述中心化场景页面对应的中心化场景标识发送给服务端,以便所述服务端校验所接收到的所述对应的中心化场景标识是否与已生成的授权数据匹配,根据匹配结果确定是否允许所述对应小程序直接获取所述用户的信息。When entering the corresponding mini-program from the entry point in the centralized scene page, the centralized scene identifier corresponding to the centralized scene page is sent to the server so that the server can verify whether the received corresponding centralized scene identifier matches the generated authorization data, and determine whether to allow the corresponding mini-program to directly obtain the user's information based on the matching result. 如权利要求4所述的方法,所述相应的授权数据包括所述当前用户的用户标识、所述中心化场景页面对应的中心化场景标识,以及已授权状态信息之间的对应关系;The method as described in claim 4, wherein the corresponding authorization data includes the user identifier of the current user, the centralized scene identifier corresponding to the centralized scene page, and the correspondence between the authorized status information; 所述在所述对应小程序中根据所述授权数据,获取所述当前用户的指定信息,具体包括:The step of obtaining the specified information of the current user in the corresponding mini-program based on the authorization data specifically includes: 在从所述中心化场景页面中的所述入口,进入所述多个小程序中的对应小程序时,通过所述对应小程序发起授权请求而不相应弹窗;When entering the corresponding mini-program among the multiple mini-programs from the entry point in the centralized scene page, an authorization request is initiated through the corresponding mini-program without responding to the pop-up window; 在本地或所述服务端响应于所述授权请求,根据已生成的授权数据包含的用户标识和已授权状态信息,校验所述授权请求对应的用户是否已授权,且所请求授权的授权范围是否合理;In response to the authorization request, either locally or on the server, the system verifies whether the user corresponding to the authorization request has been authorized and whether the scope of the requested authorization is reasonable, based on the user identifier and authorized status information contained in the generated authorization data. 若是,则将所述用户的信息发送给所述对应小程序。If so, the user's information will be sent to the corresponding mini-program. 如权利要求1所述的方法,在所述前置授权后,所述方法还包括:The method of claim 1, further comprising, after the prior authorization: 向所述当前用户展示所述多个小程序对应的授权设置选项;Display the authorization settings options corresponding to the multiple mini-programs to the current user; 若接收到所述当前用户通过操作授权设置选项,针对所述多个小程序中任一小程序设置取消授权,则确定所述前置授权对所述任一小程序失效,以使得不允许所述任一小程序根据所述授权数据,直接获取所述当前用户的指定信息,而仍然允许所述多个小程序中未被取消的其他小程序根据所述授权数据,直接获取所述当前用户的指定信息。If the current user cancels authorization for any of the multiple mini-programs by using the authorization settings, it is determined that the prior authorization is invalid for that mini-program. This prevents any mini-program from directly obtaining the current user's specified information based on the authorization data, while still allowing other mini-programs among the multiple mini-programs that have not been canceled to directly obtain the current user's specified information based on the authorization data. 如权利要求1所述的方法,所述在所述对应小程序中根据所述授权数据,直接获取所述当前用户的指定信息之后,所述方法还包括:The method as described in claim 1, after directly obtaining the specified information of the current user based on the authorization data in the corresponding mini-program, further includes: 检测在所述对应小程序中,涉及所述当前用户的指定信息的业务时机节点;Detect the business timing nodes in the corresponding mini-program that involve the specified information of the current user; 根据各所述业务时机节点的时序关系,生成用户信息风险链路;Based on the temporal relationship of each of the aforementioned business opportunity nodes, a user information risk chain is generated; 响应于所述当前用户的请求,将所述信息风险链路向所述当前用户展示。In response to the current user's request, the information risk link is displayed to the current user. 如权利要求7所述的方法,所述统一授权请求携带有对所述当前用户的指定信息的预期用途;The method of claim 7, wherein the unified authorization request carries the intended use of the specified information of the current user; 所述根据各所述业务时机节点的时序关系,生成用户信息风险链路,具体包括:The step of generating a user information risk link based on the temporal relationship of each of the aforementioned business opportunity nodes specifically includes: 将各所述业务时机节点与所述预期用途进行匹配分析,得到用途偏差结果;The matching analysis between each of the aforementioned business timing nodes and the intended use yields the use deviation results; 根据所述用途偏差结果,以及所述各所述业务时机节点的时序关系,生成用户信息风险链路。Based on the usage deviation results and the temporal relationship of each of the aforementioned business timing nodes, a user information risk link is generated. 如权利要求7所述的方法,所述将所述信息风险链路向所述当前用户展示之后,所述方法还包括:The method of claim 7, wherein after displaying the information risk link to the current user, the method further includes: 接收所述当前用户在所述信息风险链路中指示的风险阻断点;Receive the risk blocking point indicated by the current user in the information risk link; 将所述信息风险链路中处于所述风险阻断点之后的路径阻断,并在所述对应小程序中将所述信息风险链路涉及的业务回滚至所述风险阻断点或其之前。The path in the information risk link that is after the risk blocking point is blocked, and the business involved in the information risk link is rolled back to the risk blocking point or before it in the corresponding mini-program. 如权利要求1或7所述的方法,所述在所述对应小程序中根据所述授权数据,直接获取所述当前用户的指定信息之前,所述方法还包括:The method as described in claim 1 or 7, prior to directly obtaining the specified information of the current user based on the authorization data in the corresponding mini-program, further includes: 通过所述指定应用,根据所述对应小程序的业务特征和所述当前用户的指定原始信息,为所述当前用户生成对应的伪装用户,以及生成所述伪装用户的伪装特征信息;Based on the specified application, the corresponding mini-program's business characteristics, and the specified original information of the current user, a fake user is generated for the current user, along with the fake user's disguised feature information. 所述在所述对应小程序中根据所述授权数据,直接获取所述当前用户的指定信息,具体包括:The step of directly obtaining the specified information of the current user in the corresponding mini-program based on the authorization data specifically includes: 在所述对应小程序中根据所述授权数据,直接获取所述伪装用户的伪装特征信息,用于为所述当前用户进行所述对应小程序的业务。Based on the authorization data, the disguised user's disguised feature information is directly obtained in the corresponding mini-program and used to perform the business of the corresponding mini-program for the current user. 一种小程序授权处理装置,包括:A mini-program authorization processing device, comprising: 中心化场景进入模块,进入指定应用的中心化场景页面,所述中心化场景页面具有所述指定应用所接入的多个小程序分别的入口;The centralized scene entry module leads to the centralized scene page of the specified application, which has separate entry points for multiple mini-programs accessed by the specified application. 统一授权请求模块,在所述中心化场景页面中,向当前用户发起对应于所述多个小程序的统一授权请求;The unified authorization request module initiates a unified authorization request corresponding to the multiple mini-programs to the current user on the centralized scene page. 授权数据触发模块,若所述当前用户响应于所述统一授权请求同意进行前置授权,则触发相应的授权数据生成;The authorization data triggering module generates corresponding authorization data if the current user agrees to pre-authorization in response to the unified authorization request. 小程序快捷处理模块,在所述前置授权后,若所述当前用户从所述中心化场景页面中的所述入口,进入所述多个小程序中的对应小程序,则在所述对应小程序中根据所述授权数据,直接获取所述当前用户的指定信息,用于为所述当前用户进行所述对应小程序的业务,而不在所述对应小程序中向所述当前用户请求授权。The mini-program quick processing module, after the prior authorization, if the current user enters the corresponding mini-program from the entry point in the centralized scene page, then in the corresponding mini-program, it directly obtains the specified information of the current user based on the authorization data, and uses it to perform the business of the corresponding mini-program for the current user, without requesting authorization from the current user in the corresponding mini-program. 如权利要求11所述的装置,所述授权数据触发模块,在所述前置授权后,在所述当前用户从所述中心化场景页面中的所述入口,进入所述对应小程序之前,不允许所述对应小程序直接获取所述当前用户的指定信息。The apparatus of claim 11, wherein the authorization data triggering module, after the prior authorization, before the current user enters the corresponding mini-program from the entry point in the centralized scene page, does not allow the corresponding mini-program to directly obtain the specified information of the current user. 如权利要求11所述的装置,所述统一授权请求模块,在所述中心化场景页面中,向当前用户弹窗,通过所弹窗口发起对应于所述多个小程序的统一授权请求,以便所述当前用户通过与所述所弹窗口交互而进行授权;The apparatus of claim 11, wherein the unified authorization request module, in the centralized scene page, pops up a window for the current user and initiates a unified authorization request corresponding to the multiple mini-programs through the pop-up window, so that the current user can authorize by interacting with the pop-up window; 所述小程序快捷处理模块,在所述对应小程序中根据所述授权数据,直接获取所述用户的信息,而不在所述对应小程序中向所述当前用户弹窗请求授权获取所述当前用户的指定信息。The mini-program quick processing module directly obtains the user's information based on the authorization data in the corresponding mini-program, without requesting authorization from the current user through a pop-up window in the corresponding mini-program to obtain the current user's specified information. 如权利要求11所述的装置,所述小程序快捷处理模块,在从所述中心化场景页面中的所述入口,进入所述多个小程序中的对应小程序时,将所述中心化场景页面对应的中心化场景标识发送给服务端,以便所述服务端校验所接收到的所述对应的中心化场景标识是否与已生成的授权数据匹配,根据匹配结果确定是否允许所述对应小程序直接获取所述用户的信息。The device as described in claim 11, wherein the mini-program quick processing module, when entering the corresponding mini-program among the plurality of mini-programs from the entry point in the centralized scene page, sends the centralized scene identifier corresponding to the centralized scene page to the server, so that the server can verify whether the received corresponding centralized scene identifier matches the generated authorization data, and determine whether to allow the corresponding mini-program to directly obtain the user's information based on the matching result. 如权利要求14所述的装置,所述相应的授权数据包括所述当前用户的用户标识、所述中心化场景页面对应的中心化场景标识,以及已授权状态信息之间的对应关系;The apparatus of claim 14, wherein the corresponding authorization data includes the user identifier of the current user, the centralized scene identifier corresponding to the centralized scene page, and the correspondence between the authorized status information; 所述小程序快捷处理模块,在从所述中心化场景页面中的所述入口,进入所述多个小程序中的对应小程序时,通过所述对应小程序发起授权请求而不相应弹窗;When the mini-program quick processing module enters the corresponding mini-program from the entry point in the centralized scene page, it initiates an authorization request through the corresponding mini-program without responding to the pop-up window. 在本地或所述服务端响应于所述授权请求,根据已生成的授权数据包含的用户标识和已授权状态信息,校验所述授权请求对应的用户是否已授权,且所请求授权的授权范围是否合理;In response to the authorization request, either locally or on the server, the system verifies whether the user corresponding to the authorization request has been authorized and whether the scope of the requested authorization is reasonable, based on the user identifier and authorized status information contained in the generated authorization data. 若是,则将所述用户的信息发送给所述对应小程序。If so, the user's information will be sent to the corresponding mini-program. 如权利要求11所述的装置,所述授权数据触发模块,在所述前置授权后,向所述当前用户展示所述多个小程序对应的授权设置选项;The apparatus of claim 11, wherein the authorization data triggering module displays the authorization setting options corresponding to the plurality of mini-programs to the current user after the prior authorization; 若接收到所述当前用户通过操作授权设置选项,针对所述多个小程序中任一小程序设置取消授权,则确定所述前置授权对所述任一小程序失效,以使得不允许所述任一小程序根据所述授权数据,直接获取所述当前用户的指定信息,而仍然允许所述多个小程序中未被取消的其他小程序根据所述授权数据,直接获取所述当前用户的指定信息。If the current user cancels authorization for any of the multiple mini-programs by using the authorization settings, it is determined that the prior authorization is invalid for that mini-program. This prevents any mini-program from directly obtaining the current user's specified information based on the authorization data, while still allowing other mini-programs among the multiple mini-programs that have not been canceled to directly obtain the current user's specified information based on the authorization data. 如权利要求11所述的装置,所述小程序快捷处理模块,在所述对应小程序中根据所述授权数据,直接获取所述当前用户的指定信息之后,检测在所述对应小程序中,涉及所述当前用户的指定信息的业务时机节点;The apparatus of claim 11, wherein the mini-program quick processing module, after directly obtaining the specified information of the current user in the corresponding mini-program based on the authorization data, detects the business timing node in the corresponding mini-program that involves the specified information of the current user; 根据各所述业务时机节点的时序关系,生成用户信息风险链路;Based on the temporal relationship of each of the aforementioned business opportunity nodes, a user information risk chain is generated; 响应于所述当前用户的请求,将所述信息风险链路向所述当前用户展示。In response to the current user's request, the information risk link is displayed to the current user. 如权利要求17所述的装置,所述统一授权请求携带有对所述当前用户的指定信息的预期用途;The apparatus of claim 17, wherein the unified authorization request carries an intended use of the specified information of the current user; 所述小程序快捷处理模块,将各所述业务时机节点与所述预期用途进行匹配分析,得到用途偏差结果;The mini-program quick processing module matches and analyzes each of the business timing nodes with the expected purpose to obtain the purpose deviation result; 根据所述用途偏差结果,以及所述各所述业务时机节点的时序关系,生成用户信息风险链路。Based on the usage deviation results and the temporal relationship of each of the aforementioned business timing nodes, a user information risk link is generated. 如权利要求17所述的装置,所述小程序快捷处理模块,在所述将所述信息风险链路向所述当前用户展示之后,接收所述当前用户在所述信息风险链路中指示的风险阻断点;The device as described in claim 17, wherein the mini-program quick processing module, after displaying the information risk link to the current user, receives a risk blocking point indicated by the current user in the information risk link; 将所述信息风险链路中处于所述风险阻断点之后的路径阻断,并在所述对应小程序中将所述信息风险链路涉及的业务回滚至所述风险阻断点或其之前。The path in the information risk link that is after the risk blocking point is blocked, and the business involved in the information risk link is rolled back to the risk blocking point or before it in the corresponding mini-program. 如权利要求11或17所述的装置,所述小程序快捷处理模块,在所述对应小程序中根据所述授权数据,直接获取所述当前用户的指定信息之前,通过所述指定应用,根据所述对应小程序的业务特征和所述当前用户的指定原始信息,为所述当前用户生成对应的伪装用户,以及生成所述伪装用户的伪装特征信息;The device as described in claim 11 or 17, wherein the mini-program quick processing module, before directly obtaining the specified information of the current user in the corresponding mini-program based on the authorization data, generates a corresponding fake user for the current user through the specified application, based on the business characteristics of the corresponding mini-program and the specified original information of the current user, and generates the fake user's fake feature information; 所述在所述对应小程序中根据所述授权数据,直接获取所述当前用户的指定信息,具体包括:The step of directly obtaining the specified information of the current user in the corresponding mini-program based on the authorization data specifically includes: 在所述对应小程序中根据所述授权数据,直接获取所述伪装用户的伪装特征信息,用于为所述当前用户进行所述对应小程序的业务。Based on the authorization data, the disguised user's disguised feature information is directly obtained in the corresponding mini-program and used to perform the business of the corresponding mini-program for the current user. 一种小程序授权处理设备,包括:A mini-program authorization processing device, comprising: 至少一个处理器;以及,At least one processor; and, 与所述至少一个处理器通信连接的存储器;其中,A memory communicatively connected to the at least one processor; wherein, 所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行:The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform: 进入指定应用的中心化场景页面,所述中心化场景页面具有所述指定应用所接入的多个小程序分别的入口;Enter the centralized scene page of the specified application, which has separate entry points for multiple mini-programs connected to the specified application; 在所述中心化场景页面中,向当前用户发起对应于所述多个小程序的统一授权请求;In the centralized scene page, a unified authorization request corresponding to the multiple mini-programs is initiated to the current user; 若所述当前用户响应于所述统一授权请求同意进行前置授权,则触发相应的授权数据生成;If the current user responds to the unified authorization request and agrees to pre-authorization, then the corresponding authorization data is generated. 在所述前置授权后,若所述当前用户从所述中心化场景页面中的所述入口,进入所述多个小程序中的对应小程序,则在所述对应小程序中根据所述授权数据,直接获取所述当前用户的指定信息,用于为所述当前用户进行所述对应小程序的业务,而不在所述对应小程序中向所述当前用户请求授权。After the prior authorization, if the current user enters the corresponding mini-program among the multiple mini-programs from the entry point in the centralized scene page, the corresponding mini-program directly obtains the specified information of the current user based on the authorization data, and uses it to perform the business of the corresponding mini-program for the current user, without requesting authorization from the current user in the corresponding mini-program.
PCT/CN2025/112499 2024-08-13 2025-08-04 Mini‑program authorization processing Pending WO2026037143A1 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411111916.4 2024-08-13

Publications (1)

Publication Number Publication Date
WO2026037143A1 true WO2026037143A1 (en) 2026-02-19

Family

ID=

Similar Documents

Publication Publication Date Title
AU2016201394B2 (en) Event-triggered server-side macros
EP2465045B1 (en) Shared server-side macros
US8793359B1 (en) Systems and/or methods for intelligently detecting API key domains
EP2465046B1 (en) Virtual object indirection in a hosted computer environment
US9600662B2 (en) User configurable profiles for security permissions
US9842228B2 (en) Local personal daemon
US9432472B2 (en) Accelerated training of personal daemons
CN107636666A (en) For the method and system for controlling the allowance for the application on computing device to ask
TWI741555B (en) Method and device for displaying unique identifier of digital object
CN109428900B (en) Data processing method and device
CN110858242A (en) Page skipping method and device
CN116996556A (en) Data processing method and device
WO2026037143A1 (en) Mini‑program authorization processing
CN119066677B (en) A method, apparatus, and device for processing WeChat Mini Program authorization
CN109308613B (en) A payment request processing method and device
US20230267819A1 (en) Adaptive alert messaging
US10742635B2 (en) Multilevel sign-on
KR20250166424A (en) Method, apparatus, and recording medium for providing event notification information
HK40016204B (en) Application permission display and determination method, device and equipment
HK1258940B (en) Method and device for displaying unique identifier of digital object
HK1258940A1 (en) Method and device for displaying unique identifier of digital object