技术领域technical field
本发明涉及登录技术领域,更具体地,涉及一种移动客户端免密登录的方法、系统、浏览器及移动终端。The present invention relates to the technical field of login, and more specifically, to a method, system, browser and mobile terminal for password-free login of a mobile client.
背景技术Background technique
当前,用户在浏览器登录网页端的各种软件应用时,一般都要输入账号和密码进行登录。当用户在一台终端设备上成功登录了网页端的软件应用之后,该用户想在另一台移动终端设备上实现统一账号的登录时,如果还需要继续输入账号和密码,就会显得很繁琐,不过便捷。Currently, when a user logs in to various software applications on a web page through a browser, he generally needs to enter an account number and a password to log in. After the user successfully logs in the software application on the web page on one terminal device, if the user wants to log in with a unified account on another mobile terminal device, it will be very cumbersome if the user needs to continue to enter the account number and password. But convenient.
同时,对于一个已经在浏览器实现了保存了账号和密码的用户而言,在他在同一台终端设备上的浏览器登录相关的网页版的软件应用时,他无需输入账号密码即可实现了登录。若此刻他把密码给忘了,又想在另一台移动终端设备上进行登录,其就不能实现登录或者执行相关的找密工作。At the same time, for a user who has saved the account number and password in the browser, when he logs in to the relevant web-version software application in the browser on the same terminal device, he can realize the account without entering the account password. Log in. If he forgets the password at this moment and wants to log in on another mobile terminal device, he will not be able to log in or perform related secret-finding work.
最后,对于一个应用软件的账号,如果在不同的设备上反复地输入账号和密码,加大了账号密码被盗的风险。Finally, for an application software account, if the account number and password are repeatedly entered on different devices, the risk of account password being stolen increases.
发明内容Contents of the invention
为解决上述至少一个方面的问题,本发明提出了一种移动客户端免密登录的方法。In order to solve at least one of the above-mentioned problems, the present invention proposes a password-free login method for a mobile client.
同时,本发明还提供了一种移动客户端免密登录的系统、服务器、用户中心、浏览器及一种移动终端。At the same time, the present invention also provides a system for password-free login of a mobile client, a server, a user center, a browser and a mobile terminal.
为了实现本发明的目的,采取如下技术方案:In order to realize the purpose of the present invention, take following technical scheme:
第一方面,本发明提供了一种移动客户端免密登录的方法,其包括:In a first aspect, the present invention provides a method for password-free login of a mobile client, which includes:
接收当前登录浏览器的用户触发的移动客户端二维码登录的请求;Receive the QR code login request of the mobile client triggered by the user who is currently logged in to the browser;
响应于所述移动客户端二维码登录请求,向服务器发送获取该用户登录识别码的获取请求;In response to the mobile client QR code login request, send an acquisition request to the server to acquire the user login identification code;
接收并显示所述服务器响应于所述获取请求返回的根据所述登录识别码生成的二维码,以实现用户移动客户端扫描所述二维码进行免密登录。receiving and displaying the two-dimensional code generated according to the login identification code returned by the server in response to the acquisition request, so as to enable the user's mobile client to scan the two-dimensional code for password-free login.
具体地,所述接收当前登录浏览器的用户触发的移动客户端二维码登录的请求之后,还包括:Specifically, after receiving the mobile client QR code login request triggered by the user who is currently logged in to the browser, it also includes:
根据所述移动客户端二维码登录请求获取存储于所述浏览器的文件目录下的cookie;Obtain the cookie stored in the file directory of the browser according to the mobile client QR code login request;
发送所述cookie至服务器以请求判断所述用户的合法性。Send the cookie to the server to request to judge the legitimacy of the user.
具体地,所述响应于所述移动客户端二维码登录请求,向服务器发送获取该用户登录识别码的获取请求中,包括:Specifically, in response to the two-dimensional code login request of the mobile client, sending the acquisition request to the server to obtain the user login identification code includes:
响应于所述移动客户端二维码登录请求,获取所述浏览器的referer和cookie;In response to the mobile client QR code login request, obtain the referer and cookie of the browser;
根据所述referer和cookie向服务器发送获取该用户登录识别码的获取请求。Send an acquisition request to the server to acquire the user login identification code according to the referer and the cookie.
进一步地,所述接收并显示所述服务器响应于所述获取请求返回的根据所述登录识别码生成的二维码中,包括:Further, the receiving and displaying the two-dimensional code generated according to the login identification code returned by the server in response to the obtaining request includes:
接收服务器响应于所述获取请求返回的根据所述referer和cookie生成登录识别码后,并进一步根据所述登录识别码生成的二维码;After receiving the login identification code generated according to the referer and cookie returned by the server in response to the acquisition request, and further generating a two-dimensional code based on the login identification code;
在当前的浏览页面显示所述二维码。The two-dimensional code is displayed on the current browsing page.
具体地,所述二维码在预设的时间内有效。Specifically, the two-dimensional code is valid within a preset time.
进一步地,所述登录识别码包括用户的身份信息、用户的登陆状态及相应的URL。Further, the login identification code includes the user's identity information, the user's login status and the corresponding URL.
第二方面,本发明提供了另一种移动客户端免密登录的方法,其包括:In a second aspect, the present invention provides another method for password-free login of a mobile client, which includes:
服务器接收来自浏览器的获取当前登录用户的登录识别码的获取请求;The server receives an acquisition request from the browser to acquire the login identification code of the currently logged-in user;
响应于所述获取请求,向用户中心发送获取所述登录用户的登录识别码的获取请求;In response to the acquisition request, sending an acquisition request to the user center to acquire the login identification code of the logged-in user;
接收所述用户中心反馈的根据所述登录识别码生成的二维码,并将所述二维码发送至所述浏览器。receiving the two-dimensional code generated according to the login identification code fed back by the user center, and sending the two-dimensional code to the browser.
第三方面,本发明还提供了又一种移动客户端免密登录的方法,其包括:In the third aspect, the present invention also provides another method for password-free login of a mobile client, which includes:
用户中心接收来自服务器的获取当前浏览器登录用户的登录识别码的获取请求;The user center receives a request from the server to obtain the login identification code of the current browser login user;
响应于所述获取请求,获取所述登录用户的登录识别码;Responding to the obtaining request, obtaining the login identification code of the logged-in user;
根据所述登录识别码生成二维码,并将所述二维码发送至服务器。Generate a two-dimensional code according to the login identification code, and send the two-dimensional code to the server.
进一步地,还包括:Further, it also includes:
接收服务器传来的存储于所述浏览器文件目录下的cookie;Receive the cookie stored in the browser file directory from the server;
根据所述cookie判断所述用户的合法性。Judge the legitimacy of the user based on the cookie.
进一步地,响应于所述获取请求后,还包括:Further, after responding to the acquisition request, it also includes:
接收服务器发送的来自浏览器的referer和cookie。Receive the referer and cookie from the browser sent by the server.
进一步地,还包括:Further, it also includes:
根据所述referer和cookie获取所述登录用户的用户信息;Obtain the user information of the logged-in user according to the referer and cookie;
根据所述用户信息拼接新的cookie,并加密生成所述登录识别码。Splicing a new cookie according to the user information, and encrypting and generating the login identification code.
更进一步地,生成所述登录识别码后,还包括:Furthermore, after generating the login identification code, it also includes:
存储所述用户与所述登录识别码的对应关系。The corresponding relationship between the user and the login identification code is stored.
第四方面,本发明提供了一种服务器。所述服务器包括:In a fourth aspect, the present invention provides a server. The servers include:
接收模块,用于接收来自浏览器的获取当前登录用户的登录识别码的获取请求;A receiving module, configured to receive an acquisition request from the browser to acquire the login identification code of the currently logged-in user;
第一发送模块,用于响应于所述获取请求,向用户中心发送获取所述登录用户的登录识别码的获取请求;The first sending module is configured to send an acquisition request to the user center to acquire the login identification code of the logged-in user in response to the acquisition request;
第二发送模块,用于接收所述用户中心反馈的根据所述登录识别码生成的二维码,并将所述二维码发送至所述浏览器。The second sending module is configured to receive the two-dimensional code generated according to the login identification code fed back by the user center, and send the two-dimensional code to the browser.
第五方面,本发明提供了一种用户中心。所述用户中心包括:In a fifth aspect, the present invention provides a user center. The user center includes:
第一接收模块,用于接收来自服务器的获取当前浏览器登录用户的登录识别码的获取请求;The first receiving module is used to receive an acquisition request from the server to acquire the login identification code of the current browser login user;
获取模块,用于响应于所述获取请求,获取所述登录用户的登录识别码;An acquisition module, configured to acquire the login identification code of the logged-in user in response to the acquisition request;
发送模块,用于根据所述登录识别码生成二维码,并将所述二维码发送至服务器。A sending module, configured to generate a two-dimensional code according to the login identification code, and send the two-dimensional code to the server.
进一步地,还包括:Further, it also includes:
判断模块,用于接收服务器传来的存储于所述浏览器文件目录下的cookie;Judgment module, used to receive the cookie stored in the browser file directory sent by the server;
根据所述cookie判断所述用户的合法性。Judge the legitimacy of the user based on the cookie.
进一步地,响应于所述获取请求后,还包括:Further, after responding to the acquisition request, it also includes:
第二接收模块,用于接收服务器发送的来自浏览器的referer和cookie。The second receiving module is used for receiving the referer and cookie from the browser sent by the server.
进一步地,还包括:Further, it also includes:
生成模块,用于根据所述referer和cookie获取所述登录用户的用户信息;A generating module, configured to obtain user information of the logged-in user according to the referer and cookie;
根据所述用户信息拼接新的cookie,并加密生成所述登录识别码。Splicing a new cookie according to the user information, and encrypting and generating the login identification code.
更进一步地,生成所述登录识别码后,还包括:Furthermore, after generating the login identification code, it also includes:
存储模块,用于存储所述用户与所述登录识别码的对应关系。A storage module, configured to store the correspondence between the user and the login identification code.
第六方面,本发明提供了一种移动客户端免密登录的系统,其包括:执行第一方面所述的移动客户端免密登录的方法的步骤的浏览器、执行第二方面所述的移动客户端免密登录的方法的步骤的服务器及第三方面所述的移动客户端免密登录的方法的步骤的用户中心。In the sixth aspect, the present invention provides a mobile client password-free login system, which includes: a browser that executes the steps of the mobile client password-free login method described in the first aspect, and executes the method described in the second aspect. The server of the steps of the method for password-free login of the mobile client and the user center of the steps of the method of password-free login of the mobile client described in the third aspect.
第七方面,本发明还提供了一种浏览器。所述浏览器包括:In a seventh aspect, the present invention also provides a browser. The browsers include:
接收模块,用于接收当前登录浏览器的用户触发的移动客户端二维码登录的请求;The receiving module is used to receive the request of the QR code login of the mobile client triggered by the user who is currently logged in to the browser;
发送模块,用于响应于所述移动客户端二维码登录请求,向服务器发送获取该用户登录识别码的获取请求;A sending module, configured to send an acquisition request to the server to acquire the user login identification code in response to the mobile client QR code login request;
显示模块,用于接收并显示所述服务器响应于所述获取请求返回的根据所述登录识别码生成的二维码,以实现用户移动客户端扫描所述二维码进行免密登录。The display module is configured to receive and display the two-dimensional code generated according to the login identification code returned by the server in response to the acquisition request, so as to enable the user's mobile client to scan the two-dimensional code for password-free login.
具体地,执行所述接收模块之后,还包括:Specifically, after executing the receiving module, it also includes:
获取模块,用于根据所述移动客户端二维码登录请求获取存储于所述浏览器文件目录下的cookie;An acquisition module, configured to acquire the cookie stored in the browser file directory according to the mobile client QR code login request;
发送所述cookie至服务器以请求判断所述用户的合法性。Send the cookie to the server to request to judge the legitimacy of the user.
具体地,所述发送模块中,包括:Specifically, in the sending module, include:
获取单元,用于响应于所述移动客户端二维码登录请求,获取所述浏览器的referer和cookie;An acquisition unit, configured to acquire the referer and cookie of the browser in response to the mobile client QR code login request;
发送单元,用于根据所述referer和cookie向服务器发送获取该用户登录识别码的获取请求。A sending unit, configured to send an acquisition request for acquiring the user login identification code to the server according to the referer and the cookie.
进一步地,所述显示模块中,包括:Further, the display module includes:
接收单元,用于接收服务器响应于所述获取请求返回的根据所述referer和cookie生成登录识别码后,并进一步根据所述登录识别码生成的二维码;The receiving unit is used to receive the QR code generated by the login identification code according to the referer and the cookie returned by the server in response to the acquisition request, and further generated according to the login identification code;
显示单元,用于在当前的浏览页面显示所述二维码。The display unit is used to display the two-dimensional code on the current browsing page.
具体地,所述二维码在预设的时间内有效。Specifically, the two-dimensional code is valid within a preset time.
具体地,所述登录识别码包括用户的身份信息、用户的登陆状态及相应的URL。Specifically, the login identification code includes the user's identity information, the user's login status and the corresponding URL.
第八方面,本发明还提供了一种移动终端,其包括:In the eighth aspect, the present invention also provides a mobile terminal, which includes:
一个或多个处理器;one or more processors;
存储器;memory;
一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序被配置为当其被所述处理器执行时第一方面所述的移动客户端免密登录的方法的步骤。one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs are configured to be The steps of the method for password-free login of a mobile client described in the first aspect when executed by the processor.
相比于现有技术,本发明的方案具有以下优点:Compared with the prior art, the solution of the present invention has the following advantages:
本发明的技术方案中,在浏览器已实现登录的软件应用网页端或网页的用户,通过在当前的浏览器的界面中显示根据所述用户的登录识别码生成的二维码,用户在其他的移动终端设备上扫描所述二维码即可实现无须输入账号密码的免密登录,方便快捷,减少了操作成本,同时又避免了在不同设备上频繁进行账号密码操作所导致的账号风险,还可以在忘记密码的情形下,无须进行密码找回操作即可实现另一台移动终端设备的登录。In the technical solution of the present invention, the user of the software application web page or web page that has logged in in the browser displays the two-dimensional code generated according to the user's login identification code in the interface of the current browser, and the user can log in in other Scan the QR code on the mobile terminal device to realize password-free login without entering the account password, which is convenient and fast, reduces operating costs, and at the same time avoids account risks caused by frequent account and password operations on different devices. Also, in the case of forgetting the password, another mobile terminal device can be logged in without performing a password retrieval operation.
本发明附加的方面和优点将在下面的描述中部分给出,这些将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention will be set forth in part in the description which follows, and will become apparent from the description, or may be learned by practice of the invention.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1示出了本发明中一种移动客户端免密登录的方法的一种实施例的流程示意图;Fig. 1 shows a schematic flow diagram of an embodiment of a method for password-free login of a mobile client in the present invention;
图2示出了本发明中另一种移动客户端免密登录的方法的一种实施例的流程示意图;FIG. 2 shows a schematic flow diagram of an embodiment of another method for password-free login of a mobile client in the present invention;
图3示出了本发明中又一种移动客户端免密登录的方法的一种实施例的流程示意图;Fig. 3 shows a schematic flow diagram of an embodiment of another method for password-free login of a mobile client in the present invention;
图4示出了本发明中一种服务器的一种实施例的结构示意图;FIG. 4 shows a schematic structural diagram of an embodiment of a server in the present invention;
图5示出了本发明中一种用户中心的一种实施例的结构示意图;Fig. 5 shows a schematic structural diagram of an embodiment of a user center in the present invention;
图6示出了本发明中一种移动客户端免密登录的系统的结构示意图;Fig. 6 shows a schematic structural diagram of a mobile client password-free login system in the present invention;
图7示出了本发明中一种浏览器的结构示意图;Fig. 7 shows a schematic structural diagram of a browser in the present invention;
图8示出了本发明中一种移动终端的一种实施例的结构示意图。Fig. 8 shows a schematic structural diagram of an embodiment of a mobile terminal in the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention.
在本发明的说明书和权利要求书及上述附图中的描述的一些流程中,包含了按照特定顺序出现的多个操作,但是应该清楚了解,这些操作可以不按照其在本文中出现的顺序来执行或并行执行,操作的序号如101、102等,仅仅是用于区分开各个不同的操作,序号本身不代表任何的执行顺序。另外,这些流程可以包括更多或更少的操作,并且这些操作可以按顺序执行或并行执行。需要说明的是,本文中的“第一”、“第二”等描述,是用于区分不同的消息、设备、模块等,不代表先后顺序,也不限定“第一”和“第二”是不同的类型。In some processes described in the specification and claims of the present invention and the above-mentioned drawings, a plurality of operations appearing in a specific order are contained, but it should be clearly understood that these operations may not be performed in the order in which they appear herein Execution or parallel execution, the serial numbers of the operations, such as 101, 102, etc., are only used to distinguish different operations, and the serial numbers themselves do not represent any execution order. Additionally, the processes may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that the descriptions of "first" and "second" in this article are used to distinguish different messages, devices, modules, etc., and do not represent the sequence, nor limit the "first" and "second" are different types.
本领域普通技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本发明所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。Those of ordinary skill in the art can understand that, unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as commonly understood by those of ordinary skill in the art to which this invention belongs. It should also be understood that terms, such as those defined in commonly used dictionaries, should be understood to have meanings consistent with their meaning in the context of the prior art, and unless specifically defined as herein, are not intended to be idealized or overly Formal meaning to explain.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.
第一方面first
如图1,示出了本发明中一种移动客户端免密登录的方法的流程示意图。FIG. 1 shows a schematic flowchart of a method for password-free login of a mobile client in the present invention.
所述移动客户端免密登录的方法包括步骤S101、S102、S103。其中,The method for password-free login of a mobile client includes steps S101, S102, and S103. in,
步骤S101,接收当前登录浏览器的用户触发的移动客户端二维码登录的请求;Step S101, receiving a mobile client QR code login request triggered by a user who is currently logged in to the browser;
步骤S102,响应于所述移动客户端二维码登录请求,向服务器发送获取该用户登录识别码的获取请求;Step S102, in response to the mobile client QR code login request, sending an acquisition request to the server to acquire the user login identification code;
步骤S103,接收并显示所述服务器响应于所述获取请求返回的根据所述登录识别码生成的二维码,以实现用户移动客户端扫描所述二维码进行免密登录。Step S103, receiving and displaying the two-dimensional code generated according to the login identification code returned by the server in response to the acquisition request, so as to realize password-free login by scanning the two-dimensional code on the user's mobile client.
本发明中,在浏览器已实现登录的软件应用网页端或网页的用户,通过在当前的浏览器的界面中显示根据所述用户的登录识别码生成的二维码,用户在其它移动终端设备上扫描所述二维码即可实现无须输入账号密码的免密登录,方便快捷,减少了操作成本,同时又避免了在不同设备上频繁进行账号密码操作所导致的账号风险,还可以在忘记密码的情形下,无须进行密码找回操作即可实现另一台移动终端设备的登录。In the present invention, the user of the software application web page or web page that has logged in in the browser displays the two-dimensional code generated according to the user's login identification code in the interface of the current browser, and the user can log in to other mobile terminal devices. Scan the QR code above to realize password-free login without entering the account password, which is convenient and fast, reduces operating costs, and avoids the account risk caused by frequent account password operations on different devices In the case of a password, another mobile terminal device can be logged in without performing a password retrieval operation.
为了使得本发明的技术方案更清晰,更便于理解,对本发明的技术方案的各个步骤的具体实现的过程和方式加以详细的描述。In order to make the technical solution of the present invention clearer and easier to understand, the specific implementation process and manner of each step of the technical solution of the present invention are described in detail.
步骤S101,接收当前登录浏览器的用户触发的移动客户端二维码登录的请求。Step S101, receiving a mobile client QR code login request triggered by a user who is currently logged in to the browser.
本发明中,用户在一台终端设备上登录浏览器之后,在该终端设备的所述浏览器上实现软件应用网页端或网页的账号密码登录。在此之后,用户想在移动终端设备上通过软件应用的客户端登陆同一账号,其可以在当前登陆所述软件应用网页端或所述网页登陆的页面点击某一控件,请求生成移动客户端二维码,以实现移动客户端二维码登录。在所述二维码生成后,用户可通过移动端扫描所述二维码实现在移动客户端的免密登陆。In the present invention, after the user logs in the browser on a terminal device, the user realizes the login of the software application web page or the account password of the web page on the browser of the terminal device. After that, if the user wants to log in the same account through the client of the software application on the mobile terminal device, he can click a certain control on the page where he currently logs in to the software application web page or the web page to request to generate a second account of the mobile client. QR code to realize QR code login on the mobile client. After the two-dimensional code is generated, the user can scan the two-dimensional code through the mobile terminal to realize password-free login on the mobile client.
例如,对于一个游戏平台,登录该游戏平台的用户可以利用所述游戏平台的账号登录该游戏平台的所有游戏进行操作。用户在一台电脑上,通过浏览器已经注册并登录了所述游戏平台。在已登录的所述游戏平台的页面中,用户突然不想用电脑,而想用手机对游戏平台客户端中的A游戏进行操作。为了在手机上不用再输入账号跟密码就可以实现登陆A游戏,用户在电脑上的A游戏页面或游戏平台的页面中,点击页面中的生成移动客户端二维码登录的相关控件,即可在所述页面中生成相应的二维码,用户利用手机扫描所述二维码即可实现在游戏平台客户端中实现免密登录。For example, for a game platform, a user who logs in to the game platform can use the account of the game platform to log in to all games on the game platform to operate. The user has registered and logged in the game platform through a browser on a computer. In the logged-in page of the game platform, the user suddenly does not want to use a computer, but wants to use a mobile phone to operate the game A in the game platform client. In order to log in to game A without entering the account number and password on the mobile phone, the user clicks on the relevant control on the page to generate a mobile client QR code to log in on the page of the game A on the computer or the page of the game platform. A corresponding two-dimensional code is generated on the page, and the user scans the two-dimensional code with a mobile phone to realize secret-free login in the game platform client.
具体地,所述接收当前登录浏览器的用户触发的移动客户端二维码登录的请求之后,还包括:Specifically, after receiving the mobile client QR code login request triggered by the user who is currently logged in to the browser, it also includes:
根据所述移动客户端二维码登录请求获取存储于所述浏览器文件目录下的cookie;Obtain the cookie stored in the browser file directory according to the mobile client QR code login request;
发送所述cookie至服务器以请求判断所述用户的合法性。Send the cookie to the server to request to judge the legitimacy of the user.
本发明中,Cookie是用户在使用浏览器访问网站时,所述网站为了辨别用户身份而储存在用户本地终端上的数据。Cookie是由用户中心生成,发送给User-Agent(在本发明中指浏览器),浏览器会将Cookie的key/value保存到某个目录下的文本文件内。用户登录一个网站时,网站往往会请求用户输入用户名和密码,在用户输入账号密码实现登陆时,该网站的用户中心发送了包含登录凭据(用户名加密码的某种加密形式)的Cookie到浏览器上。所述cookie包含了加密的key,用户中心根据key反解出用户基本信息,并可以根据需求获取用户的全部信息,在用户通过所述浏览器再次登陆所述网站时,验证所述cookie可实现在同一设备自动登陆。In the present invention, a cookie is data stored on the user's local terminal in order to identify the user's identity when the user visits the website using a browser. The cookie is generated by the user center and sent to the User-Agent (referring to the browser in the present invention), and the browser will save the key/value of the cookie to a text file in a certain directory. When a user logs in to a website, the website often asks the user to enter the user name and password. When the user enters the account password to log in, the user center of the website sends a cookie containing the login credentials (an encrypted form of the user name and password) to the browser. device. The cookie contains an encrypted key, and the user center can decipher the basic information of the user according to the key, and can obtain all the information of the user according to the demand. When the user logs in to the website again through the browser, the verification of the cookie can be realized. Log in automatically on the same device.
在接收到用户关于某网站的所述移动客户端二维码登录请求,获取该网站存储于浏览器的文件目录下cookie,将所述cookie发送至服务器以根据所述cookie判断用户的登陆信息是否过期、有效、合法等,从而保证了使用cookie的安全性,也保证了本发明中的根据所述cookie生成的用户的登录识别码有效可靠。After receiving the mobile client two-dimensional code login request of the user about a certain website, obtain the cookie stored in the file directory of the browser on the website, and send the cookie to the server to determine whether the user's login information is based on the cookie Expired, valid, legal, etc., thereby ensuring the security of using cookies, and also ensuring that the user's login identification code generated according to the cookie in the present invention is effective and reliable.
在一种具体的实施方式中,只有根据cookie判断了当前登录网站的用户合法后,才会执行相应的生成用于实现移动客户端免密登录的二维码的操作。In a specific implementation manner, the corresponding operation of generating a two-dimensional code for realizing password-free login of the mobile client will be performed only after judging that the user who currently logs in to the website is legal according to the cookie.
步骤S102,响应于所述移动客户端二维码登录请求,向服务器发送获取该用户登录识别码的获取请求。Step S102, in response to the mobile client QR code login request, send an acquisition request to the server to acquire the user login identification code.
在接收到用户在网页上的相关控件、或按钮上所触发的移动客户端二维码登录的请求后,服务器会对所述请求做出回应,以获取用以实现移动客户端二维码登录相关网页的登录识别码。After receiving the QR code login request of the mobile client triggered by the user on the webpage related controls or buttons, the server will respond to the request to obtain the QR code login request for the mobile client. The login ID of the associated web page.
所述登录识别码对应于具备登录态或已处于登录态的页面链接,其可以使得已在一台终端设备上浏览器登录某网站的所述用户无需输入相关网站的账户和密码即可实现在另一台移动终端设备上登录相应的网站。The login identification code corresponds to a page link that has a login state or is already in a login state, which can enable the user who has logged in to a website with a browser on a terminal device to realize the login without entering the account and password of the relevant website. Log in to the corresponding website on another mobile terminal device.
可以理解的是,所述登录识别码并非于所述浏览器生成,其是基于浏览器向服务器发送相关的获取请求,服务器作为一个数据中转站再将该所述获取请求的内容再向用户中心获取,所述用户中心接收到服务器的请求后根据用户的用户信息所生成并反馈至服务器以使得所述服务器回传给浏览器。It can be understood that the login identification code is not generated by the browser, it is based on the browser sending a related acquisition request to the server, and the server acts as a data transfer station and then sends the content of the acquisition request to the user center Obtaining, the user center generates and feeds back to the server according to the user information of the user after receiving the request from the server so that the server sends back to the browser.
具体地,所述登录识别码包括用户的身份信息、用户的登录状态及相应的URL。Specifically, the login identification code includes the user's identity information, the user's login status and the corresponding URL.
所述身份信息,亦即用户基本信息,用于在移动客户端扫描所述二维码时,相应的用户中心对所述用户身份进行验证,以实现借助所述登录识别码无需进行账户名称和密码的输入。The identity information, that is, the user's basic information, is used to verify the identity of the user by the corresponding user center when the mobile client scans the two-dimensional code, so as to realize that the account name and account name are not required to be registered with the help of the login identification code. Input of password.
所述用户的登录状态包括:该用户的账号是在线、处于离开状态、隐身状态、免打扰状态等,其更多的是反应当前的账户所处的状态,是否会产生上线冲突等。The user's login status includes: the user's account is online, away, invisible, do-not-disturb, etc., which more reflect the status of the current account, whether there will be an online conflict, etc.
URL:Uniform Resource Locator,即统一资源定位符,是对可以从互联网上得到的资源的位置和访问方法的一种简洁的表示,是互联网上标准资源的地址。互联网上的每个文件都有一个唯一的URL,它包含的信息指出文件的位置以及浏览器应该怎么处理它。URL: Uniform Resource Locator, that is, Uniform Resource Locator, is a concise representation of the location and access method of resources that can be obtained from the Internet, and is the address of standard resources on the Internet. Every file on the Internet has a unique URL, which contains information indicating where the file is located and what the browser should do with it.
用户扫描二维码,其会跳转一个页面链接,所述页面链接是通过URL实现的。由于所述用户在PC端和移动端登录同一网站时,其对应的URL可能会存在不同,因此所述URL要重新更新。为了实现所述用户移动客户端扫描所述登录识别码生成的二维码后能登录相关的网站,所述登录识别码需要具备所请求登录的网站的移动端对应的URL。When the user scans the QR code, it will jump to a page link, and the page link is realized through the URL. Since the corresponding URL may be different when the user logs in to the same website on the PC terminal and the mobile terminal, the URL needs to be updated again. In order to enable the user to log in to a relevant website after scanning the two-dimensional code generated by the login identification code on the user's mobile client, the login identification code needs to have a URL corresponding to the mobile terminal of the website requested to log in.
具体地,所述响应于所述移动客户端二维码登录请求,向服务器发送获取该用户登录识别码的获取请求中,包括:Specifically, in response to the two-dimensional code login request of the mobile client, sending the acquisition request to the server to obtain the user login identification code includes:
响应于所述移动客户端二维码登录请求,获取所述浏览器的referer和cookie;In response to the mobile client QR code login request, obtain the referer and cookie of the browser;
根据所述referer和cookie向服务器发送获取该用户登录识别码的获取请求。Send an acquisition request to the server to acquire the user login identification code according to the referer and the cookie.
当浏览器向服务器发送获取该用户登录识别码的获取请求时,所述浏览器带上referer是为了告诉服务器,其是从哪个页面链接过来的,服务器籍此可以获得一些信息用于处理。比如,从一个用户主页上链接到另一个网页,该网页的服务器就能够从HTTPReferer中统计出每天有多少用户点击该用户主页上的链接访问他的网站。When the browser sends an acquisition request to the server to obtain the user login identification code, the browser includes the referer to tell the server which page it is linked from, so that the server can obtain some information for processing. For example, if a user's homepage is linked to another webpage, the server of the webpage can count how many users click on the link on the user's homepage to visit his website every day from the HTTPReferer.
服务器接收所述referer跟cookie后,将所述referer跟cookie发送至相应的用户中心,用户中心根据所述referer和cookie生成所述登录识别码。After receiving the referer and cookie, the server sends the referer and cookie to the corresponding user center, and the user center generates the login identification code according to the referer and cookie.
步骤S103,接收并显示所述服务器响应于所述获取请求返回的根据所述登录识别码生成的二维码,以实现用户移动客户端扫描所述二维码进行免密登录。Step S103, receiving and displaying the two-dimensional code generated according to the login identification code returned by the server in response to the acquisition request, so as to realize password-free login by scanning the two-dimensional code on the user's mobile client.
可以理解的是,所述二维码的生成是在用户中心完成的,其并不是在作为数据中转站的服务器完成的。因此所述浏览器所接收到的已生成的二维码是用户中心生成后传输给服务器,服务器再反馈至所述浏览器的。所述浏览器接收到所述二维码后,其会显示所接收到的包括所述二维码在内的接收成功信息。所述二维码可以弹窗或页面中一个区域进行显示,用户通过扫描所述二维码可实现在移动客户端的免密登录。It can be understood that the generation of the two-dimensional code is completed at the user center, but not at the server serving as a data transfer station. Therefore, the generated two-dimensional code received by the browser is generated by the user center and transmitted to the server, and then the server feeds back to the browser. After the browser receives the two-dimensional code, it will display the received success information including the two-dimensional code. The two-dimensional code can be displayed in a pop-up window or an area on the page, and the user can realize password-free login on the mobile client by scanning the two-dimensional code.
例如,用户在使用PC端的浏览器上成功登录网站A的时候,其想在另一台移动终端设备上免密登录网站A。在网站A所在的页面或浏览器的其他页面,触发了移动客户端二维码登录的请求。浏览器接收到所述请求,向服务器请求二维码,服务器再将包含该请求的内容向网站A的用户中心请求二维码,网站A的用户中心生成二维码后将所述二维码传输给该服务器,该服务器再将所述二维码传输给浏览器。浏览器接收并显示所述二维码。For example, when a user successfully logs in to website A using a PC browser, he wants to log in to website A without password on another mobile terminal device. On the page where website A is located or other pages of the browser, a QR code login request on the mobile client is triggered. The browser receives the request and requests the QR code from the server, and the server then requests the QR code from the user center of website A for the content containing the request, and the user center of website A generates the QR code and sends the QR code transmitted to the server, and the server then transmits the two-dimensional code to the browser. The browser receives and displays the two-dimensional code.
具体地,所述接收并显示所述服务器响应于所述获取请求返回的根据所述登录识别码生成的二维码中,包括:Specifically, the receiving and displaying the two-dimensional code generated according to the login identification code returned by the server in response to the obtaining request includes:
接收服务器响应于所述获取请求返回的根据所述referer和cookie生成登录识别码后,并进一步根据所述登录识别码生成的二维码;After receiving the login identification code generated according to the referer and cookie returned by the server in response to the acquisition request, and further generating a two-dimensional code based on the login identification code;
在当前的浏览页面显示所述二维码。The two-dimensional code is displayed on the current browsing page.
在PC端的浏览器请求生成登录识别码的过程中,服务器向用户中心提交包含浏览器的请求内容的请求,用户中心接收服务器所传输过来的浏览器所获取的referer跟cookie以根据所述referer跟cookie生成登录识别码。When the browser on the PC side requests to generate a login identification code, the server submits a request containing the content of the browser’s request to the user center, and the user center receives the referer and cookie obtained by the browser transmitted from the server to use the The cookie generates a login identifier.
其中,用户中心接收到referer之后,其获取所述用户账号的对应的页面链接跟该页面链接的来源,从而根据所述页面链接获取该页面链接所对应的移动终端上的页面链接。Wherein, after the user center receives the referer, it obtains the corresponding page link of the user account and the source of the page link, so as to obtain the page link on the mobile terminal corresponding to the page link according to the page link.
所述用户中心根据所述referer实现URL的重定向,根据所述cookie获取用户账户登录时的相关数据,从而可以根据所述referer和cookie按照预设的规则生成登录识别码,所述登录识别码中包含用于实现用户账户登录的唯一的key。所述用户中心再根据所述登录识别码生成二维码回传给服务器。The user center implements URL redirection according to the referer, and obtains relevant data when logging in to the user account according to the cookie, so that a login identification code can be generated according to preset rules according to the referer and cookie, and the login identification code Contains the unique key used to log in to the user account. The user center then generates a two-dimensional code according to the login identification code and sends it back to the server.
具体地,所述二维码在预设的时间内有效。Specifically, the two-dimensional code is valid within a preset time.
所述二维码生成后,具有时效性。只有在生成后的预设的时间内,用户扫描所述二维码方能登陆,超出了预设的时间后,用户扫描所述二维码,不能实现在移动客户端的登录。其有利于保护用户的账户密码安全,避免由于长时间暴露所述二维码而导致的账号风险。After the two-dimensional code is generated, it is time-sensitive. Only within the preset time after generation, the user can scan the two-dimensional code to log in, and after the preset time, the user cannot log in to the mobile client by scanning the two-dimensional code. It is beneficial to protect the security of the user's account password and avoid the account risk caused by exposing the two-dimensional code for a long time.
例如,生成所述二维码后,二维码在60s内有效。用户在二维码生成后的60s内扫描所述二维码,可实现移动客户端的免密登录。当用户在二维码生成的60s以后再去扫描所述二维码,无法实现移动客户端的登陆。For example, after the two-dimensional code is generated, the two-dimensional code is valid within 60s. The user can scan the two-dimensional code within 60 seconds after the two-dimensional code is generated to realize the password-free login of the mobile client. When the user scans the two-dimensional code 60 seconds after the two-dimensional code is generated, the login of the mobile client cannot be realized.
第二方面second aspect
如图2所示,本发明提供了另一种移动客户端免密登录的方法。所述移动客户端免密登录的方法包括步骤S201、S202、S203。其中,As shown in FIG. 2 , the present invention provides another method for password-free login of a mobile client. The method for password-free login of a mobile client includes steps S201, S202, and S203. in,
步骤S201.服务器接收来自浏览器的获取当前登录用户的登录识别码的获取请求;Step S201. The server receives an acquisition request from the browser to acquire the login identification code of the currently logged-in user;
步骤S202.响应于所述获取请求,向用户中心发送获取所述登录用户的登录识别码的获取请求;Step S202. In response to the acquisition request, send an acquisition request to the user center to acquire the login identification code of the logged-in user;
步骤S203.接收所述用户中心反馈的根据所述登录识别码生成的二维码,并将所述二维码发送至所述浏览器。Step S203. Receive the two-dimensional code generated according to the login identification code fed back by the user center, and send the two-dimensional code to the browser.
可以理解的是,本发明的技术方案中,所述服务器是作为数据的中转站,其不对浏览器当前的登录用户的用户数据进行具体的处理,其只是作为浏览器与相应的网站的用户中心之间的一个桥梁,将浏览器的请求传输到所述用户中心,又将所述用户中的“回信”反馈至所述浏览器。It can be understood that, in the technical solution of the present invention, the server is used as a data transfer station, and it does not perform specific processing on the user data of the currently logged-in user of the browser, but only serves as the user center between the browser and the corresponding website A bridge between browsers, which transmits the browser's request to the user center, and feeds back the "reply letter" from the user to the browser.
在所述服务器接收到来自浏览器的获取登录识别码的获取请求后,其会将浏览器所传输来的相关的用户数据及获取请求一一以自己的名义发送至相关的用户中心,用户中心根据相关的用户数据生成登录识别码并进一步根据所述登录识别码生成二维码,从而将所述二维码传输给服务器。服务器再将从用户中心所接收到的二维码发送至所述浏览器。After the server receives the acquisition request for obtaining the login identification code from the browser, it will send the relevant user data and acquisition requests transmitted by the browser to the relevant user center in its own name. A login identification code is generated according to relevant user data, and a two-dimensional code is further generated according to the login identification code, so as to transmit the two-dimensional code to the server. The server then sends the QR code received from the user center to the browser.
第三方面third aspect
如图3所示,本发明还提供了又一种移动客户端免密登录的方法。所述动客户端免密登录的方法包括步骤S301、S302、S303。其中As shown in FIG. 3 , the present invention also provides another method for password-free login of a mobile client. The method for password-free login of the mobile client includes steps S301, S302, and S303. in
步骤S301.用户中心接收来自服务器的获取当前浏览器登录用户的登录识别码的获取请求;Step S301. The user center receives a request from the server to obtain the login identification code of the current browser login user;
步骤S302.响应于所述获取请求,获取所述登录用户的登录识别码;Step S302. Obtain the login identification code of the login user in response to the acquisition request;
步骤S303.根据所述登录识别码生成二维码,并将所述二维码发送至服务器。Step S303. Generate a two-dimensional code according to the login identification code, and send the two-dimensional code to the server.
所述用户中心根据浏览器通过服务器传输来的用户数据,根据所述服务器传输来的用户数据生成所述登录识别码,并根据预设的规则生成相应的二维码。在生成所述二维码后,所述用户中心将该二维码发送至服务器,以使得所述服务器将所述二维码发送至浏览器的页面,方便用户利用移动终端扫描所述二维码实现移动客户端免密登录。The user center generates the login identification code according to the user data transmitted by the browser through the server, and generates a corresponding two-dimensional code according to preset rules. After generating the two-dimensional code, the user center sends the two-dimensional code to the server, so that the server sends the two-dimensional code to the page of the browser, which is convenient for the user to use the mobile terminal to scan the two-dimensional code. code to implement password-free login on mobile clients.
进一步地,还包括:Further, it also includes:
接收服务器传来的存储于所述浏览器文件目录下的cookie;Receive the cookie stored in the browser file directory from the server;
根据所述cookie判断所述用户的合法性。Judge the legitimacy of the user based on the cookie.
在接收到服务器传输来的用户关于某网站的所述移动客户端二维码登录请求,获取服务器传输来的存储于浏览器的文件目录下cookie,用户中心根据所述cookie判断用户的登陆信息是否过期、有效、合法等,从而保证了使用cookie的安全性,也保证了本发明中的根据所述cookie生成的用户的登录识别码有效可靠。After receiving the user’s QR code login request on a website from the server, obtain the cookie stored in the file directory of the browser transmitted by the server, and the user center judges whether the user’s login information is based on the cookie. Expired, valid, legal, etc., thereby ensuring the security of using cookies, and also ensuring that the user's login identification code generated according to the cookie in the present invention is effective and reliable.
进一步地,响应于所述获取请求后,还包括:Further, after responding to the acquisition request, it also includes:
接收服务器发送的来自浏览器的referer和cookie。Receive the referer and cookie from the browser sent by the server.
进一步地,还包括:Further, it also includes:
根据所述referer和cookie获取所述登录用户的用户信息;Obtain the user information of the logged-in user according to the referer and cookie;
根据所述用户信息拼接新的cookie,并加密生成所述登录识别码。Splicing a new cookie according to the user information, and encrypting and generating the login identification code.
在浏览器请求生成登录识别码的过程中,服务器向用户中心提交包含浏览器的请求内容的请求,用户中心接收服务器所传输过来的浏览器所获取的referer跟cookie以根据所述referer跟cookie生成登录识别码。In the process of the browser requesting to generate a login identification code, the server submits a request to the user center containing the content of the browser's request, and the user center receives the referer and cookie obtained by the browser transmitted from the server to generate according to the referer and cookie Login ID.
其中,用户中心接收到referer之后,其获取所述用户账号的对应的页面链接跟该页面链接的来源,从而根据所述页面链接获取该页面链接所对应的移动终端上的页面链接。Wherein, after the user center receives the referer, it obtains the corresponding page link of the user account and the source of the page link, so as to obtain the page link on the mobile terminal corresponding to the page link according to the page link.
所述用户中心根据所述referer实现URL的重定向,根据所述cookie获取用户账户登录时的相关数据,从而可以根据所述referer和cookie按照预设的规则生成登录识别码,所述登录识别码中包含用于实现用户账户登录的唯一的key。所述用户中心再根据所述登录识别码生成二维码回传给服务器。The user center implements URL redirection according to the referer, and obtains relevant data when logging in to the user account according to the cookie, so that a login identification code can be generated according to preset rules according to the referer and cookie, and the login identification code Contains the unique key used to log in to the user account. The user center then generates a two-dimensional code according to the login identification code and sends it back to the server.
正如前面所言,本发明中,cookie是用户在使用浏览器访问网站时,所述网站为了辨别用户身份而储存在用户本地终端上的数据。当所述用户在移动终端登录相应的网站时,所述用户中心会生成新的cookie以发送给该网站对应的浏览器所对应的服务器。As mentioned above, in the present invention, a cookie is data stored on the user's local terminal in order to identify the user's identity when the user visits the website using a browser. When the user logs in the corresponding website on the mobile terminal, the user center will generate a new cookie and send it to the server corresponding to the browser corresponding to the website.
更进一步地,生成所述登录识别码后,还包括:Furthermore, after generating the login identification code, it also includes:
存储所述用户与所述登录识别码的对应关系。The corresponding relationship between the user and the login identification code is stored.
用户在移动客户端免密登录时,其通过扫描所述二维码跳转到相应的页面链接实现登录。在扫描二维码登录的过程中,移动客户端获取了二维码中的登录识别码,并将所述登录识别码传输至服务器,并进一步经所述服务器传输至用户中心进行验证登录。用户中心利用其所存储所述用户与所述登录识别码的对应关系,实现所述用户账户登录的验证,从而实现所述用户的移动客户端的免密码登录。When the user logs in without password on the mobile client, he scans the two-dimensional code and jumps to the corresponding page link to log in. During the login process of scanning the QR code, the mobile client obtains the login identification code in the QR code, transmits the login identification code to the server, and further transmits the login identification code to the user center via the server for verification and login. The user center uses the stored correspondence between the user and the login identification code to verify the user account login, thereby realizing password-free login of the user's mobile client.
第四方面fourth aspect
如图4所示,本发明还提供了一种服务器的一种实施例。As shown in FIG. 4 , the present invention also provides an embodiment of a server.
所述服务器包括接收模块101、第一发送模块102和第二发送模块103。其中,The server includes a receiving module 101 , a first sending module 102 and a second sending module 103 . in,
接收模块101,用于接收来自浏览器的获取当前登录用户的登录识别码的获取请求;The receiving module 101 is configured to receive an acquisition request from the browser to acquire the login identification code of the currently logged-in user;
第一发送模块102,用于响应于所述获取请求,向用户中心发送获取所述登录用户的登录识别码的获取请求;The first sending module 102 is configured to send an acquisition request to the user center to acquire the login identification code of the logged-in user in response to the acquisition request;
第二发送模块103,用于接收所述用户中心反馈的根据所述登录识别码生成的二维码,并将所述二维码发送至所述浏览器。The second sending module 103 is configured to receive the two-dimensional code generated according to the login identification code fed back by the user center, and send the two-dimensional code to the browser.
可以理解的是,本发明的技术方案中,所述服务器是作为数据的中转站,其不对浏览器当前的登录用户的用户数据进行具体的处理,其只是作为浏览器与相应的网站的用户中心之间的一个桥梁,将浏览器的请求传输到所述用户中心,又将所述用户中的“回信”反馈至所述浏览器。It can be understood that, in the technical solution of the present invention, the server is used as a data transfer station, and it does not perform specific processing on the user data of the currently logged-in user of the browser, but only serves as the user center between the browser and the corresponding website A bridge between browsers, which transmits the browser's request to the user center, and feeds back the "reply letter" from the user to the browser.
在所述服务器接收到来自浏览器的获取登录识别码的获取请求后,其会将浏览器所传输来的相关的用户数据及获取请求一一以自己的名义发送至相关的用户中心,用户中心根据相关的用户数据生成登录识别码并进一步根据所述登录识别码生成二维码,从而将所述二维码传输给服务器。服务器再将从用户中心所接收到的二维码发送至所述浏览器。After the server receives the acquisition request for obtaining the login identification code from the browser, it will send the relevant user data and acquisition requests transmitted by the browser to the relevant user center in its own name. A login identification code is generated according to relevant user data, and a two-dimensional code is further generated according to the login identification code, so as to transmit the two-dimensional code to the server. The server then sends the QR code received from the user center to the browser.
第五方面fifth aspect
如图5所述,本发明还提供了一种应用于所述移动客户端免密登录的方法的用户中心的一种实施例。As shown in FIG. 5 , the present invention also provides an embodiment of a user center applied to the method for password-free login of a mobile client.
所述用户中心包括第一接收模块201、获取模块202和发送模块203。其中,The user center includes a first receiving module 201 , an acquiring module 202 and a sending module 203 . in,
第一接收模块201,用于接收来自服务器的获取当前浏览器登录用户的登录识别码的获取请求;The first receiving module 201 is configured to receive an acquisition request from the server to acquire the login identification code of the current browser login user;
获取模块202,用于响应于所述获取请求,获取所述登录用户的登录识别码;An obtaining module 202, configured to obtain the login identification code of the logged-in user in response to the obtaining request;
发送模块203,用于根据所述登录识别码生成二维码,并将所述二维码发送至服务器。The sending module 203 is configured to generate a two-dimensional code according to the login identification code, and send the two-dimensional code to the server.
所述用户中心根据浏览器通过服务器传输来的用户数据,根据所述服务器传输来的用户数据生成所述登录识别码,并根据预设的规则生成相应的二维码。在生成所述二维码后,所述用户中心将该二维码发送至服务器,以使得所述服务器将所述二维码发送至浏览器的页面,方便用户利用移动终端扫描所述二维码实现移动客户端免密登录。The user center generates the login identification code according to the user data transmitted by the browser through the server, and generates a corresponding two-dimensional code according to preset rules. After generating the two-dimensional code, the user center sends the two-dimensional code to the server, so that the server sends the two-dimensional code to the page of the browser, which is convenient for the user to use the mobile terminal to scan the two-dimensional code. code to implement password-free login on mobile clients.
具体地,响应于所述获取请求后,还包括:Specifically, after responding to the acquisition request, it also includes:
判断模块,用于接收服务器传来的存储于所述浏览器文件目录下的cookie;Judgment module, used to receive the cookie stored in the browser file directory sent by the server;
根据所述cookie判断所述用户的合法性。Judge the legitimacy of the user based on the cookie.
在接收到服务器传输来的用户关于某网站的所述移动客户端二维码登录请求,获取服务器传输来的存储于浏览器的文件目录下cookie,用户中心根据所述cookie判断用户的登陆信息是否过期、有效、合法等,从而保证了使用cookie的安全性,也保证了本发明中的根据所述cookie生成的用户的登录识别码有效可靠。After receiving the user’s QR code login request on a website from the server, obtain the cookie stored in the file directory of the browser transmitted by the server, and the user center judges whether the user’s login information is based on the cookie. Expired, valid, legal, etc., thereby ensuring the security of using cookies, and also ensuring that the user's login identification code generated according to the cookie in the present invention is effective and reliable.
具体地,响应于所述获取请求后,还包括:Specifically, after responding to the acquisition request, it also includes:
第二接收模块,用于接收服务器发送的来自浏览器的Referer和cookie。The second receiving module is used for receiving the Referer and cookie sent by the server from the browser.
进一步地,还包括:Further, it also includes:
生成模块,用于根据所述Referer和cookie获取所述登录用户的用户信息;A generating module, configured to obtain user information of the logged-in user according to the Referer and cookie;
根据所述用户信息拼接新的cookie,并加密生成所述登录识别码。Splicing a new cookie according to the user information, and encrypting and generating the login identification code.
在浏览器请求生成登录识别码的过程中,服务器向用户中心提交包含浏览器的请求内容的请求,用户中心接收服务器所传输过来的浏览器所获取的referer跟cookie以根据所述referer跟cookie生成登录识别码。In the process of the browser requesting to generate a login identification code, the server submits a request to the user center containing the content of the browser's request, and the user center receives the referer and cookie obtained by the browser transmitted from the server to generate according to the referer and cookie Login ID.
其中,用户中心接收到referer之后,其获取所述用户账号的对应的页面链接跟该页面链接的来源,从而根据所述页面链接获取该页面链接所对应的移动终端上的页面链接。Wherein, after the user center receives the referer, it obtains the corresponding page link of the user account and the source of the page link, so as to obtain the page link on the mobile terminal corresponding to the page link according to the page link.
所述用户中心根据所述referer实现URL的重定向,根据所述cookie获取用户账户登录时的相关数据,从而可以根据所述referer和cookie按照预设的规则生成登录识别码,所述登录识别码中包含用于实现用户账户登录的唯一的key。所述用户中心再根据所述登录识别码生成二维码回传给服务器。The user center implements URL redirection according to the referer, and obtains relevant data when logging in to the user account according to the cookie, so that a login identification code can be generated according to preset rules according to the referer and cookie, and the login identification code Contains the unique key used to log in to the user account. The user center then generates a two-dimensional code according to the login identification code and sends it back to the server.
正如前面所言,本发明中,cookie是用户在使用浏览器访问网站时,所述网站为了辨别用户身份而储存在用户本地终端上的数据。当所述用户在移动终端登录相应的网站时,所述用户中心会生成新的cookie以发送给该网站对应的浏览器所对应的服务器。As mentioned above, in the present invention, a cookie is data stored on the user's local terminal in order to identify the user's identity when the user visits the website using a browser. When the user logs in the corresponding website on the mobile terminal, the user center will generate a new cookie and send it to the server corresponding to the browser corresponding to the website.
更进一步地,生成所述登录识别码后,还包括:Furthermore, after generating the login identification code, it also includes:
存储模块,用于存储所述用户与所述登录识别码的对应关系。A storage module, configured to store the correspondence between the user and the login identification code.
用户在移动客户端免密登录时,其通过扫描所述二维码跳转到相应的页面链接实现登录。在扫描二维码登录的过程中,移动客户端获取了二维码中的登录识别码,并将所述登录识别码传输至服务器,并进一步经所述服务器传输至用户中心进行验证登录。用户中心利用其所存储所述用户与所述登录识别码的对应关系,实现所述用户账户登录的验证,从而实现所述用户的移动客户端的免密码登录。When the user logs in without password on the mobile client, he scans the two-dimensional code and jumps to the corresponding page link to log in. During the login process of scanning the QR code, the mobile client obtains the login identification code in the QR code, transmits the login identification code to the server, and further transmits the login identification code to the user center via the server for verification and login. The user center uses the stored correspondence between the user and the login identification code to verify the user account login, thereby realizing password-free login of the user's mobile client.
第六方面Sixth aspect
如图6所示,本发明还提供了一种移动客户端免密登录的系统的一种实施例的结构示意图。As shown in FIG. 6 , the present invention also provides a schematic structural diagram of an embodiment of a system for password-free login of a mobile client.
移动客户端免密登录的系统其包括:用于执行第一方面所述的移动客户端免密登录的方法的步骤的浏览器301、执行第二方面所述的移动客户端免密登录的方法的步骤的服务器302及执行第三方面所述的移动客户端免密登录的方法的步骤的用户中心303。The system for password-free login of a mobile client includes: a browser 301 for performing the steps of the method for password-free login of a mobile client described in the first aspect, and a method for performing the method for password-free login of a mobile client described in the second aspect The server 302 of the steps and the user center 303 of the steps of the method for password-free login of the mobile client described in the third aspect.
第七方面seventh aspect
如图7所示,本发明还提供了另外一种移浏览器。所述浏览器包括接收模块401、发送模块402、显示模块403。其中,As shown in FIG. 7 , the present invention also provides another mobile browser. The browser includes a receiving module 401 , a sending module 402 and a display module 403 . in,
接收模块401,用于接收当前登录浏览器的用户触发的移动客户端二维码登录的请求;The receiving module 401 is configured to receive a mobile client QR code login request triggered by a user who is currently logged in to the browser;
发送模块402,用于响应于所述移动客户端二维码登录请求,向服务器发送获取该用户登录识别码的获取请求;A sending module 402, configured to send an acquisition request to the server to acquire the user login identification code in response to the mobile client QR code login request;
显示模块403,用于接收并显示所述服务器响应于所述获取请求返回的根据所述登录识别码生成的二维码,以实现用户移动客户端扫描所述二维码进行免密登录。The display module 403 is configured to receive and display the two-dimensional code generated according to the login identification code returned by the server in response to the acquisition request, so as to enable the user's mobile client to scan the two-dimensional code for password-free login.
本发明中,在浏览器已实现登录的软件应用网页端或网页的用户,通过在当前的浏览器的界面中显示根据所述用户的登录识别码生成的二维码,用户在其它移动终端设备上扫描所述二维码即可实现无须输入账号密码的免密登录,方便快捷,减少了操作成本,同时又避免了在不同设备上频繁进行账号密码操作所导致的账号风险,还可以在忘记密码的情形下,无须进行密码找回操作即可实现另一台移动终端设备的登录。In the present invention, the user of the software application web page or web page that has logged in in the browser displays the two-dimensional code generated according to the user's login identification code in the interface of the current browser, and the user can log in to other mobile terminal devices. Scan the QR code above to realize password-free login without entering the account password, which is convenient and fast, reduces operating costs, and avoids the account risk caused by frequent account password operations on different devices In the case of a password, another mobile terminal device can be logged in without performing a password retrieval operation.
为了使得本发明的技术方案更清晰,更便于理解,对本发明的技术方案的各个模块的具体实现的过程和方式加以详细的描述。In order to make the technical solution of the present invention clearer and easier to understand, the specific implementation process and manner of each module of the technical solution of the present invention will be described in detail.
接收模块401,用于接收当前登录浏览器的用户触发的移动客户端二维码登录的请求。The receiving module 401 is configured to receive a mobile client QR code login request triggered by a user who is currently logged in to the browser.
本发明中,用户在一台终端设备上登录浏览器之后,在该终端设备的所述浏览器上实现软件应用网页端或网页的账号密码登录。在此之后,用户想在移动终端设备上同样在通过软件应用的客户端登陆同一账号,其可以在当前登陆所述软件应用网页端或所述网页登陆的页面点击某一控件,请求生成移动客户端二维码,以实现移动客户端二维码登录。在所述二维码生成后,用户可通过移动端扫描所述二维码实现在移动客户端的免密登陆。In the present invention, after the user logs in the browser on a terminal device, the user realizes the login of the software application web page or the account password of the web page on the browser of the terminal device. After that, if the user wants to log in the same account through the client of the software application on the mobile terminal device, he can click a certain control on the web page of the software application or the web page that is currently logged in, and request to generate a mobile client account. terminal QR code to realize mobile client QR code login. After the two-dimensional code is generated, the user can scan the two-dimensional code through the mobile terminal to realize password-free login on the mobile client.
例如,对于一个游戏平台,登录该游戏平台的用户可以利用所述游戏平台的账号登录该游戏平台的所有游戏进行操作。用户在一台电脑上,通过浏览器已经注册并登录了所述游戏平台。在已登录的所述游戏平台的页面中,用户突然不想用电脑,而想用手机对游戏平台客户端中的A游戏进行操作。为了在手机上不用再输入账号跟密码就可以实现登陆A游戏,用户在电脑上的A游戏页面或游戏平台的页面中,点击页面中的生成移动客户端二维码登录的相关控件,即可在所述页面中生成相应的二维码,用户利用手机扫描所述二维码即可实现在游戏平台客户端中实现免密登录。For example, for a game platform, a user who logs in to the game platform can use the account of the game platform to log in to all games on the game platform to operate. The user has registered and logged in the game platform through a browser on a computer. In the logged-in page of the game platform, the user suddenly does not want to use a computer, but wants to use a mobile phone to operate the game A in the game platform client. In order to log in to game A without entering the account number and password on the mobile phone, the user clicks on the relevant control on the page to generate a mobile client QR code to log in on the page of the game A on the computer or the page of the game platform. A corresponding two-dimensional code is generated on the page, and the user scans the two-dimensional code with a mobile phone to realize secret-free login in the game platform client.
具体地,执行所述接收模块之后,还包括:Specifically, after executing the receiving module, it also includes:
获取模块,用于根据所述移动客户端二维码登录请求获取存储于所述浏览器文件目录下的cookie;An acquisition module, configured to acquire the cookie stored in the browser file directory according to the mobile client QR code login request;
发送所述cookie至服务器以请求判断所述用户的合法性。Send the cookie to the server to request to judge the legitimacy of the user.
本发明中,Cookie是用户在使用浏览器访问网站时,所述网站为了辨别用户身份而储存在用户本地终端上的数据。Cookie是由用户中心生成,发送给User-Agent(在本发明中指浏览器),浏览器会将Cookie的key/value保存到某个目录下的文本文件内。用户登录一个网站时,网站往往会请求用户输入用户名和密码,在用户输入账号密码实现登陆时,该网站的用户中心发送了包含登录凭据(用户名加密码的某种加密形式)的Cookie到浏览器上。所述cookie包含了加密的key,用户中心根据key反解出用户基本信息,并可以根据需求获取用户的全部信息。在用户通过所述浏览器再次登陆所述网站时,验证所述cookie可实现在同一设备自动登陆。In the present invention, a cookie is data stored on the user's local terminal in order to identify the user's identity when the user visits the website using a browser. The cookie is generated by the user center and sent to the User-Agent (referring to the browser in the present invention), and the browser will save the key/value of the cookie to a text file in a certain directory. When a user logs in to a website, the website often asks the user to enter the user name and password. When the user enters the account password to log in, the user center of the website sends a cookie containing the login credentials (an encrypted form of the user name and password) to the browser. device. The cookie contains an encrypted key, and the user center deciphers the basic information of the user according to the key, and can obtain all information of the user according to requirements. When the user logs in to the website again through the browser, verifying the cookie can realize automatic login on the same device.
在接收到用户关于某网站的所述移动客户端二维码登录请求,获取该网站存储于浏览器的文件目录下cookie,将所述cookie发送至服务器以根据所述cookie判断用户的登陆信息是否过期、有效、合法等,从而保证了使用cookie的安全性,也保证了本发明中的根据所述cookie生成的用户的登录识别码有效可靠。After receiving the mobile client two-dimensional code login request of the user about a certain website, obtain the cookie stored in the file directory of the browser on the website, and send the cookie to the server to determine whether the user's login information is based on the cookie Expired, valid, legal, etc., thereby ensuring the security of using cookies, and also ensuring that the user's login identification code generated according to the cookie in the present invention is effective and reliable.
在一种具体的实施方式中,只有根据cookie判断了当前登录网站的用户合法后,才会执行相应的生成用于实现移动客户端免密登录的二维码的操作。In a specific implementation manner, the corresponding operation of generating a two-dimensional code for realizing password-free login of the mobile client will be performed only after judging that the user who currently logs in to the website is legal according to the cookie.
发送模块402,用于响应于所述移动客户端二维码登录请求,向服务器发送获取该用户登录识别码的获取请求。The sending module 402 is configured to send an acquisition request for acquiring the user login identification code to the server in response to the mobile client two-dimensional code login request.
在接收到用户在网页上的相关控件、或按钮上所触发的移动客户端二维码登录的请求后,服务器会对所述请求做出回应,以获取用以实现移动客户端二维码登录相关网页的登录识别码。After receiving the QR code login request of the mobile client triggered by the user on the webpage related controls or buttons, the server will respond to the request to obtain the QR code login request for the mobile client. The login ID of the associated webpage.
所述登录识别码对应于具备登录态或已处于登录态的页面链接,其可以使得已在一台终端设备上浏览器登录某网站的所述用户无需输入相关网站的账户和密码即可实现在另一台移动终端设备上登录相应的网站。The login identification code corresponds to a page link that has a login state or is already in a login state, which can enable the user who has logged in to a website with a browser on a terminal device to realize the login without entering the account and password of the relevant website. Log in to the corresponding website on another mobile terminal device.
可以理解的是,所述登录识别码并非于所述浏览器生成,其是基于浏览器向服务器发送相关的获取请求,服务器作为一个数据中转站再将该所述获取请求的内容再向用户中心获取,所述用户中心获取到服务器的请求后根据用户的用户信息所生成并反馈至服务器以使得所述服务器回传给浏览器。It can be understood that the login identification code is not generated by the browser, it is based on the browser sending a related acquisition request to the server, and the server acts as a data transfer station and then sends the content of the acquisition request to the user center Obtaining, the user center obtains the request from the server, generates it according to the user information of the user, and feeds it back to the server so that the server can send it back to the browser.
具体地,所述登录识别码包括用户的身份信息、用户的登录状态及相应的URL。Specifically, the login identification code includes the user's identity information, the user's login status and the corresponding URL.
所述身份信息,亦即用户的基本信息,用于在移动客户端扫描所述二维码时,相应的用户中心对所述用户身份进行验证,以实现借助所述登录识别码无需进行账户名称和密码的输入。The identity information, that is, the basic information of the user, is used for the corresponding user center to verify the identity of the user when the mobile client scans the two-dimensional code, so as to realize that the account name does not need to be registered with the help of the login identification code. and password input.
所述用户的登录状态包括:该用户的账号是在线、处于离开状态、隐身状态、免打扰状态等,其更多的是反应当前的账户所处的状态,是否会产生上线冲突等。The user's login status includes: the user's account is online, away, invisible, do-not-disturb, etc., which more reflect the status of the current account, whether there will be an online conflict, etc.
URL:Uniform Resource Locator,即统一资源定位符,是对可以从互联网上得到的资源的位置和访问方法的一种简洁的表示,是互联网上标准资源的地址。互联网上的每个文件都有一个唯一的URL,它包含的信息指出文件的位置以及浏览器应该怎么处理它。URL: Uniform Resource Locator, that is, Uniform Resource Locator, is a concise representation of the location and access method of resources that can be obtained from the Internet, and is the address of standard resources on the Internet. Every file on the Internet has a unique URL, which contains information indicating where the file is located and what the browser should do with it.
用户扫描二维码,其会跳转一个页面链接,所述页面链接是通过URL实现的。由于所述用户在PC端和移动端登录同一网站时,其对应的URL可能会存在不同,因此所述URL要重新更新。为了实现所述用户移动客户端扫描所述登录识别码生成的二维码后能登录相关的网站,所述登录识别码需要具备所请求登录的网站的移动端对应的URL。When the user scans the QR code, it will jump to a page link, and the page link is realized through the URL. Since the corresponding URL may be different when the user logs in to the same website on the PC terminal and the mobile terminal, the URL needs to be updated again. In order to enable the user to log in to a relevant website after scanning the two-dimensional code generated by the login identification code on the user's mobile client, the login identification code needs to have a URL corresponding to the mobile terminal of the website requested to log in.
具体地,所述发送模块中,包括:Specifically, in the sending module, include:
获取单元,用于响应于所述移动客户端二维码登录请求,获取所述浏览器的referer和cookie;An acquisition unit, configured to acquire the referer and cookie of the browser in response to the mobile client QR code login request;
发送单元,用于根据所述referer和cookie向服务器发送获取该用户登录识别码的获取请求。A sending unit, configured to send an acquisition request for acquiring the user login identification code to the server according to the referer and the cookie.
当浏览器向服务器发送获取该用户登录识别码的获取请求时,所述浏览器带上referer是为了告诉服务器,其是从哪个页面链接过来的,服务器籍此可以获得一些信息用于处理。比如,从一个用户主页上链接到另一个网页,该网页的服务器就能够从HTTPReferer中统计出每天有多少用户点击该用户主页上的链接访问他的网站。When the browser sends an acquisition request to the server to obtain the user login identification code, the browser includes the referer to tell the server which page it is linked from, so that the server can obtain some information for processing. For example, if a user's homepage is linked to another webpage, the server of the webpage can count how many users click on the link on the user's homepage to visit his website every day from the HTTPReferer.
服务器接收所述referer跟cookie后,将所述referer跟cookie发送至相应的用户中心,用户中心根据所述referer和cookie生成所述登录识别码。After receiving the referer and cookie, the server sends the referer and cookie to the corresponding user center, and the user center generates the login identification code according to the referer and cookie.
显示模块403,用于接收并显示所述服务器响应于所述获取请求返回的根据所述登录识别码生成的二维码,以实现用户移动客户端扫描所述二维码进行免密登录。The display module 403 is configured to receive and display the two-dimensional code generated according to the login identification code returned by the server in response to the acquisition request, so as to enable the user's mobile client to scan the two-dimensional code for password-free login.
可以理解的是,所述二维码的生成是在用户中心完成的,其并不是在作为数据中转站的服务器完成的。因此所述浏览器所接收到的已生成的二维码是用户中心生成后传输给服务器,服务器再反馈至所述浏览器的。所述浏览器接收到所述二维码后,其会显示所接收到的包括所述二维码在内的接收成功信息。所述二维码可以弹窗或页面中一个区域进行显示,用户通过扫描所述二维码可实现在移动客户端的免密登录。It can be understood that the generation of the two-dimensional code is completed at the user center, but not at the server serving as a data transfer station. Therefore, the generated two-dimensional code received by the browser is generated by the user center and transmitted to the server, and then the server feeds back to the browser. After the browser receives the two-dimensional code, it will display the received success information including the two-dimensional code. The two-dimensional code can be displayed in a pop-up window or an area on the page, and the user can realize password-free login on the mobile client by scanning the two-dimensional code.
例如,用户在使用PC端的浏览器上成功登录网站A的时候,其想在另一台移动终端设备上免密登录网站A。在网站A所在的页面或浏览器的其他页面,触发了移动客户端二维码登录的请求。浏览器接收到所述请求,向服务器请求二维码,服务器再将包含该请求的内容向网站A的用户中心请求二维码,网站A的用户中心生成二维码后将所述二维码传输给该服务器,该服务器再将所述二维码传输给浏览器。浏览器接收并显示所述二维码。For example, when a user successfully logs in to website A using a PC browser, he wants to log in to website A without password on another mobile terminal device. On the page where website A is located or other pages of the browser, a QR code login request on the mobile client is triggered. The browser receives the request and requests the QR code from the server, and the server then requests the QR code from the user center of website A for the content containing the request, and the user center of website A generates the QR code and sends the QR code transmitted to the server, and the server then transmits the two-dimensional code to the browser. The browser receives and displays the two-dimensional code.
进一步地,所述显示模块中,包括:Further, the display module includes:
接收单元,用于接收服务器响应于所述获取请求返回的根据所述referer和cookie生成登录识别码后,并进一步根据所述登录识别码生成的二维码;The receiving unit is used to receive the QR code generated by the login identification code according to the referer and the cookie returned by the server in response to the acquisition request, and further generated according to the login identification code;
显示单元,用于在当前的浏览页面显示所述二维码。The display unit is used to display the two-dimensional code on the current browsing page.
在PC端的浏览器请求生成登录识别码的过程中,服务器向用户中心提交包含浏览器的请求内容的请求,用户中心接收服务器所传输过来的浏览器所获取的referer跟cookie以根据所述referer跟cookie生成登录识别码。When the browser on the PC side requests to generate a login identification code, the server submits a request containing the content of the browser’s request to the user center, and the user center receives the referer and cookie obtained by the browser transmitted from the server to use the The cookie generates a login identifier.
其中,用户中心接收到referer之后,其获取所述用户账号的对应的页面链接跟该页面链接的来源,从而根据所述页面链接获取该页面链接所对应的移动终端上的页面链接。Wherein, after the user center receives the referer, it obtains the corresponding page link of the user account and the source of the page link, so as to obtain the page link on the mobile terminal corresponding to the page link according to the page link.
所述用户中心根据所述referer实现URL的重定向,根据所述cookie获取用户账户登录时的相关数据,从而可以根据所述referer和cookie按照预设的规则生成登录识别码,所述登录识别码中包含用于实现用户账户登录的唯一的key。所述用户中心再根据所述登录识别码生成二维码回传给服务器。The user center implements URL redirection according to the referer, and obtains relevant data when logging in to the user account according to the cookie, so that a login identification code can be generated according to preset rules according to the referer and cookie, and the login identification code Contains the unique key used to log in to the user account. The user center then generates a two-dimensional code according to the login identification code and sends it back to the server.
具体地,所述二维码在预设的时间内有效。Specifically, the two-dimensional code is valid within a preset time.
所述二维码生成后,具有时效性。只有在生成后的预设的时间内,用户扫描所述二维码方能登陆,超出了预设的时间后,用户扫描所述二维码,不能实现在移动客户端的登录。其有利于保护用户的账户密码安全,避免由于长时间暴露所述二维码而导致的账号风险。After the two-dimensional code is generated, it is time-sensitive. Only within the preset time after generation, the user can scan the two-dimensional code to log in, and after the preset time, the user cannot log in to the mobile client by scanning the two-dimensional code. It is beneficial to protect the security of the user's account password and avoid the account risk caused by exposing the two-dimensional code for a long time.
例如,生成所述二维码后,二维码在60s内有效。用户在二维码生成后的60s内扫描所述二维码,可实现移动客户端的免密登录。当用户在二维码生成的60s以后再去扫描所述二维码,无法实现移动客户端的登陆。For example, after the two-dimensional code is generated, the two-dimensional code is valid within 60s. The user can scan the two-dimensional code within 60 seconds after the two-dimensional code is generated to realize the password-free login of the mobile client. When the user scans the two-dimensional code 60 seconds after the two-dimensional code is generated, the login of the mobile client cannot be realized.
第八方面Eighth aspect
如图8所示,本发明还提供了一种移动终端的一种实施例的结构示意图。As shown in FIG. 8 , the present invention also provides a schematic structural diagram of an embodiment of a mobile terminal.
所述移动终端包括:The mobile terminal includes:
一个或多个处理器;one or more processors;
存储器;memory;
一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序被配置为当其被所述处理器执行时第一方面的移动客户端免密登录的方法的步骤。one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs are configured to be The steps of the method for password-free login of a mobile client in the first aspect are executed by the processor.
其中,存储器10可用于存储软件程序以及模块,处理器20通过运行存储在存储器10的软件程序以及模块,从而执行所述识别系统的各种功能应用以及数据处理。存储器10可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据所述识别系统的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器10可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Wherein, the memory 10 can be used to store software programs and modules, and the processor 20 executes various functional applications and data processing of the identification system by running the software programs and modules stored in the memory 10 . The memory 10 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application program required by at least one function, etc.; the data storage area can store data created according to the use of the identification system ( Such as audio data, phone book, etc.) and so on. In addition, the memory 10 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
所述处理器20是定位装置的控制中心,利用各种接口和线路连接整个所述服务器的各个部分,通过运行或执行存储在存储器10内的软件程序和/或模块,以及调用存储在存储器10内的数据,执行所述定位装置的各种功能和处理数据,从而对所述定位装置进行整体监控。可选的,处理器20可包括一个或多个处理单元;优选的,处理器20可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器20中。The processor 20 is the control center of the positioning device, and uses various interfaces and lines to connect various parts of the entire server, by running or executing software programs and/or modules stored in the memory 10, and calling the software stored in the memory 10. execute various functions of the positioning device and process data, so as to monitor the positioning device as a whole. Optionally, the processor 20 may include one or more processing units; preferably, the processor 20 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the modem processor may not be integrated into the processor 20 .
以上对本发明所提供的技术方案进行了详细介绍,对于本领域的一般技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The technical solution provided by the present invention has been introduced in detail above. For those of ordinary skill in the art, according to the ideas of the embodiments of the present invention, there will be changes in the specific implementation and application range. In summary, this The content of the description should not be construed as limiting the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711461185.6ACN108200040A (en) | 2017-12-28 | 2017-12-28 | Mobile client exempts from method, system, browser and the mobile terminal of close login |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711461185.6ACN108200040A (en) | 2017-12-28 | 2017-12-28 | Mobile client exempts from method, system, browser and the mobile terminal of close login |
| Publication Number | Publication Date |
|---|---|
| CN108200040Atrue CN108200040A (en) | 2018-06-22 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201711461185.6APendingCN108200040A (en) | 2017-12-28 | 2017-12-28 | Mobile client exempts from method, system, browser and the mobile terminal of close login |
| Country | Link |
|---|---|
| CN (1) | CN108200040A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109413096A (en)* | 2018-11-30 | 2019-03-01 | 北京海泰方圆科技股份有限公司 | A kind of login method and device more applied |
| CN109587116A (en)* | 2018-11-06 | 2019-04-05 | 交通银行股份有限公司 | Guard method, client and the browser of browser input information |
| CN111193708A (en)* | 2019-11-29 | 2020-05-22 | 云深互联(北京)科技有限公司 | Code scanning login method and device based on enterprise browser |
| CN111401490A (en)* | 2020-02-17 | 2020-07-10 | 上海博泰悦臻电子设备制造有限公司 | Two-dimensional code obtaining method and related device |
| CN111651746A (en)* | 2020-06-01 | 2020-09-11 | 支付宝(杭州)信息技术有限公司 | Login data processing method, device, equipment and system |
| CN111723889A (en)* | 2020-07-31 | 2020-09-29 | 腾讯科技(深圳)有限公司 | Code scanning login method, graphic code display method, device, equipment and storage medium |
| CN112118234A (en)* | 2020-08-27 | 2020-12-22 | 紫光云(南京)数字技术有限公司 | Method for controlling multi-terminal authentication based on dynamic two-dimensional code |
| CN112804317A (en)* | 2021-01-04 | 2021-05-14 | 北京艺源酷科技有限公司 | Method and device for uploading pictures of mobile terminal |
| CN112822282A (en)* | 2021-01-21 | 2021-05-18 | 湖北洪珞易联科技有限公司 | Method and process for uploading pictures based on mobile terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103237034A (en)* | 2013-04-28 | 2013-08-07 | 北京小米科技有限责任公司 | Login method and device |
| CN103795731A (en)* | 2014-02-26 | 2014-05-14 | 北京京东尚科信息技术有限公司 | User account login method |
| CN104268611A (en)* | 2014-09-18 | 2015-01-07 | 小米科技有限责任公司 | Webpage synchronizing method and device |
| CN104519197A (en)* | 2013-09-29 | 2015-04-15 | 腾讯科技(深圳)有限公司 | User login method, user login device and terminal devices |
| CN105119931A (en)* | 2015-09-11 | 2015-12-02 | 深圳市亚略特生物识别科技有限公司 | Application logging method and application logging system |
| CN106390458A (en)* | 2016-09-27 | 2017-02-15 | 北京奇虎科技有限公司 | Web game hanging-on method, server, mobile terminal and browser client |
| CN106921629A (en)* | 2015-12-25 | 2017-07-04 | 北京奇虎科技有限公司 | Application program login method and device |
| US20170237726A1 (en)* | 2016-02-14 | 2017-08-17 | Ynjiun Paul Wang | Mobile Secure Login System and Method |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103237034A (en)* | 2013-04-28 | 2013-08-07 | 北京小米科技有限责任公司 | Login method and device |
| CN104519197A (en)* | 2013-09-29 | 2015-04-15 | 腾讯科技(深圳)有限公司 | User login method, user login device and terminal devices |
| CN103795731A (en)* | 2014-02-26 | 2014-05-14 | 北京京东尚科信息技术有限公司 | User account login method |
| CN104268611A (en)* | 2014-09-18 | 2015-01-07 | 小米科技有限责任公司 | Webpage synchronizing method and device |
| CN105119931A (en)* | 2015-09-11 | 2015-12-02 | 深圳市亚略特生物识别科技有限公司 | Application logging method and application logging system |
| CN106921629A (en)* | 2015-12-25 | 2017-07-04 | 北京奇虎科技有限公司 | Application program login method and device |
| US20170237726A1 (en)* | 2016-02-14 | 2017-08-17 | Ynjiun Paul Wang | Mobile Secure Login System and Method |
| CN106390458A (en)* | 2016-09-27 | 2017-02-15 | 北京奇虎科技有限公司 | Web game hanging-on method, server, mobile terminal and browser client |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109587116A (en)* | 2018-11-06 | 2019-04-05 | 交通银行股份有限公司 | Guard method, client and the browser of browser input information |
| CN109413096A (en)* | 2018-11-30 | 2019-03-01 | 北京海泰方圆科技股份有限公司 | A kind of login method and device more applied |
| CN109413096B (en)* | 2018-11-30 | 2019-08-09 | 北京海泰方圆科技股份有限公司 | A multi-application login method and device |
| CN111193708A (en)* | 2019-11-29 | 2020-05-22 | 云深互联(北京)科技有限公司 | Code scanning login method and device based on enterprise browser |
| CN111401490A (en)* | 2020-02-17 | 2020-07-10 | 上海博泰悦臻电子设备制造有限公司 | Two-dimensional code obtaining method and related device |
| CN111651746A (en)* | 2020-06-01 | 2020-09-11 | 支付宝(杭州)信息技术有限公司 | Login data processing method, device, equipment and system |
| CN111723889A (en)* | 2020-07-31 | 2020-09-29 | 腾讯科技(深圳)有限公司 | Code scanning login method, graphic code display method, device, equipment and storage medium |
| CN112118234A (en)* | 2020-08-27 | 2020-12-22 | 紫光云(南京)数字技术有限公司 | Method for controlling multi-terminal authentication based on dynamic two-dimensional code |
| CN112804317A (en)* | 2021-01-04 | 2021-05-14 | 北京艺源酷科技有限公司 | Method and device for uploading pictures of mobile terminal |
| CN112822282A (en)* | 2021-01-21 | 2021-05-18 | 湖北洪珞易联科技有限公司 | Method and process for uploading pictures based on mobile terminal |
| Publication | Publication Date | Title |
|---|---|---|
| US20230370464A1 (en) | Systems and methods for controlling sign-on to web applications | |
| CN108200040A (en) | Mobile client exempts from method, system, browser and the mobile terminal of close login | |
| US11665146B2 (en) | Migrating authenticated content towards content consumer | |
| EP3467692B1 (en) | Message permission management method and device, and storage medium | |
| US8528066B2 (en) | Methods and apparatus for enabling context sharing | |
| US9641513B2 (en) | Methods and systems for controlling mobile terminal access to a third-party server | |
| CN104580074B (en) | The login method of client application and its corresponding server | |
| CN106716918B (en) | User authentication method and system | |
| CN103051630B (en) | Method, the Apparatus and system of third-party application mandate is realized based on open platform | |
| US7010582B1 (en) | Systems and methods providing interactions between multiple servers and an end use device | |
| EP1766851B1 (en) | System and method for authentificting a user to a service provider | |
| CN104735066B (en) | A kind of single-point logging method of object web page application, device and system | |
| US20130246504A1 (en) | Method for subscribing to notification, apparatus and system | |
| CN104158818B (en) | A kind of single-point logging method and system | |
| WO2016127797A1 (en) | User information acquisition method, apparatus, and server | |
| US20100077467A1 (en) | Authentication service for seamless application operation | |
| JP2005317022A (en) | Account creation via mobile device | |
| CN106716960A (en) | User authentication method and system | |
| WO2014074964A1 (en) | Providing and procuring worksheet functions through an online marketplace | |
| CN103634301A (en) | Client side and method for accessing private data stored in server by user | |
| CN103618717A (en) | Multi-account client information dynamic authentication method, device and system | |
| JPWO2009107219A1 (en) | Authentication apparatus, authentication method, and authentication program implementing the method | |
| JP2022546073A (en) | Connecting web publisher inventory to programmatic exchanges without third party cookies | |
| JP2019075089A (en) | Client server system | |
| CN110795720A (en) | Information processing method, system, electronic device, and computer-readable medium |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20180622 |