WO2019052170A1 - Method, apparatus and device for implementing user login avoidance, and computer storage medium - Google Patents
Method, apparatus and device for implementing user login avoidance, and computer storage medium Download PDFInfo
- Publication number
- WO2019052170A1 WO2019052170A1 PCT/CN2018/083817 CN2018083817W WO2019052170A1 WO 2019052170 A1 WO2019052170 A1 WO 2019052170A1 CN 2018083817 W CN2018083817 W CN 2018083817W WO 2019052170 A1 WO2019052170 A1 WO 2019052170A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- login
- url address
- user
- cookie
- free
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0815—Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
Definitions
- the present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a computer storage medium for implementing user login-free.
- the embodiment of the present invention provides a method, an apparatus, a device, and a computer storage medium for implementing user login-free, which can implement user login, avoid repeated program development, and improve user experience.
- the embodiment of the present application provides a method for implementing user login-free, the method includes: acquiring account information input by a user when logging in to an application; performing a login operation according to a login prompt of the application; and obtaining a login operation after performing the login operation
- the URL address is stored in the cookie; if the external plug-in needs to perform the user login, the URL address is obtained from the cookie and the URL address is opened to implement the user-free login.
- the embodiment of the present application further provides an apparatus for implementing user login-free, the apparatus comprising: a first obtaining unit, configured to acquire account information input when a user logs in to an application; and a first execution unit, configured to: Performing a login operation according to the login prompt of the application; a second obtaining unit, configured to obtain a URL address after performing the login operation; a storage unit, configured to store the URL address into a cookie; and opening a unit for externally
- the plug-in needs to perform a user login, obtain the URL address from the cookie, and open the URL address to implement user-free login.
- the embodiment of the present application further provides a device for implementing user login-free, including: a memory for storing a program for implementing user-free login; and a processor for running the user-free stored in the memory.
- the logged-in program performs the following operations: obtaining account information input when the user logs in to the application; performing a login operation according to the login prompt of the application; obtaining a URL address after performing the login operation; storing the URL address in the cookie If the external plug-in needs to perform user login, obtain the URL address from the cookie and open the URL address to implement user-free login.
- an embodiment of the present application further provides a computer storage medium, where the computer storage medium stores one or more computer programs, and the one or more computer programs can be executed by one or more processors to implement The following steps: obtaining account information input when the user logs in to the application; performing a login operation according to the login prompt of the application; obtaining a URL address after performing the login operation; storing the URL address in a cookie; if an external plug-in needs to be performed The user logs in, obtains the URL address from the cookie, and opens the URL address to implement user-free login.
- the embodiment of the present application can implement user-free login, can avoid repeated program development, and improve the user experience.
- FIG. 1 is a schematic flowchart of a method for implementing user login-free according to an embodiment of the present application
- FIG. 2 is another schematic flowchart of a method for implementing user login-free according to an embodiment of the present application
- FIG. 3 is another schematic flowchart of a method for implementing user login-free according to an embodiment of the present disclosure
- FIG. 4 is a schematic flowchart of a method for implementing user login-free according to another embodiment of the present application.
- FIG. 5 is a schematic flowchart of a method for implementing user login-free according to another embodiment of the present application.
- FIG. 6 is a schematic diagram of a method for implementing a user-free login method according to an embodiment of the present application.
- FIG. 7 is a schematic block diagram of an apparatus for implementing user login-free according to an embodiment of the present application.
- FIG. 8 is another schematic block diagram of an apparatus for implementing user login-free according to an embodiment of the present application.
- FIG. 9 is another schematic block diagram of an apparatus for implementing user login-free according to an embodiment of the present disclosure.
- FIG. 10 is another schematic block diagram of an apparatus for implementing user login-free according to an embodiment of the present application.
- FIG. 11 is another schematic block diagram of an apparatus for implementing user login-free according to an embodiment of the present disclosure.
- FIG. 12 is a schematic structural diagram of a device for implementing a user-free login according to an embodiment of the present application.
- FIG. 1 is a schematic flowchart of a method for implementing user login-free according to an embodiment of the present application. The method includes steps S101 to S105.
- the account information refers to personal information used by the user to log in to an application.
- the account information that needs to be input includes the user's account name, account password, and the like.
- the login operation is performed according to the login prompt of the application 1.
- the login operation performed by the user is the login logic preset by the application, and the preset is preset.
- the login logic specifies the operation steps that should be performed after the user inputs the account information, and gives the corresponding login prompt for the relevant operation steps, or displays the corresponding login interface.
- the default login logic can be developed and defined by the application developer. The specific login logic is not limited herein.
- the URL address refers to the network address of the page. If the default login logic is successfully executed, the URL address after the login operation is performed, for example, after the user successfully logs in to the application 1, The login page will complete the update and jump to the page where the user has logged in. Since each page (including the login page and the non-login page) has its own different page address, ie URL address, it is in the page where the user has logged in. The URL address is also present, and the URL address is obtained, such as http://www.yidenglu.com/.
- a cookie is provided for storing the URL address
- the cookie refers to a small piece of text information, which is transmitted between the web server and the browser along with the user request and the page, for example, when the user requests to access the URL.
- the address is a page on http://www.yidenglu.com/
- the application sends more than one page to the user. If the page is a logged in page, the cookie stores the page in the logged in state. URL address.
- the cookie is stored in a folder on the user's hard disk.
- the browser will Look up the cookie associated with the URL on the local hard drive. If the cookie exists, the browser sends it along with the page request to the site, and the application can open the requested page.
- the external plug-in refers to an application plug-in written by a hypertext markup language HTML5 or other programming language, and the application plug-in exists by being attached to an application, and the external plug-in may be required to perform a user.
- the plugin that is logged in can also be a plugin that does not require user login. If the external plug-in is a plug-in that requires user login, the stored application login page can be obtained from the cookie and the page can be opened to implement the user-free login.
- the step of acquiring the URL address from the cookie and opening the URL address includes steps S201 to S202.
- steps S301 to S303 are included before the opening of the URL address.
- the terminal before receiving the request to open the URL address, the terminal is triggered to display a verification interface, where the user is required to input a verification identifier to verify whether the external plug-in is related to the URL address. match.
- the terminal obtains the verification identifier input in the verification interface, and verifies whether the verification identifier input by the user matches the preset identifier by using the preset identifier.
- the verification identifier input by the user may be a character identifier, which may be a fingerprint identifier, or may be The voice identifier is obtained when the verification identifier input by the user is a character identifier, and the character information input by the user on the verification interface is acquired; when the verification identifier input by the user is a fingerprint identifier, the fingerprint information input by the user on the verification interface is acquired; when the user inputs When the verification identifier is a voice identifier, the voice information input by the user on the verification interface is obtained.
- the embodiment of the present application obtains the account information input when the user logs in to the application; performs a login operation according to the login prompt of the application; obtains the URL address after the login operation is performed; and stores the URL address into the cookie. If the external plug-in needs to perform user login, the URL address is obtained from the cookie and the URL address is opened to implement user-free login, which can avoid repeated program development and improve the user experience.
- FIG. 4 is a schematic flowchart of a method for implementing user-free login according to an embodiment of the present application. The method includes steps S401 to S407.
- the user since the personal account information of the user is stored in the URL address, the user may use personal privacy information such as an account password in the application, and if not encrypted, directly stored in the cookie. It can be easily stolen or viewed directly by other applications from cookies, resulting in the disclosure of personal privacy information that users need to protect. Therefore, in this embodiment, the encryption process is performed according to a preset encryption mechanism, so that various URL addresses in the application are first encrypted and then stored on the cookie, even if the URL address in the cookie is directly called in other applications. , all need to be decrypted before they can be viewed or opened.
- a virtual block device (Hard Disk Image) is first established, and the created virtual block device is used as a device mapper mechanism.
- the logical volume required for encryption is loaded to ensure continuous availability, consistency, and accuracy of the URL address.
- the URL address in the application is placed under the loaded logical volume, and the URL address in the application is encrypted by using a preset encryption algorithm.
- the preset encryption algorithm may be advanced encryption.
- the Advanced Encryption Standard (AES) algorithm does not limit the default encryption algorithm to other encryption algorithms.
- the encryption key is the set encryption password corresponding to the application, so that the URL address in the application is encrypted and stored in the cookie, and then passed.
- the computer or other terminal checks the encrypted URL address stored under the cookie, it needs to decrypt it according to the encrypted password to view the valid content. Otherwise, it will be displayed as garbled, which improves various applications generated by the application. The security of the data file.
- a cookie is provided for storing the encrypted URL address, and the cookie refers to a small piece of text information, which is transmitted between the web server and the browser along with the user request and the page, for example, in the user.
- the application sends more than one page to the user. If the page is a logged in page, the cookie is stored in the logged in state. The URL of the page.
- the cookie is stored in a folder on the user's hard disk.
- the browser will Look up the cookie associated with the URL on the local hard drive. If the cookie exists, the browser sends it along with the page request to the site, and the application can open the requested page.
- the encryption process according to the preset encryption mechanism in this embodiment prevents various URL addresses generated in the application from being easily stolen, and effectively ensures the user's personal privacy information included in the data generated by the application running. Security.
- FIG. 5 is a schematic flowchart of a method for implementing user-free login according to an embodiment of the present application.
- the method includes steps S501 to S507.
- the user registers a user account in the corresponding background server by using the user's mobile phone in advance.
- the user account includes at least a login account and a login password for logging in to the server.
- the server logs the login.
- the account number and the login password are stored in the server local storage.
- the user needs to input the login account and the login password on the terminal; that is, the server needs to obtain the login account and login password of the user, and verify the login account and login password of the user, and the user needs to log in to the server.
- the preset button may be clicked on the display interface of the terminal to submit a request for obtaining the login interface to the terminal, and the terminal receives the acquisition request.
- the terminal may display a login interface as shown in FIG. 6 on its display interface, and the login interface includes an account input box, a password input box, a “confirm” button, and a “cancel” button.
- the embodiment of the present application further provides an apparatus for implementing user-free login, and the apparatus 100 includes: a first acquiring unit 101, a first executing unit 102, and a first The second obtaining unit 103, the storage unit 104, and the opening unit 105.
- the first obtaining unit 101 is configured to acquire account information input when the user logs in to the application.
- the first execution unit 102 is configured to perform a login operation according to the login prompt of the application.
- the second obtaining unit 103 is configured to obtain a URL address after the login operation is performed.
- the storage unit 104 is configured to store the URL address into a cookie.
- the opening unit 105 is configured to: if the external plug-in needs to perform user login, obtain the URL address from the cookie and open the URL address to implement user-free login.
- the opening unit 105 includes: a third obtaining unit 1051, configured to obtain the stored URL address from the cookie.
- the sub-unit 1052 is opened for opening the historical login page according to the URL address and by using a browser to implement user-free login.
- the apparatus further includes: a verification unit 106, configured to verify whether a URL address obtained from the cookie matches the external plug-in.
- the second execution unit 107 is configured to, if not, reject the URL address to be opened by the browser.
- the third executing unit 108 is configured to, if yes, perform the step of opening the URL address.
- the embodiment of the present application further provides an apparatus for implementing user-free login, and the apparatus 200 includes: a first acquiring unit 201, a first executing unit 202, and a first The second obtaining unit 203, the encrypting unit 204, the transmitting unit 205, and the opening unit 206.
- the first obtaining unit 201 is configured to acquire account information input when the user logs in to the application.
- the first execution unit 202 is configured to perform a login operation according to the login prompt of the application.
- the second obtaining unit 203 is configured to obtain a URL address after performing the login operation.
- the encryption unit 204 is configured to encrypt the acquired URL address based on a preset encryption mechanism.
- the sending unit 205 is configured to send the encrypted URL address to the cookie.
- the opening unit 206 is configured to: if the external plug-in needs to perform user login, obtain the URL address from the cookie and open the URL address to implement user-free login.
- the embodiment of the present application further provides a device for implementing user-free login, and the device 300 includes: a determining unit 301, a display unit 302, and a first acquiring unit 303.
- the determining unit 301 is configured to determine whether a request instruction for acquiring user account information is received.
- the display unit 302 is configured to display a login interface on the current display interface if the request command is received, where the login interface includes at least an account input box and a password input box.
- the first obtaining unit 303 is configured to acquire account information input when the user logs in to the application.
- the first execution unit 304 is configured to perform a login operation according to the login prompt of the application.
- the second obtaining unit 305 is configured to obtain a URL address after the login operation is performed.
- the storage unit 306 is configured to store the URL address into a cookie.
- the opening unit 307 is configured to: if the external plug-in needs to perform user login, obtain the URL address from the cookie and open the URL address to implement user-free login.
- the above described means for implementing user login free can be implemented in the form of a computer program that can be run on a device as shown in FIG.
- FIG. 12 is a schematic structural diagram of a computer device according to the present application.
- the device may be a terminal or a server, wherein the terminal may be a communication-enabled electronic device such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device.
- the server can be a standalone server or a server cluster consisting of multiple servers.
- the computer device 500 includes a processor 502, a non-volatile storage medium 503, a memory 504, and a network interface 505 that are coupled by a system bus 501.
- the non-volatile storage medium 503 of the computer device 500 can store an operating system 5031 and a computer program 5032.
- the processor 502 can be caused to perform a method for implementing user-free login.
- the processor 502 of the computer device 500 is used to provide computing and control capabilities to support the operation of the entire computer device 500.
- the internal memory 504 can store a computer program that, when executed by the processor, can cause the processor 502 to perform a method of implementing user-free login.
- the network interface 505 of the computer device 500 is used to perform network communications, such as sending assigned tasks and the like. It will be understood by those skilled in the art that the structure shown in FIG. 12 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device to which the solution of the present application is applied.
- the specific computer device may It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements.
- the processor 502 performs the following operations: acquiring account information input when the user logs in to the application; performing a login operation according to the login prompt of the application; obtaining a URL address after performing the login operation; storing the URL address to In the cookie; if the external plug-in needs to perform user login, the URL address is obtained from the cookie and the URL address is opened to implement the user-free login.
- the obtaining the URL address from the cookie and opening the URL address comprises: obtaining the stored URL address from the cookie; opening a history according to the URL address and through a browser Log in to the page to enable users to log in.
- the method further comprises: encrypting the acquired URL address based on a preset encryption mechanism.
- the processor 505 also performs an operation of verifying whether the URL address obtained from the cookie matches the external plug-in; if not, rejecting the URL address to be opened by the browser; if so, The step of opening the URL address is performed.
- the processor 505 further performs: determining whether a request instruction for acquiring user account information is received; and if the request instruction is received, displaying a login interface on the current display interface, the login interface At least the account input box and password input box are included.
- the embodiment of the device for implementing the user-free login shown in FIG. 12 does not constitute a limitation on the specific configuration of the device that implements the user-free login.
- the device that implements the user-free login may be Includes more or fewer components than shown, or combines some components, or different component arrangements.
- the device implementing user login-free may include only the memory and the processor. In such an embodiment, the structure and function of the memory and the processor are consistent with the embodiment shown in FIG. Narration.
- the application provides a computer storage medium storing one or more computer programs, the one or more computer programs being executable by one or more processors to implement the above method for implementing user login free .
- the foregoing storage medium of the present application includes: a magnetic disk, an optical disk, a read-only memory (ROM), and the like, which can store various program codes.
- the units in all the embodiments of the present application may be implemented by a general-purpose integrated circuit, such as a CPU (Central Processing Unit), or by an ASIC (Application Specific Integrated Circuit).
- a general-purpose integrated circuit such as a CPU (Central Processing Unit), or by an ASIC (Application Specific Integrated Circuit).
- the steps in the method for implementing the user-free login in the embodiment of the present application may be sequentially adjusted, merged, and deleted according to actual needs.
- the units in the apparatus for implementing user-free login in the embodiment of the present application may be combined, divided, and deleted according to actual needs.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Disclosed are a method, apparatus and device for implementing user login avoidance, and a computer storage medium. The method comprises: acquiring account information input when a user logs into an application program; executing a login operation according to a login prompt of the application program; acquiring an URL address after executing the login operation; storing the URL address in a Cookie; and if an external plugin needs to carry out user login, acquiring the URL address from the Cookie, and opening the URL address so as to implement user login avoidance. According to the present application, repeated program development can be avoided, and the usage experience of the user is improved.
Description
本申请要求于2017年9月13日提交中国专利局、申请号为CN 201710822494.5、申请名称为“实现用户免登录的方法、装置、设备、计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on September 13, 2017, the Chinese Patent Office, the application number is CN 201710822494.5, and the application is entitled "Method, device, device, computer readable storage medium for realizing user-free login". The entire contents of this application are incorporated herein by reference.
本申请涉及计算机技术领域,尤其涉及一种实现用户免登录的方法、装置、设备、计算机存储介质。The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a computer storage medium for implementing user login-free.
随着智能客户端APP的用户剧增,以及业务场景多渠道的需求日益增多,在APP中由超文本标记语言HTML5开发的外部插件随插随用,且无缝接入的需求日益迫切;但是,对于用户登录方面却面临着需要多次登录的复杂操作,严重影响了用户的使用体验,对于开发者方面则需要进行重复的登录程序的开发,严重影响开发效率以及程序优化率。With the proliferation of users of smart client APPs and the increasing demand for multi-channels in business scenarios, external plug-ins developed in the APP by the hypertext markup language HTML5 are plug-and-play, and the need for seamless access is increasingly urgent; For the user login, it faces complicated operations that require multiple logins, which seriously affects the user experience. For developers, it is necessary to develop a repeated login program, which seriously affects development efficiency and program optimization rate.
发明内容Summary of the invention
本申请实施例提供一种实现用户免登录的方法、装置、设备、计算机存储介质,可以实现用户登录,避免了重复的程序开发,并改善了用户的使用体验。The embodiment of the present invention provides a method, an apparatus, a device, and a computer storage medium for implementing user login-free, which can implement user login, avoid repeated program development, and improve user experience.
一方面,本申请实施例提供了一种实现用户免登录的方法,该方法包括:获取用户登录应用程序时输入的账户信息;根据应用程序的登录提示执行登录操作;获取执行所述登录操作后的URL地址;将所述URL地址存储至Cookie中;若外部插件需要进行用户登录,从所述Cookie中获取所述URL地址并打开所述URL地址以实现用户免登录。In one aspect, the embodiment of the present application provides a method for implementing user login-free, the method includes: acquiring account information input by a user when logging in to an application; performing a login operation according to a login prompt of the application; and obtaining a login operation after performing the login operation The URL address is stored in the cookie; if the external plug-in needs to perform the user login, the URL address is obtained from the cookie and the URL address is opened to implement the user-free login.
另一方面,本申请实施例还提供了一种实现用户免登录的装置,所述装置包括:第一获取单元,用于获取用户登录应用程序时输入的账户信息;第一执行单元,用于根据应用程序的登录提示执行登录操作;第二获取单元,用于获 取执行所述登录操作后的URL地址;存储单元,用于将所述URL地址存储至Cookie中;打开单元,用于若外部插件需要进行用户登录,从所述Cookie中获取所述URL地址并打开所述URL地址以实现用户免登录。On the other hand, the embodiment of the present application further provides an apparatus for implementing user login-free, the apparatus comprising: a first obtaining unit, configured to acquire account information input when a user logs in to an application; and a first execution unit, configured to: Performing a login operation according to the login prompt of the application; a second obtaining unit, configured to obtain a URL address after performing the login operation; a storage unit, configured to store the URL address into a cookie; and opening a unit for externally The plug-in needs to perform a user login, obtain the URL address from the cookie, and open the URL address to implement user-free login.
又一方面,本申请实施例还提供了一种实现用户免登录的设备,包括:存储器,用于存储实现用户免登录的程序;以及处理器,用于运行所述存储器中存储的实现用户免登录的程序,以执行以下操作:获取用户登录应用程序时输入的账户信息;根据应用程序的登录提示执行登录操作;获取执行所述登录操作后的URL地址;将所述URL地址存储至Cookie中;若外部插件需要进行用户登录,从所述Cookie中获取所述URL地址并打开所述URL地址以实现用户免登录。In another aspect, the embodiment of the present application further provides a device for implementing user login-free, including: a memory for storing a program for implementing user-free login; and a processor for running the user-free stored in the memory. The logged-in program performs the following operations: obtaining account information input when the user logs in to the application; performing a login operation according to the login prompt of the application; obtaining a URL address after performing the login operation; storing the URL address in the cookie If the external plug-in needs to perform user login, obtain the URL address from the cookie and open the URL address to implement user-free login.
再一方面,本申请实施例还提供了一种计算机存储介质,计算机存储介质存储有一个或者一个以上计算机程序,所述一个或者一个以上计算机程序可被一个或者一个以上的处理器执行,以实现以下步骤:获取用户登录应用程序时输入的账户信息;根据应用程序的登录提示执行登录操作;获取执行所述登录操作后的URL地址;将所述URL地址存储至Cookie中;若外部插件需要进行用户登录,从所述Cookie中获取所述URL地址并打开所述URL地址以实现用户免登录。In still another aspect, an embodiment of the present application further provides a computer storage medium, where the computer storage medium stores one or more computer programs, and the one or more computer programs can be executed by one or more processors to implement The following steps: obtaining account information input when the user logs in to the application; performing a login operation according to the login prompt of the application; obtaining a URL address after performing the login operation; storing the URL address in a cookie; if an external plug-in needs to be performed The user logs in, obtains the URL address from the cookie, and opens the URL address to implement user-free login.
本申请实施例可以实现用户免登录,可以避免重复的程序开发,并改善了用户的使用体验。The embodiment of the present application can implement user-free login, can avoid repeated program development, and improve the user experience.
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are some embodiments of the present application. For the ordinary technicians, other drawings can be obtained based on these drawings without paying creative labor.
图1是本申请实施例提供的一种实现用户免登录的方法的示意流程图;FIG. 1 is a schematic flowchart of a method for implementing user login-free according to an embodiment of the present application;
图2是本申请实施例提供的一种实现用户免登录的方法的另一示意流程图;2 is another schematic flowchart of a method for implementing user login-free according to an embodiment of the present application;
图3是本申请实施例提供的一种实现用户免登录的方法的另一示意流程图;FIG. 3 is another schematic flowchart of a method for implementing user login-free according to an embodiment of the present disclosure;
图4是本申请另一实施例提供的一种实现用户免登录的方法的示意流程图;FIG. 4 is a schematic flowchart of a method for implementing user login-free according to another embodiment of the present application; FIG.
图5是本申请另一实施例提供的一种实现用户免登录的方法的示意流程图;FIG. 5 is a schematic flowchart of a method for implementing user login-free according to another embodiment of the present application; FIG.
图6是本申请实施例提供的一种实现用户免登录的方法的演示示意图;FIG. 6 is a schematic diagram of a method for implementing a user-free login method according to an embodiment of the present application; FIG.
图7是本申请实施例提供的一种实现用户免登录的装置的示意性框图;FIG. 7 is a schematic block diagram of an apparatus for implementing user login-free according to an embodiment of the present application; FIG.
图8是本申请实施例提供的一种实现用户免登录的装置另一示意性框图;FIG. 8 is another schematic block diagram of an apparatus for implementing user login-free according to an embodiment of the present application; FIG.
图9是本申请实施例提供的一种实现用户免登录的装置另一示意性框图;FIG. 9 is another schematic block diagram of an apparatus for implementing user login-free according to an embodiment of the present disclosure;
图10是本申请实施例提供的一种实现用户免登录的装置另一示意性框图;FIG. 10 is another schematic block diagram of an apparatus for implementing user login-free according to an embodiment of the present application; FIG.
图11是本申请实施例提供的一种实现用户免登录的装置另一示意性框图;FIG. 11 is another schematic block diagram of an apparatus for implementing user login-free according to an embodiment of the present disclosure;
图12是本申请实施例提供的一种实现用户免登录的设备结构组成示意图。FIG. 12 is a schematic structural diagram of a device for implementing a user-free login according to an embodiment of the present application.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
请参阅图1,图1是本申请实施例提供的一种实现用户免登录的方法的示意流程图。该方法包括步骤S101~S105。Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a method for implementing user login-free according to an embodiment of the present application. The method includes steps S101 to S105.
S101,获取用户登录应用程序时输入的账户信息。S101. Acquire account information input when the user logs in to the application.
在本申请实施例中,所述账户信息指的是用户用于登录某一应用程序的个人信息,例如,用户登录应用程序1时,需要输入的账户信息有用户的帐户名、帐户密码等。In the embodiment of the present application, the account information refers to personal information used by the user to log in to an application. For example, when the user logs in to the application 1, the account information that needs to be input includes the user's account name, account password, and the like.
S102,根据应用程序的登录提示执行登录操作。S102. Perform a login operation according to the login prompt of the application.
在本申请实施例中,对于应用程序1,用户输入账户信息后,根据应用程序1的登录提示执行登录操作,具体的,用户所执行的登录操作为应用程序预设的登录逻辑,该预设登录逻辑规定用户输入账户信息后应该执行的操作步骤,并针对相关的操作步骤给出对应的登录提示,或者显示相对应的登录界面。其中,该预设登录逻辑可以由应用程序开发者自行开发并定义,具体的登录逻辑在此不作限定。In the embodiment of the present application, for the application 1, after the user inputs the account information, the login operation is performed according to the login prompt of the application 1. Specifically, the login operation performed by the user is the login logic preset by the application, and the preset is preset. The login logic specifies the operation steps that should be performed after the user inputs the account information, and gives the corresponding login prompt for the relevant operation steps, or displays the corresponding login interface. The default login logic can be developed and defined by the application developer. The specific login logic is not limited herein.
S103,获取执行所述登录操作后的URL地址。S103. Acquire a URL address after performing the login operation.
在本申请实施例中,所述URL地址指的是页面的网络地址,若执行所述预设登录逻辑成功,获取执行所述登录操作后的URL地址,例如,用户成功登录应用程序1后,登录页面便会完成更新并跳转至用户已登录的页面,由于每一 页面(包括登录页面以及非登录页面)都存在各自不同的页面地址,即URL地址,因此,在用户已登录的页面中同样存在所述URL地址,获取该URL地址,如http://www.yidenglu.com/。In the embodiment of the present application, the URL address refers to the network address of the page. If the default login logic is successfully executed, the URL address after the login operation is performed, for example, after the user successfully logs in to the application 1, The login page will complete the update and jump to the page where the user has logged in. Since each page (including the login page and the non-login page) has its own different page address, ie URL address, it is in the page where the user has logged in. The URL address is also present, and the URL address is obtained, such as http://www.yidenglu.com/.
S104,将所述URL地址存储至Cookie中。S104. Store the URL address into a cookie.
在本申请实施例中,提供一个Cookie用于存储所述URL地址,Cookie指的是一小段文本信息,伴随着用户请求和页面在Web服务器和浏览器之间传递,例如,在用户请求访问URL地址为http://www.yidenglu.com/上的某个页面时,应用程序发送给该用户的不仅仅是一个页面,若该页面为已登录页面,Cookie则存储处于已登录状态的页面的URL地址。其中,所述Cookie保存在用户硬盘上的某个文件夹中,以后,如果用户再次访问站点上的页面,当用户输入URL地址为http://www.yidenglu.com/时,浏览器就会在本地硬盘上查找与该URL地址相关联的Cookie,如果该Cookie存在,浏览器就将它与页面请求一起发送到站点,应用程序就能打开所请求的页面。In the embodiment of the present application, a cookie is provided for storing the URL address, and the cookie refers to a small piece of text information, which is transmitted between the web server and the browser along with the user request and the page, for example, when the user requests to access the URL. When the address is a page on http://www.yidenglu.com/, the application sends more than one page to the user. If the page is a logged in page, the cookie stores the page in the logged in state. URL address. The cookie is stored in a folder on the user's hard disk. Later, if the user accesses the page on the site again, when the user enters the URL address as http://www.yidenglu.com/, the browser will Look up the cookie associated with the URL on the local hard drive. If the cookie exists, the browser sends it along with the page request to the site, and the application can open the requested page.
S105,若外部插件需要进行用户登录,从所述Cookie中获取所述URL地址并打开所述URL地址以实现用户免登录。S105. If the external plug-in needs to perform user login, obtain the URL address from the cookie and open the URL address to implement user-free login.
在本申请实施例中,所述外部插件指的是通过超文本标记语言HTML5或者其他程序语言编写的应用程序插件,该应用程序插件依附于应用程序而存在,所述外部插件可以是需要进行用户登录的插件,也可以是不需要进行用户登录的插件。若所述外部插件为需要进行用户登录的插件,可以从Cookie中获取所存储的应用程序已登录页面并打开该页面以实现用户免登录。In the embodiment of the present application, the external plug-in refers to an application plug-in written by a hypertext markup language HTML5 or other programming language, and the application plug-in exists by being attached to an application, and the external plug-in may be required to perform a user. The plugin that is logged in can also be a plugin that does not require user login. If the external plug-in is a plug-in that requires user login, the stored application login page can be obtained from the cookie and the page can be opened to implement the user-free login.
进一步地,如图2所示,所述从所述Cookie中获取所述URL地址并打开所述URL地址的步骤包括步骤S201~S202。Further, as shown in FIG. 2, the step of acquiring the URL address from the cookie and opening the URL address includes steps S201 to S202.
S201,从所述Cookie中获取所存储的URL地址。S201. Acquire a stored URL address from the cookie.
S202,根据所述URL地址并通过浏览器打开历史登录页面以实现用户免登录。S202. Open a historical login page according to the URL address and through a browser to implement user login-free.
进一步地,如图3所示,在所述打开所述URL地址之前包括步骤S301~S303。Further, as shown in FIG. 3, steps S301 to S303 are included before the opening of the URL address.
S301,验证从所述Cookie中获取的URL地址与所述外部插件是否相匹配。S301. Verify that the URL address obtained from the cookie matches the external plugin.
在本申请实施例中,当接收到打开所述URL地址的请求之前,会触发终端显示验证界面,在该验证界面中,要求用户输入验证标识以验证所述外部插件与所述URL地址是否相匹配。终端会获取在该验证界面中输入的验证标识,并 通过预置的标识验证用户输入的验证标识是否与其相匹配,其中,用户输入的验证标识可以是字符标识,可以是指纹标识,也可以是语音标识;当用户输入的验证标识是字符标识时,获取用户在该验证界面输入的字符信息;当用户输入的验证标识是指纹标识时,获取用户在该验证界面输入的指纹信息;当用户输入的验证标识是语音标识时,获取用户在该验证界面输入的语音信息。In the embodiment of the present application, before receiving the request to open the URL address, the terminal is triggered to display a verification interface, where the user is required to input a verification identifier to verify whether the external plug-in is related to the URL address. match. The terminal obtains the verification identifier input in the verification interface, and verifies whether the verification identifier input by the user matches the preset identifier by using the preset identifier. The verification identifier input by the user may be a character identifier, which may be a fingerprint identifier, or may be The voice identifier is obtained when the verification identifier input by the user is a character identifier, and the character information input by the user on the verification interface is acquired; when the verification identifier input by the user is a fingerprint identifier, the fingerprint information input by the user on the verification interface is acquired; when the user inputs When the verification identifier is a voice identifier, the voice information input by the user on the verification interface is obtained.
S302,若否,拒绝所述URL地址通过浏览器打开。S302. If no, the URL address is rejected by the browser.
S303,若是,执行所述打开所述URL地址的步骤。S303. If yes, perform the step of opening the URL address.
由以上可见,本申请实施例通过获取用户登录应用程序时输入的账户信息;根据应用程序的登录提示执行登录操作;获取执行所述登录操作后的URL地址;将所述URL地址存储至Cookie中;若外部插件需要进行用户登录,从所述Cookie中获取所述URL地址并打开所述URL地址以实现用户免登录,可以避免重复的程序开发,并改善了用户的使用体验。It can be seen from the above that the embodiment of the present application obtains the account information input when the user logs in to the application; performs a login operation according to the login prompt of the application; obtains the URL address after the login operation is performed; and stores the URL address into the cookie. If the external plug-in needs to perform user login, the URL address is obtained from the cookie and the URL address is opened to implement user-free login, which can avoid repeated program development and improve the user experience.
请参阅图4,图4是本申请实施例提供的一种实现用户免登录的方法的示意流程图。该方法包括步骤S401~S407。Please refer to FIG. 4. FIG. 4 is a schematic flowchart of a method for implementing user-free login according to an embodiment of the present application. The method includes steps S401 to S407.
S401,获取用户登录应用程序时输入的账户信息。S401. Acquire account information input when the user logs in to the application.
S402,根据应用程序的登录提示执行登录操作。S402. Perform a login operation according to the login prompt of the application.
S403,获取执行所述登录操作后的URL地址。S403. Obtain a URL address after performing the login operation.
S404,将所获取的URL地址基于预设加密机制进行加密。S404. Encrypt the obtained URL address based on a preset encryption mechanism.
在本申请实施例中,由于所述URL地址中存储有用户的个人账户信息,可能包括了用户使用应用程序中的个人隐私信息如帐户密码等,若不对其进行加密处理,直接存储在Cookie中会很容易被窃取到,或被其他应用程序从Cookie中直接调用查看,从而导致用户需要保护的个人隐私信息泄露。因此,本实施例中按照预设加密机制进行加密处理,这样,应用程序中的各种URL地址会先进行加密后再存储在Cookie上,即使在其他应用程序中直接调用查看Cookie中的URL地址,都需要先进行解密后才能查看或者打开,否则在没有加密密码进行解密后查看只会显示为乱码,而无法获取数据的有效内容,避免了应用程序中产生的各种URL地址被轻易的窃取,有效地保证了应用程序运行中产生的数据中包含的用户个人隐私信息的安全性。In the embodiment of the present application, since the personal account information of the user is stored in the URL address, the user may use personal privacy information such as an account password in the application, and if not encrypted, directly stored in the cookie. It can be easily stolen or viewed directly by other applications from cookies, resulting in the disclosure of personal privacy information that users need to protect. Therefore, in this embodiment, the encryption process is performed according to a preset encryption mechanism, so that various URL addresses in the application are first encrypted and then stored on the cookie, even if the URL address in the cookie is directly called in other applications. , all need to be decrypted before they can be viewed or opened. Otherwise, if there is no encrypted password for decryption, the view will only be displayed as garbled, and the valid content of the data cannot be obtained, which avoids the various URLs generated in the application being easily stolen. , effectively ensuring the security of the user's personal privacy information contained in the data generated by the application running.
需要说明的是,在需要对所述应用程序中的URL地址进行加密时,首先建立虚拟块设备即硬盘镜像文件(Hard Disk Image),通过设备映射(device mapper) 机制将建立的虚拟块设备作为加密所需的逻辑卷加载,以确保URL地址的连续可用性、一致性及准确性。将所述应用程序中的URL地址置于加载的逻辑卷下,并使用预设的加密算法对所述应用程序中的URL地址进行加密,本实施例中,预设的加密算法可以是高级加密标准(Advanced Encryption Standard,简称AES)算法,当然,也不限定预设的加密算法为其他加密算法。使用AES算法对所述应用程序中的URL地址进行加密时,加密密钥为设置的该应用程序对应的加密密码,这样,将所述应用程序中的URL地址加密并存储在Cookie后,在通过电脑或其他终端来查看Cookie下存储的加密后的URL地址时,需要根据加密密码对其进行解密后才能查看到其有效内容,否则会显示为乱码,提高了应用程序在运行中产生的各种数据文件的安全性。It should be noted that when the URL address in the application needs to be encrypted, a virtual block device (Hard Disk Image) is first established, and the created virtual block device is used as a device mapper mechanism. The logical volume required for encryption is loaded to ensure continuous availability, consistency, and accuracy of the URL address. The URL address in the application is placed under the loaded logical volume, and the URL address in the application is encrypted by using a preset encryption algorithm. In this embodiment, the preset encryption algorithm may be advanced encryption. The Advanced Encryption Standard (AES) algorithm, of course, does not limit the default encryption algorithm to other encryption algorithms. When the URL address in the application is encrypted by using the AES algorithm, the encryption key is the set encryption password corresponding to the application, so that the URL address in the application is encrypted and stored in the cookie, and then passed. When the computer or other terminal checks the encrypted URL address stored under the cookie, it needs to decrypt it according to the encrypted password to view the valid content. Otherwise, it will be displayed as garbled, which improves various applications generated by the application. The security of the data file.
S405,将加密后的URL地址发送至所述Cookie中。S405. Send the encrypted URL address to the cookie.
在本申请实施例中,提供一个Cookie用于存储加密后的所述URL地址,Cookie指的是一小段文本信息,伴随着用户请求和页面在Web服务器和浏览器之间传递,例如,在用户请求访问URL地址为http://www.yidenglu.com/上的某个页面时,应用程序发送给该用户的不仅仅是一个页面,若该页面为已登录页面,Cookie则存储处于已登录状态的页面的URL地址。其中,所述Cookie保存在用户硬盘上的某个文件夹中,以后,如果用户再次访问站点上的页面,当用户输入URL地址为http://www.yidenglu.com/时,浏览器就会在本地硬盘上查找与该URL地址相关联的Cookie,如果该Cookie存在,浏览器就将它与页面请求一起发送到站点,应用程序就能打开所请求的页面。In the embodiment of the present application, a cookie is provided for storing the encrypted URL address, and the cookie refers to a small piece of text information, which is transmitted between the web server and the browser along with the user request and the page, for example, in the user. When requesting access to a page with a URL address of http://www.yidenglu.com/, the application sends more than one page to the user. If the page is a logged in page, the cookie is stored in the logged in state. The URL of the page. The cookie is stored in a folder on the user's hard disk. Later, if the user accesses the page on the site again, when the user enters the URL address as http://www.yidenglu.com/, the browser will Look up the cookie associated with the URL on the local hard drive. If the cookie exists, the browser sends it along with the page request to the site, and the application can open the requested page.
S406,若外部插件需要进行用户登录,从所述Cookie中获取所述URL地址并打开所述URL地址以实现用户免登录。S406. If the external plug-in needs to perform user login, obtain the URL address from the cookie and open the URL address to implement user-free login.
由以上可见,本实施例中按照预设加密机制进行加密处理避免了应用程序中产生的各种URL地址被轻易的窃取,有效地保证了应用程序运行中产生的数据中包含的用户个人隐私信息的安全性。It can be seen from the above that the encryption process according to the preset encryption mechanism in this embodiment prevents various URL addresses generated in the application from being easily stolen, and effectively ensures the user's personal privacy information included in the data generated by the application running. Security.
请参阅图5,图5是本申请实施例提供的一种实现用户免登录的方法的示意流程图。该方法包括步骤S501~S507。Referring to FIG. 5, FIG. 5 is a schematic flowchart of a method for implementing user-free login according to an embodiment of the present application. The method includes steps S501 to S507.
S501,判断是否接收到用于获取用户账户信息的请求指令。S501. Determine whether a request instruction for acquiring user account information is received.
在本申请实施例中,用户事先要利用用户的手机在对应的后台服务器中注册一个用户账户,该用户账户至少包括用于登录服务器的登录账号和登录密码, 注册完成后,服务器会将该登录账号和该登录密码存储在服务器本地存储中。这样,当用户需要登录服务器时,用户需要在终端上输入登录账号和登录密码;即,服务器需要获取用户的登录账号和登录密码,对用户的登录账号、登录密码进行验证,当用户需要登录服务器时,可以在终端的显示界面上点击预设按钮,以提交用户获取登录界面的获取请求给终端,终端接收该获取请求。In the embodiment of the present application, the user registers a user account in the corresponding background server by using the user's mobile phone in advance. The user account includes at least a login account and a login password for logging in to the server. After the registration is completed, the server logs the login. The account number and the login password are stored in the server local storage. In this way, when the user needs to log in to the server, the user needs to input the login account and the login password on the terminal; that is, the server needs to obtain the login account and login password of the user, and verify the login account and login password of the user, and the user needs to log in to the server. The preset button may be clicked on the display interface of the terminal to submit a request for obtaining the login interface to the terminal, and the terminal receives the acquisition request.
S502,若接收到所述请求指令,在当前显示界面显示登录界面,所述登录界面至少包括账号输入框和密码输入框。S502. If the request instruction is received, displaying a login interface on the current display interface, where the login interface includes at least an account input box and a password input box.
的本申请实施例中,终端可以在其显示界面上显示如图6所示的登录界面,该登录界面包括账输入框、密码输入框、“确认”按钮和“取消”按钮。In the embodiment of the present application, the terminal may display a login interface as shown in FIG. 6 on its display interface, and the login interface includes an account input box, a password input box, a “confirm” button, and a “cancel” button.
S503,获取用户登录应用程序时输入的账户信息。S503. Acquire account information input when the user logs in to the application.
S504,根据应用程序的登录提示执行登录操作。S504. Perform a login operation according to the login prompt of the application.
S505,获取执行所述登录操作后的URL地址。S505. Obtain a URL address after performing the login operation.
S506,将所述URL地址存储至Cookie中。S506. Store the URL address into a cookie.
S507,若外部插件需要进行用户登录,从所述Cookie中获取所述URL地址并打开所述URL地址以实现用户免登录。S507. If the external plug-in needs to perform user login, obtain the URL address from the cookie and open the URL address to implement user-free login.
请参阅图7,对应上述一种实现用户免登录的方法,本申请实施例还提出一种实现用户免登录的装置,所述装置100包括:第一获取单元101、第一执行单元102、第二获取单元103、存储单元104、打开单元105。Referring to FIG. 7 , corresponding to the foregoing method for implementing user-free login, the embodiment of the present application further provides an apparatus for implementing user-free login, and the apparatus 100 includes: a first acquiring unit 101, a first executing unit 102, and a first The second obtaining unit 103, the storage unit 104, and the opening unit 105.
其中,所述第一获取单元101,用于获取用户登录应用程序时输入的账户信息。第一执行单元102,用于根据应用程序的登录提示执行登录操作。第二获取单元103,用于获取执行所述登录操作后的URL地址。存储单元104,用于将所述URL地址存储至Cookie中。打开单元105,用于若外部插件需要进行用户登录,从所述Cookie中获取所述URL地址并打开所述URL地址以实现用户免登录。The first obtaining unit 101 is configured to acquire account information input when the user logs in to the application. The first execution unit 102 is configured to perform a login operation according to the login prompt of the application. The second obtaining unit 103 is configured to obtain a URL address after the login operation is performed. The storage unit 104 is configured to store the URL address into a cookie. The opening unit 105 is configured to: if the external plug-in needs to perform user login, obtain the URL address from the cookie and open the URL address to implement user-free login.
请参阅图8,所述打开单元105,包括:第三获取单元1051,用于从所述Cookie中获取所存储的URL地址。打开子单元1052,用于根据所述URL地址并通过浏览器打开历史登录页面以实现用户免登录。Referring to FIG. 8, the opening unit 105 includes: a third obtaining unit 1051, configured to obtain the stored URL address from the cookie. The sub-unit 1052 is opened for opening the historical login page according to the URL address and by using a browser to implement user-free login.
请参阅图9,所述装置,还包括:验证单元106,用于验证从所述Cookie中获取的URL地址与所述外部插件是否相匹配。第二执行单元107,用于若否,拒绝所述URL地址通过浏览器打开。第三执行单元108,用于若是,执行所述 打开所述URL地址的步骤。Referring to FIG. 9, the apparatus further includes: a verification unit 106, configured to verify whether a URL address obtained from the cookie matches the external plug-in. The second execution unit 107 is configured to, if not, reject the URL address to be opened by the browser. The third executing unit 108 is configured to, if yes, perform the step of opening the URL address.
请参阅图10,对应上述一种实现用户免登录的方法,本申请实施例还提出一种实现用户免登录的装置,所述装置200包括:第一获取单元201、第一执行单元202、第二获取单元203、加密单元204、发送单元205、打开单元206。Referring to FIG. 10, corresponding to the foregoing method for implementing user-free login, the embodiment of the present application further provides an apparatus for implementing user-free login, and the apparatus 200 includes: a first acquiring unit 201, a first executing unit 202, and a first The second obtaining unit 203, the encrypting unit 204, the transmitting unit 205, and the opening unit 206.
其中,所述第一获取单元201,用于获取用户登录应用程序时输入的账户信息。第一执行单元202,用于根据应用程序的登录提示执行登录操作。第二获取单元203,用于获取执行所述登录操作后的URL地址。加密单元204,用于将所获取的URL地址基于预设加密机制进行加密。发送单元205,用于将加密后的URL地址发送至所述Cookie中。打开单元206,用于若外部插件需要进行用户登录,从所述Cookie中获取所述URL地址并打开所述URL地址以实现用户免登录。The first obtaining unit 201 is configured to acquire account information input when the user logs in to the application. The first execution unit 202 is configured to perform a login operation according to the login prompt of the application. The second obtaining unit 203 is configured to obtain a URL address after performing the login operation. The encryption unit 204 is configured to encrypt the acquired URL address based on a preset encryption mechanism. The sending unit 205 is configured to send the encrypted URL address to the cookie. The opening unit 206 is configured to: if the external plug-in needs to perform user login, obtain the URL address from the cookie and open the URL address to implement user-free login.
请参阅图11,对应上述一种实现用户免登录的方法,本申请实施例还提出一种实现用户免登录的装置,所述装置300包括:判断单元301、显示单元302、第一获取单元303、第一执行单元304、第二获取单元305、存储单元306、打开单元307。Referring to FIG. 11 , corresponding to the foregoing method for implementing user-free login, the embodiment of the present application further provides a device for implementing user-free login, and the device 300 includes: a determining unit 301, a display unit 302, and a first acquiring unit 303. The first execution unit 304, the second acquisition unit 305, the storage unit 306, and the open unit 307.
其中,所述判断单元301,用于判断是否接收到用于获取用户账户信息的请求指令。显示单元302,用于若接收到所述请求指令,在当前显示界面显示登录界面,所述登录界面至少包括账号输入框和密码输入框。第一获取单元303,用于获取用户登录应用程序时输入的账户信息。第一执行单元304,用于根据应用程序的登录提示执行登录操作。第二获取单元305,用于获取执行所述登录操作后的URL地址。存储单元306,用于将所述URL地址存储至Cookie中。打开单元307,用于若外部插件需要进行用户登录,从所述Cookie中获取所述URL地址并打开所述URL地址以实现用户免登录。The determining unit 301 is configured to determine whether a request instruction for acquiring user account information is received. The display unit 302 is configured to display a login interface on the current display interface if the request command is received, where the login interface includes at least an account input box and a password input box. The first obtaining unit 303 is configured to acquire account information input when the user logs in to the application. The first execution unit 304 is configured to perform a login operation according to the login prompt of the application. The second obtaining unit 305 is configured to obtain a URL address after the login operation is performed. The storage unit 306 is configured to store the URL address into a cookie. The opening unit 307 is configured to: if the external plug-in needs to perform user login, obtain the URL address from the cookie and open the URL address to implement user-free login.
上述实现用户免登录的装置可以实现为一种计算机程序的形式,计算机程序可以在如图12所示的设备上运行。The above described means for implementing user login free can be implemented in the form of a computer program that can be run on a device as shown in FIG.
图12为本申请一种计算机设备的结构组成示意图。该设备可以是终端,也可以是服务器,其中,终端可以是智能手机、平板电脑、笔记本电脑、台式电脑、个人数字助理和穿戴式设备等具有通信功能的电子设备。服务器可以是独立的服务器,也可以是多个服务器组成的服务器集群。参照图12,该计算机设备500包括通过系统总线501连接的处理器502、非易失性存储介质503、内存 储器504和网络接口505。其中,该计算机设备500的非易失性存储介质503可存储操作系统5031和计算机程序5032,该计算机程序5032被执行时,可使得处理器502执行一种实现用户免登录的方法。该计算机设备500的处理器502用于提供计算和控制能力,支撑整个计算机设备500的运行。该内存储器504中可储存有计算机程序,该计算机程序被处理器执行时,可使得处理器502执行一种实现用户免登录的方法。计算机设备500的网络接口505用于进行网络通信,如发送分配的任务等。本领域技术人员可以理解,图12中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。其中,所述处理器502执行如下操作:获取用户登录应用程序时输入的账户信息;根据应用程序的登录提示执行登录操作;获取执行所述登录操作后的URL地址;将所述URL地址存储至Cookie中;若外部插件需要进行用户登录,从所述Cookie中获取所述URL地址并打开所述URL地址以实现用户免登录。FIG. 12 is a schematic structural diagram of a computer device according to the present application. The device may be a terminal or a server, wherein the terminal may be a communication-enabled electronic device such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device. The server can be a standalone server or a server cluster consisting of multiple servers. Referring to Figure 12, the computer device 500 includes a processor 502, a non-volatile storage medium 503, a memory 504, and a network interface 505 that are coupled by a system bus 501. The non-volatile storage medium 503 of the computer device 500 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can be caused to perform a method for implementing user-free login. The processor 502 of the computer device 500 is used to provide computing and control capabilities to support the operation of the entire computer device 500. The internal memory 504 can store a computer program that, when executed by the processor, can cause the processor 502 to perform a method of implementing user-free login. The network interface 505 of the computer device 500 is used to perform network communications, such as sending assigned tasks and the like. It will be understood by those skilled in the art that the structure shown in FIG. 12 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device to which the solution of the present application is applied. The specific computer device may It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements. The processor 502 performs the following operations: acquiring account information input when the user logs in to the application; performing a login operation according to the login prompt of the application; obtaining a URL address after performing the login operation; storing the URL address to In the cookie; if the external plug-in needs to perform user login, the URL address is obtained from the cookie and the URL address is opened to implement the user-free login.
在一个实施例中,所述从所述Cookie中获取所述URL地址并打开所述URL地址,包括:从所述Cookie中获取所存储的URL地址;根据所述URL地址并通过浏览器打开历史登录页面以实现用户免登录。In one embodiment, the obtaining the URL address from the cookie and opening the URL address comprises: obtaining the stored URL address from the cookie; opening a history according to the URL address and through a browser Log in to the page to enable users to log in.
在一个实施例中,在所述获取执行所述登录操作后的URL地址之后,所述方法还包括:将所获取的URL地址基于预设加密机制进行加密。In an embodiment, after the obtaining the URL address after performing the login operation, the method further comprises: encrypting the acquired URL address based on a preset encryption mechanism.
在一个实施例中,所述处理器505还执行如下操作:验证从所述Cookie中获取的URL地址与所述外部插件是否相匹配;若否,拒绝所述URL地址通过浏览器打开;若是,执行所述打开所述URL地址的步骤。In one embodiment, the processor 505 also performs an operation of verifying whether the URL address obtained from the cookie matches the external plug-in; if not, rejecting the URL address to be opened by the browser; if so, The step of opening the URL address is performed.
在一个实施例中,所述处理器505还执行如下操作:判断是否接收到用于获取用户账户信息的请求指令;若接收到所述请求指令,在当前显示界面显示登录界面,所述登录界面至少包括账号输入框和密码输入框。In an embodiment, the processor 505 further performs: determining whether a request instruction for acquiring user account information is received; and if the request instruction is received, displaying a login interface on the current display interface, the login interface At least the account input box and password input box are included.
本领域技术人员可以理解,图12中示出的实现用户免登录的设备的实施例并不构成对实现用户免登录的设备具体构成的限定,在其他实施例中,实现用户免登录的设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。例如,在一些实施例中,实现用户免登录的设备可以仅包括存储器及处理器,在这样的实施例中,存储器及处理器的结构及功能与图12所 示实施例一致,在此不再赘述。It can be understood by those skilled in the art that the embodiment of the device for implementing the user-free login shown in FIG. 12 does not constitute a limitation on the specific configuration of the device that implements the user-free login. In other embodiments, the device that implements the user-free login may be Includes more or fewer components than shown, or combines some components, or different component arrangements. For example, in some embodiments, the device implementing user login-free may include only the memory and the processor. In such an embodiment, the structure and function of the memory and the processor are consistent with the embodiment shown in FIG. Narration.
本申请提供了一种计算机存储介质,计算机存储介质存储有一个或者一个以上计算机程序,所述一个或者一个以上计算机程序可被一个或者一个以上的处理器执行,以实现上述实现用户免登录的方法。The application provides a computer storage medium storing one or more computer programs, the one or more computer programs being executable by one or more processors to implement the above method for implementing user login free .
本申请前述的存储介质包括:磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等各种可以存储程序代码的介质。The foregoing storage medium of the present application includes: a magnetic disk, an optical disk, a read-only memory (ROM), and the like, which can store various program codes.
本申请所有实施例中的单元可以通过通用集成电路,例如CPU(Central Processing Unit,中央处理器),或通过ASIC(Application Specific Integrated Circuit,专用集成电路)来实现。The units in all the embodiments of the present application may be implemented by a general-purpose integrated circuit, such as a CPU (Central Processing Unit), or by an ASIC (Application Specific Integrated Circuit).
本申请实施例实现用户免登录的方法中的步骤可以根据实际需要进行顺序调整、合并和删减。The steps in the method for implementing the user-free login in the embodiment of the present application may be sequentially adjusted, merged, and deleted according to actual needs.
本申请实施例实现用户免登录的装置中的单元可以根据实际需要进行合并、划分和删减。The units in the apparatus for implementing user-free login in the embodiment of the present application may be combined, divided, and deleted according to actual needs.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The foregoing is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any equivalents can be easily conceived by those skilled in the art within the technical scope disclosed in the present application. Modifications or substitutions are intended to be included within the scope of the present application. Therefore, the scope of protection of this application should be determined by the scope of protection of the claims.
Claims (20)
- 一种实现用户免登录的方法,其特征在于,所述方法包括:A method for implementing user login-free, characterized in that the method comprises:获取用户登录应用程序时输入的账户信息;Obtain the account information entered when the user logs in to the application;根据应用程序的登录提示执行登录操作;Perform a login operation based on the login prompt of the application;获取执行所述登录操作后的URL地址;Obtaining a URL address after performing the login operation;将所述URL地址存储至Cookie中;Storing the URL address in a cookie;若外部插件需要进行用户登录,从所述Cookie中获取所述URL地址并打开所述URL地址以实现用户免登录。If the external plug-in needs to perform user login, the URL address is obtained from the cookie and the URL address is opened to implement user-free login.
- 如权利要求1所述的方法,其特征在于,所述从所述Cookie中获取所述URL地址并打开所述URL地址,包括:The method of claim 1, wherein the obtaining the URL address from the cookie and opening the URL address comprises:从所述Cookie中获取所存储的URL地址;Obtaining the stored URL address from the cookie;根据所述URL地址并通过浏览器打开历史登录页面以实现用户免登录。According to the URL address and opening a historical login page through a browser, the user is free from login.
- 如权利要求1所述的方法,其特征在于,在所述获取执行所述登录操作后的URL地址之后,所述方法还包括:The method of claim 1, wherein after the obtaining the URL address after performing the login operation, the method further comprises:将所获取的URL地址基于预设加密机制进行加密。The obtained URL address is encrypted based on a preset encryption mechanism.
- 如权利要求1所述的方法,其特征在于,所述打开所述URL地址之前,包括:The method of claim 1, wherein before the opening the URL address, the method comprises:验证从所述Cookie中获取的URL地址与所述外部插件是否相匹配;Verifying that the URL address obtained from the cookie matches the external plugin;若否,拒绝所述URL地址通过浏览器打开;If not, the URL is rejected by the browser;若是,执行所述打开所述URL地址的步骤。If so, the step of opening the URL address is performed.
- 如权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 wherein the method further comprises:判断是否接收到用于获取用户账户信息的请求指令;Determining whether a request instruction for obtaining user account information is received;若接收到所述请求指令,在当前显示界面显示登录界面,所述登录界面至少包括账号输入框和密码输入框。If the request instruction is received, the login interface is displayed on the current display interface, and the login interface includes at least an account input box and a password input box.
- 一种实现用户免登录的装置,其特征在于,所述装置包括:A device for realizing user login-free, characterized in that the device comprises:第一获取单元,用于获取用户登录应用程序时输入的账户信息;a first obtaining unit, configured to acquire account information input when the user logs in to the application;第一执行单元,用于根据应用程序的登录提示执行登录操作;a first execution unit, configured to perform a login operation according to a login prompt of the application;第二获取单元,用于获取执行所述登录操作后的URL地址;a second obtaining unit, configured to acquire a URL address after performing the login operation;存储单元,用于将所述URL地址存储至Cookie中;a storage unit, configured to store the URL address into a cookie;打开单元,用于若外部插件需要进行用户登录,从所述Cookie中获取所述URL地址并打开所述URL地址以实现用户免登录。Opening a unit, if the external plug-in needs to perform user login, obtain the URL address from the cookie and open the URL address to implement user-free login.
- 如权利要求6所述的装置,其特征在于,所述打开单元,包括:The device according to claim 6, wherein the opening unit comprises:第三获取单元,用于从所述Cookie中获取所存储的URL地址;a third obtaining unit, configured to obtain the stored URL address from the cookie;打开子单元,用于根据所述URL地址并通过浏览器打开历史登录页面以实现用户免登录。The sub-unit is opened for opening the historical login page according to the URL address and by using a browser to implement user-free login.
- 如权利要求6所述的装置,其特征在于,所述装置还包括:The device of claim 6 wherein said device further comprises:加密单元,用于将所获取的URL地址基于预设加密机制进行加密;An encryption unit, configured to encrypt the obtained URL address according to a preset encryption mechanism;
- 如权利要求6所述的装置,其特征在于,所述装置还包括:The device of claim 6 wherein said device further comprises:验证单元,用于验证从所述Cookie中获取的URL地址与所述外部插件是否相匹配;a verification unit, configured to verify whether the URL address obtained from the cookie matches the external plug-in;第二执行单元,用于若否,拒绝所述URL地址通过浏览器打开;a second execution unit, if not, rejecting the URL address to be opened by a browser;第三执行单元,用于若是,执行所述打开所述URL地址的步骤。And a third execution unit, configured to perform the step of opening the URL address if yes.
- 如权利要求6所述的装置,其特征在于,所述装置,还包括:The device according to claim 6, wherein the device further comprises:判断单元,用于判断是否接收到用于获取用户账户信息的请求指令;a determining unit, configured to determine whether a request instruction for acquiring user account information is received;显示单元,用于若接收到所述请求指令,在当前显示界面显示登录界面,所述登录界面至少包括账号输入框和密码输入框。The display unit is configured to display a login interface on the current display interface if the request instruction is received, where the login interface includes at least an account input box and a password input box.
- 一种实现用户免登录的设备,其特征在于,包括:A device for implementing user login-free, characterized in that it comprises:存储器,用于存储实现用户免登录的程序;以及a memory for storing a program that implements user-free login;处理器,用于运行所述存储器中存储的实现用户免登录的程序,以执行以下操作:a processor, configured to execute a program implemented in the memory to implement user login-free, to perform the following operations:获取用户登录应用程序时输入的账户信息;Obtain the account information entered when the user logs in to the application;根据应用程序的登录提示执行登录操作;Perform a login operation based on the login prompt of the application;获取执行所述登录操作后的URL地址;Obtaining a URL address after performing the login operation;将所述URL地址存储至Cookie中;Storing the URL address in a cookie;若外部插件需要进行用户登录,从所述Cookie中获取所述URL地址并打开所述URL地址以实现用户免登录。If the external plug-in needs to perform user login, the URL address is obtained from the cookie and the URL address is opened to implement user-free login.
- 如权利要求11所述的设备,其特征在于,所述从所述Cookie中获取所述URL地址并打开所述URL地址,包括:The device according to claim 11, wherein the obtaining the URL address from the cookie and opening the URL address comprises:从所述Cookie中获取所存储的URL地址;Obtaining the stored URL address from the cookie;根据所述URL地址并通过浏览器打开历史登录页面以实现用户免登录。According to the URL address and opening a historical login page through a browser, the user is free from login.
- 如权利要求11所述的设备,其特征在于,所述处理器还执行以下操作:The device of claim 11 wherein said processor further performs the following operations:将所获取的URL地址基于预设加密机制进行加密。The obtained URL address is encrypted based on a preset encryption mechanism.
- 如权利要求11所述的设备,其特征在于,所述处理器还执行以下操作:The device of claim 11 wherein said processor further performs the following operations:验证从所述Cookie中获取的URL地址与所述外部插件是否相匹配;Verifying that the URL address obtained from the cookie matches the external plugin;若否,拒绝所述URL地址通过浏览器打开;If not, the URL is rejected by the browser;若是,执行所述打开所述URL地址的步骤。If so, the step of opening the URL address is performed.
- 如权利要求11所述的设备,其特征在于,所述处理器还执行以下操作:The device of claim 11 wherein said processor further performs the following operations:判断是否接收到用于获取用户账户信息的请求指令;Determining whether a request instruction for obtaining user account information is received;若接收到所述请求指令,在当前显示界面显示登录界面,所述登录界面至少包括账号输入框和密码输入框。If the request instruction is received, the login interface is displayed on the current display interface, and the login interface includes at least an account input box and a password input box.
- 一种计算机存储介质,其特征在于,计算机存储介质存储有一个或者一个以上计算机程序,所述一个或者一个以上计算机程序可被一个或者一个以上的处理器执行,以实现以下步骤:A computer storage medium characterized in that the computer storage medium stores one or more computer programs, the one or more computer programs being executable by one or more processors to implement the steps of:获取用户登录应用程序时输入的账户信息;Obtain the account information entered when the user logs in to the application;根据应用程序的登录提示执行登录操作;Perform a login operation based on the login prompt of the application;获取执行所述登录操作后的URL地址;Obtaining a URL address after performing the login operation;将所述URL地址存储至Cookie中;Storing the URL address in a cookie;若外部插件需要进行用户登录,从所述Cookie中获取所述URL地址并打开所述URL地址以实现用户免登录。If the external plug-in needs to perform user login, the URL address is obtained from the cookie and the URL address is opened to implement user-free login.
- 如权利要求16所述的计算机可读存储介质,其特征在于,所述从所述Cookie中获取所述URL地址并打开所述URL地址,包括:The computer readable storage medium of claim 16, wherein the obtaining the URL address from the cookie and opening the URL address comprises:从所述Cookie中获取所存储的URL地址;Obtaining the stored URL address from the cookie;根据所述URL地址并通过浏览器打开历史登录页面以实现用户免登录。According to the URL address and opening a historical login page through a browser, the user is free from login.
- 如权利要求16所述的计算机可读存储介质,其特征在于,所述步骤还包括:The computer readable storage medium of claim 16 wherein said step further comprises:将所获取的URL地址基于预设加密机制进行加密。The obtained URL address is encrypted based on a preset encryption mechanism.
- 如权利要求16所述的计算机可读存储介质,其特征在于,所述步骤还包括:The computer readable storage medium of claim 16 wherein said step further comprises:验证从所述Cookie中获取的URL地址与所述外部插件是否相匹配;Verifying that the URL address obtained from the cookie matches the external plugin;若否,拒绝所述URL地址通过浏览器打开;If not, the URL is rejected by the browser;若是,执行所述打开所述URL地址的步骤。If so, the step of opening the URL address is performed.
- 如权利要求16所述的计算机可读存储介质,其特征在于,所述步骤还包括:The computer readable storage medium of claim 16 wherein said step further comprises:判断是否接收到用于获取用户账户信息的请求指令;Determining whether a request instruction for obtaining user account information is received;若接收到所述请求指令,在当前显示界面显示登录界面,所述登录界面至少包括账号输入框和密码输入框。If the request instruction is received, the login interface is displayed on the current display interface, and the login interface includes at least an account input box and a password input box.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710822494.5 | 2017-09-13 | ||
CN201710822494.5A CN108259456B (en) | 2017-09-13 | 2017-09-13 | Method, device, equipment and computer storage medium for realizing user login-free |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019052170A1 true WO2019052170A1 (en) | 2019-03-21 |
Family
ID=62722283
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/083817 WO2019052170A1 (en) | 2017-09-13 | 2018-04-20 | Method, apparatus and device for implementing user login avoidance, and computer storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108259456B (en) |
WO (1) | WO2019052170A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110875903B (en) * | 2018-08-31 | 2022-10-14 | 阿里巴巴集团控股有限公司 | Security defense method and device |
CN111596828B (en) * | 2020-05-14 | 2023-06-02 | 云账户技术(天津)有限公司 | cookie synchronization method, device and computer readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102325183A (en) * | 2011-09-09 | 2012-01-18 | 深圳市络道科技有限公司 | WEB terminal login method based on single site login mode and system thereof |
CN102984142A (en) * | 2012-11-21 | 2013-03-20 | 用友软件股份有限公司 | Login system and login method of enterprise resource planning system |
CN103618807A (en) * | 2013-11-08 | 2014-03-05 | 北京奇虎科技有限公司 | Method and device for processing cookie information |
CN103618698A (en) * | 2013-11-08 | 2014-03-05 | 北京奇虎科技有限公司 | Method and device for processing cookie information |
CN103905497A (en) * | 2012-12-27 | 2014-07-02 | 腾讯科技(深圳)有限公司 | Method, device and application platform for realizing login of third-party application service website |
CN104735066A (en) * | 2015-03-18 | 2015-06-24 | 百度在线网络技术(北京)有限公司 | Single sign-on method, device and system oriented to web page applications |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103685334B (en) * | 2012-09-03 | 2018-04-06 | 许丰 | Intelligent use browser |
CN103036887B (en) * | 2012-12-18 | 2015-11-25 | 北京奇虎科技有限公司 | Realize the system and method for website log |
CN103268319A (en) * | 2013-04-17 | 2013-08-28 | 北京航空航天大学 | Cloud browser based on webpages |
CN104951366A (en) * | 2015-07-16 | 2015-09-30 | 上海益玩网络科技有限公司 | Mobile terminal application program login method and equipment |
CN105791324B (en) * | 2016-05-12 | 2019-12-06 | 腾讯科技(深圳)有限公司 | Account login method and device |
-
2017
- 2017-09-13 CN CN201710822494.5A patent/CN108259456B/en active Active
-
2018
- 2018-04-20 WO PCT/CN2018/083817 patent/WO2019052170A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102325183A (en) * | 2011-09-09 | 2012-01-18 | 深圳市络道科技有限公司 | WEB terminal login method based on single site login mode and system thereof |
CN102984142A (en) * | 2012-11-21 | 2013-03-20 | 用友软件股份有限公司 | Login system and login method of enterprise resource planning system |
CN103905497A (en) * | 2012-12-27 | 2014-07-02 | 腾讯科技(深圳)有限公司 | Method, device and application platform for realizing login of third-party application service website |
CN103618807A (en) * | 2013-11-08 | 2014-03-05 | 北京奇虎科技有限公司 | Method and device for processing cookie information |
CN103618698A (en) * | 2013-11-08 | 2014-03-05 | 北京奇虎科技有限公司 | Method and device for processing cookie information |
CN104735066A (en) * | 2015-03-18 | 2015-06-24 | 百度在线网络技术(北京)有限公司 | Single sign-on method, device and system oriented to web page applications |
Also Published As
Publication number | Publication date |
---|---|
CN108259456B (en) | 2020-11-17 |
CN108259456A (en) | 2018-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11520912B2 (en) | Methods, media, apparatuses and computing devices of user data authorization based on blockchain | |
US11902281B2 (en) | On-demand security policy activation | |
CN106716404B (en) | Proxy server in computer subnet | |
EP3092775B1 (en) | Method and system for determining whether a terminal logging into a website is a mobile terminal | |
US10171455B2 (en) | Protection of application passwords using a secure proxy | |
EP2875463B1 (en) | Method and system for browser identity | |
US9027108B2 (en) | Systems and methods for secure file portability between mobile applications on a mobile device | |
US8505084B2 (en) | Data access programming model for occasionally connected applications | |
US20160259947A1 (en) | Method and apparatus for managing access to electronic content | |
US8856958B1 (en) | Personalized content access prompt | |
US11363012B1 (en) | System and methods for using role credentials associated with a VM instance | |
US11063922B2 (en) | Virtual content repository | |
US10218505B1 (en) | Server based settings for client software with asymmetric signing | |
WO2019052170A1 (en) | Method, apparatus and device for implementing user login avoidance, and computer storage medium | |
US12034714B2 (en) | Techniques to pre-authenticate a user identity for an electronic account | |
US9288189B2 (en) | Retrieving both sensitive and non-sensitive content in a secure manner | |
US11803635B2 (en) | Passing local credentials to a secure browser session | |
US20240171543A1 (en) | Protectively displaying specific fields in specific views of a secure interface | |
KR20220056049A (en) | System and method for remote support, and web application server for executing the same | |
CN118611992A (en) | Access method and system and electronic equipment | |
JP2013069254A (en) | Provision of technology to limit communication from web browser |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18857253 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 28/09/2020) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18857253 Country of ref document: EP Kind code of ref document: A1 |