Application Login Method, Device, Electronic Device, and Storage Medium
By generating a universal login graphic code, allowing multiple applications to be used, the problem of cumbersome application login process in the prior art is solved, and a more efficient application login process is achieved.
Patent Information
- Application Number
- CN202011109336.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-16
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2040-10-16
AI Technical Summary
In the prior art, when a user logs in the application between multiple different third-party applications, he or she needs to manually select the graphics code and the application, resulting in a cumbersome and inefficient login process.
By generating a universal login graphic code, multiple different applications are allowed to log in using the graphic code. The user only needs to display the universal login graphic code on the first terminal. The application on the second terminal scans the graphic code, receives the authorization page address information, and sends the corresponding authorization page data based on the information. After the user authorizes, the login authorization information is obtained, and the account information of the second application is triggered to log in to the first application.
The application login process is simplified and the login efficiency is improved. Users do not need to pre-select graphic codes and applications, but directly complete login by scanning the universal login graphic code.
Smart Images

Figure CN114386010B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and particularly relates to an application login method, apparatus, electronic device, and storage medium. Background Art
[0002] Currently, many remote servers provide a function of graphic code login. When a user uses an application program with permission requirements provided by a remote server, the user can first use the camera of a mobile terminal to scan the login graphic code of the target application, and parse the verification information in the login graphic code. Then, the mobile terminal sends the verification information of the login graphic code to the remote server. When the remote server verifies the verification information of the login graphic code and passes, the target application is logged in.
[0003] Currently, on the computer terminal side, it supports logging in to the target application with the accounts of multiple different third-party applications. The user needs to select a third-party application and the corresponding login graphic code of the selected third-party application before scanning on the mobile terminal. Such an application login process is relatively cumbersome and the login efficiency is low. Summary of the Invention
[0004] Embodiments of this application provide an application login method, apparatus, electronic device, and storage medium, which can simplify the application login process, thereby improving the login efficiency.
[0005] Embodiments of this application provide an application login method, including:
[0006] In response to an application login operation for a first application on a first terminal, generate a universal login graphic code corresponding to the first application, and send the universal login graphic code to the first terminal, so that the first terminal displays the universal login graphic code, where the universal login graphic code can be used by multiple different second applications;
[0007] In response to a scanning operation of a second application on a second terminal for the login image code, receive the authorization page address information sent by the second terminal;
[0008] Send corresponding authorization page data to the second terminal according to the authorization page address information, so that the second terminal displays an authorization page according to the authorization page data;
[0009] In response to an authorization operation for the authorization page, obtain the login authorization information of the second application;
[0010] Trigger logging in to the first application using the account information of the second application according to the login authorization information.
[0011] Correspondingly, embodiments of this application also provide an application login apparatus, including:
[0012] A generation module, configured to generate a general login graphic code corresponding to the first application in response to an application login operation for the first application on the first terminal, and send the general login graphic code to the first terminal, so that the first terminal displays the general login graphic code, where the general login graphic code can be used by multiple different second applications;
[0013] A receiving module, configured to receive the authorized page address information sent by the second terminal in response to a scanning operation of the second application on the second terminal for the login image code;
[0014] A sending module, configured to send corresponding authorized page data to the second terminal according to the authorized page address information, so that the second terminal displays an authorized page according to the authorized page data;
[0015] An obtaining module, configured to obtain the login authorization information of the second application in response to an authorization operation for the authorized page;
[0016] A login module, configured to trigger logging in to the first application using the account information of the second application according to the login authorization information.
[0017] Optionally, in some embodiments of the present application, the sending module includes:
[0018] An obtaining unit, configured to obtain the network connection information of the second terminal;
[0019] A generating unit, configured to generate an authorization mode corresponding to the network connection information;
[0020] A sending unit, configured to send corresponding authorized page data to the second terminal according to the authorized page address information and the authorization mode.
[0021] Optionally, in some embodiments of the present application, the generating unit is specifically configured to:
[0022] When the network connection information indicates that the network connection mode of the second terminal is a local network connection, determine the authorization mode as the first authorization mode;
[0023] When the network connection information indicates that the network connection mode of the second terminal is an external network connection, determine the authorization mode as the second authorization mode;
[0024] The sending unit is specifically configured to: send corresponding authorized page data to the second terminal according to the authorized page address information and the first authorization mode, or send corresponding authorized page data to the second terminal according to the authorized page address information and the second authorization mode.
[0025] Optionally, in some embodiments of the present application, the sending unit includes:
[0026] A first extraction subunit, configured to extract the page address of the authorization page from the authorization page address information;
[0027] A first sending subunit, configured to generate authorization page data corresponding to the user agent of the page address, and send the authorization page data to the second terminal.
[0028] Optionally, in some embodiments of the present application, the sending unit includes:
[0029] A determination subunit, configured to determine the current security level according to the network connection information;
[0030] A selection unit, configured to select a verification method corresponding to the current security level from a preset set of verification methods, and send the selected verification method to the second terminal, so as to generate a network verification page on the second terminal;
[0031] A second extraction subunit, configured to extract the page address of the authorization page from the authorization page address information in response to a verification operation on the network verification page;
[0032] A second sending subunit, configured to generate authorization page data corresponding to the user agent of the page address, and send the authorization page data to the second terminal.
[0033] Optionally, in some embodiments of the present application, the login module is specifically configured to:
[0034] Obtain an authorization key corresponding to the authorization operation according to the login authorization information;
[0035] Trigger logging in to the first application with the account information of the second application based on the obtained key.
[0036] Optionally, in some embodiments of the present application, the receiving module is specifically configured to:
[0037] Detect whether the time difference between the generation time of the general login graphic code and the operation time of the scanning operation is less than a preset value;
[0038] When it is detected that the time difference between the generation time of the general login graphic and the operation time of the scanning operation is less than a preset value, receive the authorization page address information sent by the second terminal;
[0039] When the time difference between the generation time of the universal login graphic and the operation time of the scanning operation is greater than or equal to a preset value, the universal login graphic code is updated. In response to the scanning operation of the updated login image code by a second application on a second terminal, the authorization page address information sent by the second terminal is received.
[0040] In an embodiment of the present application, first, in response to an application login operation for a first application on a first terminal, a universal login graphic code corresponding to the first application is generated and sent to the first terminal so that the first terminal can display the universal login graphic code. The universal login graphic code can be used by multiple different second applications. Then, in response to the scanning operation of the login image code by a second application on a second terminal, the authorization page address information sent by the second terminal is received. Next, corresponding authorization page data is sent to the second terminal according to the authorization page address information so that the second terminal can display an authorization page based on the authorization page data. Then, in response to an authorization operation for the authorization page, the login authorization information of the second application is obtained. Finally, the first application is logged in using the account information of the second application according to the login authorization information. Therefore, the application login process can be simplified, thereby improving the login efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those skilled in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0042] Figure 1a is a schematic diagram of the scenario of the application login method provided by an embodiment of the present application;
[0043] Figure 1b is a schematic flowchart of the application login method provided by an embodiment of the present application;
[0044] Figure 1c is a schematic diagram of the architecture of the Oauth protocol;
[0045] Figure 2a is another schematic flowchart of the application login method provided by an embodiment of the present application;
[0046] Figure 2b is a schematic diagram of the application process of the application login system provided by an embodiment of the present application;
[0047] Figure 2c is the page of successful code scanning in the application login system provided by an embodiment of the present application;
[0048] Figure 3 It is a schematic structural diagram of an application login device provided by an embodiment of the present application;
[0049] Figure 4 It is a schematic structural diagram of a terminal provided by an embodiment of the present application. Specific embodiments
[0050] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present application.
[0051] An embodiment of the present application provides an application login method, device, electronic device, and storage medium.
[0052] Among them, the application login device can be specifically integrated in a server. The server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0053] Taking the case where the application login device is integrated in the server as an example, please refer to Figure 1a, as shown in the figure, the first terminal 10 can be a tablet computer, a laptop computer or a desktop computer, and the second terminal 20 can be a smart phone. When a user needs to log in to the first application A on the first terminal 10 through the second application B on the second terminal 20, after the user triggers an application login operation for the first application A on the first terminal 10, the server 30 generates a universal login graphic code corresponding to the first application A in response to the application login operation for the first application A on the first terminal 10, and sends the universal login graphic code to the first terminal 10 so that the first terminal 10 can display the universal login graphic code. The universal login graphic code can be used by multiple different second applications. Then, the user can call the camera of the second terminal 20 through the second application B on the second terminal 20 to complete the scanning of the universal login graphic code. The server receives the authorization page address information sent by the second terminal 20 in response to the scanning operation of the second application B on the second terminal 20 for the login image code. Then, the server 30 sends corresponding authorization page data to the second terminal according to the authorization page address information, so that the second terminal 20 can display an authorization page according to the authorization page data. When the user triggers an authorization operation for the authorization page, the server 30 obtains the login authorization information of the second application in response to the authorization operation for the authorization page. Finally, the server 30 triggers the login of the first application A using the account information of the second application B according to the login authorization information.
[0054] The application login method provided by this application first generates a universal login graphic code that can be used by multiple different second applications, and realizes the purpose of logging in to the first application using the account information of the second application in response to the scanning operation of the second application on the second terminal for the login image code. That is, before logging in to the first application, there is no need to pre-select the corresponding graphic code, thus simplifying the login process of logging in to the first application using the account information of the second application, and further improving the login efficiency.
[0055] The following will be described in detail respectively. It should be noted that the description order of the following embodiments does not limit the priority order of the embodiments.
[0056] An application login method includes: generating a universal login graphic code corresponding to the first application in response to an application login operation for the first application on the first terminal, and sending the universal login graphic code to the first terminal so that the first terminal can display the universal login graphic code; receiving the authorization page address information sent by the second terminal in response to the scanning operation of the second application on the second terminal for the login image code; sending corresponding authorization page data to the second terminal according to the authorization page address information so that the second terminal can display an authorization page according to the authorization page data; obtaining the login authorization information of the second application in response to the authorization operation for the authorization page; and triggering the login of the first application using the account information of the second application according to the login authorization information.
[0057] Please refer toFigure 1b , Figure 1b This is a schematic flowchart of the application login method provided by the embodiment of the present application. The specific process of this application login method can be as follows:
[0058] 101. In response to an application login operation for a first application on a first terminal, generate a general login graphic code corresponding to the first application, and send the general login graphic code to the first terminal so that the first terminal can display the general login graphic code.
[0059] Among them, the general login graphic code can be used by multiple different second applications. The first terminal can be a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc. The second terminal can be a smart phone, but is not limited thereto. The first terminal and the server can be directly or indirectly connected through wired or wireless communication means. Similarly, the second terminal and the server can also be directly or indirectly connected through wired or wireless communication means. This application does not make any restrictions here.
[0060] Specifically, the first terminal installs the first application. The first terminal can display an application selection page including the first application. When the user triggers an application login operation for the first application, such as clicking on the icon of the first application, in response to the application login operation for the first application on the first terminal, generate a general login graphic code corresponding to the first application. Among them, the general login graphic code can be a two-dimensional code. The two-dimensional code is also called a 2D bar code. The two-dimensional code (2-dimensional bar code) is a graph composed of certain specific geometric figures distributed regularly in a plane (two-dimensional direction), black and white, and recording data symbol information; in the code compilation, it cleverly uses the concept of the "0" and "1" bit streams that form the internal logic basis of the computer, uses several geometric shapes corresponding to binary to represent alphanumeric information, and realizes automatic information processing through an image input device or an optoelectronic scanning device: It has some commonalities with bar code technology: each code system has its specific character set; each character occupies a certain width; it has a certain verification function, etc. At the same time, it also has the function of automatically recognizing information in different rows and processing the rotation change points of the graph. The common two-dimensional code is the QR Code, and the full name of QR is Quick Response.
[0061] 102. In response to a scanning operation of the general login graphic code by a second application on a second terminal, receive the authorization page address information sent by the second terminal.
[0062] For example, specifically, the second terminal can display the interface corresponding to the second application, and a graphic code recognition trigger button can be displayed on this interface. The user can click on trigger buttons such as "Scan" or "Recognize Graphic Code" to trigger a graphic code recognition request. Then, the camera of the second terminal is called, and the general login graphic code is scanned and recognized through the called camera to obtain the identifier of the general login graphic code, completing the scanning of the general login graphic code. The second terminal generates a corresponding authorization page based on the obtained identifier. Among them, the authorization page can be an H5 page. H5 is the fifth-generation HyperText Markup Language (HTML5). HTML5 is the specification of the core language HTML in the Web. The content that users see when browsing the web by any means was originally in HTML format and was converted into recognizable information through some technical processing in the browser. HTML is called HyperText Markup Language and is a markup language. It includes a series of tags. Through these tags, the document formats on the network can be unified, and the scattered Internet resources can be connected into a logical whole. HTML text is descriptive text composed of HTML commands. HTML commands can describe text, graphics, animations, sounds, tables, and links, etc.
[0063] Hypertext is a way of organizing information. It associates the text, charts, and other information media in the text through hyperlink methods. These interrelated information media may be in the same text, or in other files, or files on a computer located far away geographically. This way of organizing information connects information resources located in different positions randomly, providing convenience for people to search and retrieve information.
[0064] It should be noted that, in order to improve the security of application login, the general login graphic code can be updated periodically. For example, the general login graphic code can be updated according to the generation time of the general login graphic code and the operation time of the scanning operation to improve the security of application login. That is, optionally, in some embodiments, the step of "responding to the scanning operation of the login image code by the second application on the second terminal and receiving the authorization page address information sent by the second terminal" can specifically include:
[0065] (11) Detect whether the time difference between the generation time of the general login graphic code and the operation time of the scanning operation is less than a preset value;
[0066] (12) When it is detected that the time difference between the generation time of the general login graphic and the operation time of the scanning operation is less than the preset value, then receive the authorization page address information sent by the second terminal;
[0067] When the time difference between the generation time of the general login graphic and the operation time of the scanning operation is greater than or equal to a preset value, the general login graphic code is updated. In response to the scanning operation of the updated login image code by the second application on the second terminal, the authorization page address information sent by the second terminal is received.
[0068] For example, if the generation time of the general login graphic code is 20:00, the operation time is 20:01, and the preset value is 2 minutes, then the general login graphic code is updated. Subsequently, the updated general login graphic code is sent to the first terminal so that the first terminal can display the updated general login graphic code. Then, in response to the scanning operation of the updated login image code by the second application on the second terminal, the authorization page address information sent by the second terminal is received. For specific details, please refer to the previous embodiments and will not be elaborated here.
[0069] 103. Send corresponding authorization page data to the second terminal according to the authorization page address information, so that the second terminal can display the authorization page according to the authorization page data.
[0070] Among them, the authorization page address information carries the Internet protocol address and network protocol address of the authorization page. It can be understood that the authorization page address information in this application refers to the Uniform Resource Locator (URL). URL is a representation method used on the World Wide Web service program of the Internet to specify the location of information. A URL is composed of a string of characters, which can be letters, numbers, and special symbols. A URL can be represented by an octet sequence encoded in a character set. The interpretation of a URL depends only on the characteristics of the characters used. In most URL schemes, character sequences in different parts of the URL are used to represent the octet sequences used in the Internet protocol.
[0071] It should be noted that since the communication method with the second terminal is connected through the network, in this application, different connection methods correspond to different authorization modes. That is, optionally, in some embodiments, the step of "sending corresponding authorization page data to the second terminal according to the authorization page address information" may specifically include:
[0072] (21) Obtain the network connection information of the second terminal;
[0073] (22) Generate an authorization mode corresponding to the network connection information;
[0074] (23) Send corresponding authorization page data to the second terminal according to the authorization page address information and the authorization mode.
[0075] Among them, the network connection information may carry information such as the network connection method, the uplink rate and the downlink rate for network connection. The network connection method may include a wireless network connection method and a local network connection method. The wireless network connection method further includes a local network connection method and an external network connection method. In this application, the local network connection method corresponds to the first authorization mode, and the external network connection method corresponds to the second authorization mode. That is, optionally, in some embodiments, the step of "generating an authorization mode corresponding to the network connection information" may specifically include:
[0076] (31) When the network connection information indicates that the network connection method of the second terminal is a local network connection, determine the authorization mode as the first authorization mode;
[0077] (32) When the network connection information indicates that the network connection method of the second terminal is an external network connection, determine the authorization mode as the second authorization mode.
[0078] It should be noted that the local network connection method refers to the way the second terminal uses data connection, while the external network connection method refers to the way the second terminal uses WiFi connection.
[0079] That is to say, sending the corresponding authorization page data to the second terminal according to the authorization page address information and the authorization mode may include the following two situations;
[0080] Situation 1: Send the corresponding authorization page data to the second terminal according to the authorization page address information and the first authorization mode. For example, specifically, since the local network connection method is more secure than the external network connection method, the page address of the authorization page can be extracted from the authorization page address information, and then, generate the authorization page data corresponding to the user agent of the page address, and send the authorization page data to the second terminal. That is, optionally, in some embodiments, the step of "sending the corresponding authorization page data to the second terminal according to the authorization page address information and the first authorization mode" may specifically include:
[0081] (41) Extract the page address of the authorization page from the authorization page address information;
[0082] (42) Generate the authorization page data corresponding to the user agent of the page address, and send the authorization page data to the second terminal.
[0083] Among them, the User Agent (UA) is a special string header that enables the server to identify the operating system and version used by the terminal, the CPU type, the browser and version, the browser rendering engine, the browser language, and browser plugins. Specifically, the corresponding user agent can be extracted from the page address, and then, based on the user agent, the operating system and version, the CPU type, and the browser rendering engine used by the second terminal can be determined, thereby generating corresponding authorization page data.
[0084] Case 2: Send corresponding authorization page data to the second terminal according to the authorization page address information and the second authorization mode. For external network connection methods, such as the WiFi connection method, in most scenarios, there is no encryption or the encryption password is relatively simple. Therefore, it is necessary to detect the security of the external network connection method. Then, when the detection result meets the preset conditions, send the corresponding authorization page data to the second terminal according to the authorization page address information and the second authorization mode. For example, if the external network connection method is set with an encryption key, it is determined that the detection result meets the preset conditions, and the corresponding authorization page data is sent to the second terminal according to the authorization page address information and the second authorization mode. To further improve the security of application login, in this application, the current security level can be determined based on the network connection information, and then, based on the determined security level and the authorization page address information, send the corresponding authorization page data to the second terminal. That is, optionally, the step of "sending corresponding authorization page data to the second terminal according to the authorization page address information and the second authorization mode" may specifically include:
[0085] (51) Determine the current security level according to the network connection information;
[0086] (52) Select the verification method corresponding to the current security level from the preset verification method set, and send the selected verification method to the second terminal to generate a network verification page on the second terminal;
[0087] (53) In response to the verification operation for the network verification page, extract the page address of the authorization page from the authorization page address information;
[0088] (54) Generate authorization page data corresponding to the user agent of the page address, and send the authorization page data to the second terminal.
[0089] For example, the security levels can be divided into three levels: A, B, and C. Among them, the security level corresponding to the external network connection method without a password is C, the security level corresponding to the external network connection method with a password and a relatively low password complexity is B, and the security level corresponding to the external network connection method with a password and a relatively high password complexity is A. The verification method corresponding to level A is: verifying the key of the external network connection method; the verification method corresponding to level B is: verifying the key of the external network connection method and detecting the current network environment, such as whether there is a virus; the verification method corresponding to level C is: determining whether a firewall is set, verifying the key of the external network connection method, and detecting the current network environment, such as whether there is a virus. Of course, the verification method can be adjusted according to the actual situation. This is only an example here and does not limit this application. Subsequently, in response to a verification operation on the network verification page, the page address of the authorization page is extracted from the authorization page address information, authorization page data corresponding to the user agent of the page address is generated, and the authorization page data is sent to the second terminal. For specific details, please refer to the previous embodiments and will not be elaborated here.
[0090] 104. In response to an authorization operation on the authorization page, obtain the login authorization information of the second application. Among them, when the user triggers an authorization operation on the authorization page, the login authorization information of the second application can be obtained based on the transmission protocol. The login authorization information can include the account information of the second application, the authorization credential, etc. Moreover, the login authorization information can also be saved to the local database. The local database can be an encrypted local database, which further improves the security of application login.
[0091] 105. Trigger the login of the first application using the account information of the second application according to the login authorization information.
[0092] For example, the login authorization information can be sent to the background service corresponding to the first application to receive the login key sent by the background service corresponding to the first application. Then, use the login key to log in to the first application. That is, optionally, the step "Trigger the login of the first application using the account information of the second application according to the login authorization information" can specifically include:
[0093] (61) According to the login authorization information, obtain the authorization key corresponding to the authorization operation;
[0094] (62) Trigger the login of the first application using the account information of the second application based on the obtained key.
[0095] To ensure the security of user data, in this application, access to the application to be accessed can be based on the Open Authorization (OAuth) protocol. The architecture of the OAuth protocol is as Figure 1cAs shown below, the OAuth protocol will be introduced here. The OAuth protocol provides a secure, open, and simple standard for the authorization of user resources. The difference from previous authorization methods is that OAuth authorization does not allow third-party applications (applications to be accessed) to access the user's account information (such as username and password), that is, third-party applications can apply for authorization to obtain the user's resources without using the user's username and password.
[0096] This application provides an application login method. First, in response to an application login operation for a first application on a first terminal, a general login graphic code corresponding to the first application is generated and sent to the first terminal so that the first terminal can display the general login graphic code. Then, in response to a scanning operation of the general login graphic code by a second application on a second terminal, the authorization page address information sent by the second terminal is received. Next, according to the authorization page address information, the corresponding authorization page data is sent to the second terminal so that the second terminal can display the authorization page according to the authorization page data. Then, in response to an authorization operation for the authorization page, the login authorization information of the second application is obtained. Finally, according to the login authorization information, the first application is logged in using the account information of the second application. The application login method provided by this application first generates a general login graphic code that can be used by multiple different second applications. In response to a scanning operation of the login graphic code by a second application on a second terminal, the purpose of logging in to the first application using the account information of the second application is achieved, that is, before logging in to the first application, there is no need to pre-select the corresponding graphic code, thus simplifying the login process of logging in to the first application using the account information of the second application, and further improving the login efficiency.
[0097] According to the method described in the embodiment, it will be further described in detail with examples below.
[0098] In this embodiment, it will be described by taking the application login device being specifically integrated in the server as an example.
[0099] Please refer to Figure 2a , an application login method, and the specific process can be as follows:
[0100] 201. The server responds to an application login operation for a first application on a first terminal, generates a general login graphic code corresponding to the first application, and sends the general login graphic code to the first terminal so that the first terminal can display the general login graphic code.
[0101] Among them, the general login graphic code can be used by multiple different second applications. The first terminal can be a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc., and the second terminal can be a smart phone, but is not limited thereto. The first terminal and the server can be directly or indirectly connected through wired or wireless communication means. Similarly, the second terminal and the server can also be directly or indirectly connected through wired or wireless communication means, which is not limited in this application.
[0102] For example, specifically, when the user triggers an application login operation for the first application, such as clicking on the icon of the first application, in response to the application login operation for the first application on the first terminal, a general login graphic code corresponding to the first application is generated.
[0103] 202. The server responds to the scanning operation of the general login graphic code by the second application on the second terminal, and receives the authorization page address information sent by the second terminal.
[0104] For example, specifically, the second terminal scans and identifies the general login graphic code through the called camera to obtain the identifier of the general login graphic code, and then the server receives the authorization page address information sent by the second terminal.
[0105] 203. The server sends corresponding authorization page data to the second terminal according to the authorization page address information, so that the second terminal displays the authorization page according to the authorization page data.
[0106] For example, specifically, the server obtains the network connection information of the second terminal, then the server generates an authorization mode corresponding to the network connection information, and finally the server sends corresponding authorization page data to the second terminal according to the authorization page address information and the authorization mode.
[0107] 204. The server responds to the authorization operation for the authorization page and obtains the login authorization information of the second application.
[0108] 205. The server triggers the login of the first application using the account information of the second application according to the login authorization information.
[0109] For example, the server can send the login authorization information to the background service corresponding to the first application to receive the login key sent by the background service corresponding to the first application, and then the server uses the login key to log in to the first application.
[0110] For the convenience of further understanding the application login system of this application, please refer to Figure 2b, taking the example of logging in to the application on the Personal Computer (PC) side using the account information of the application on the mobile device. First, the user opens the PC-side application. The PC-side application obtains a QR code from the backend service and displays the QR code. As Figure 2c shown, the user uses the third-party platform application on the mobile device (i.e., the second application) to scan the QR code and jumps to the login address set by the backend service in the QR code. Then, the backend service returns the login authorization page corresponding to the third-party platform according to the user agent when the third-party platform requests the login address. Next, the user clicks the authorization login on the login authorization page. Then, the third-party platform receives the user authorization login information and requests the backend service where the PC-side application appears to save the secret key authorized by the user. Finally, the backend obtains the user information of the third-party platform through the secret key authorized by the user
[0111] As can be seen from the above, in response to the application login operation for the first application on the first terminal, the server of the present application generates a general login graphic code corresponding to the first application and then sends the general login graphic code to the first terminal so that the first terminal can display the general login graphic code. Then, in response to the scanning operation of the general login graphic code by the second application on the second terminal, the server receives the authorization page address information sent by the second terminal. Next, the server sends the corresponding authorization page data to the second terminal according to the authorization page address information so that the second terminal can display the authorization page according to the authorization page data. Then, in response to the authorization operation for the authorization page, the server obtains the login authorization information of the second application. Finally, the server triggers logging in to the first application using the account information of the second application according to the login authorization information. The server provided by the present application first generates a general login graphic code that can be used by multiple different second applications. In response to the scanning operation of the login graphic code by the second application on the second terminal, it realizes the purpose of logging in to the first application using the account information of the second application. That is, before logging in to the first application, there is no need to pre-select the corresponding graphic code, thus simplifying the login process of logging in to the first application using the account information of the second application, and further improving the login efficiency.
[0112] To facilitate better implementation of the application login method in the embodiments of the present application, the embodiments of the present application also provide an application login device (referred to as the login device) based on the above. The meanings of the nouns are the same as those in the above application login method, and the specific implementation details can refer to the description in the method embodiments.
[0113] Please refer to Figure 3 , Figure 3 , which is a schematic structural diagram of the application login device provided by the embodiments of the present application. The processing device may include a generation module 301, a reception module 302, a transmission module 303, an acquisition module 304, and a login module 305, specifically as follows:
[0114] A generation module 301, configured to generate a general login graphic code corresponding to a first application in response to an application login operation for the first application on a first terminal, and send the general login graphic code to the first terminal, so that the first terminal displays the general login graphic code.
[0115] Wherein, the general login graphic code can be used by multiple different second applications. The first terminal can be a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc., and the second terminal can be a smart phone, but is not limited thereto.
[0116] A receiving module 302, configured to receive authorization page address information sent by a second terminal in response to a scanning operation of a second application on the second terminal on a login image code.
[0117] For example, specifically, the second terminal can display an interface corresponding to the second application. A graphic code recognition trigger key can be displayed on the interface. The user can click trigger keys such as "Scan QR Code" or "Recognize Graphic Code" to trigger a graphic code recognition request. Then, the camera of the second terminal is called, and the general login graphic code is scanned and recognized by the called camera to obtain an identifier of the general login graphic code, completing the scanning of the general login graphic code. The second terminal generates a corresponding authorization page according to the obtained identifier. Then, the receiving module 302 receives the authorization page address information sent by the second terminal.
[0118] Optionally, in some embodiments, the receiving module 302 can specifically be configured to: detect whether a time difference between a generation time of the general login graphic code and an operation time of the scanning operation is less than a preset value; when it is detected that the time difference between the generation time of the general login graphic and the operation time of the scanning operation is less than the preset value, then receive the authorization page address information sent by the second terminal; when it is detected that the time difference between the generation time of the general login graphic and the operation time of the scanning operation is greater than or equal to the preset value, then update the general login graphic code, and in response to a scanning operation of the second application on the second terminal on the updated login image code, receive the authorization page address information sent by the second terminal.
[0119] A sending module 303, configured to send corresponding authorization page data to the second terminal according to the authorization page address information, so that the second terminal displays an authorization page according to the authorization page data.
[0120] For example, specifically, the sending module 303 can obtain network connection information of the second terminal. Then, the sending module 303 generates an authorization mode corresponding to the network connection information. Finally, the sending module 303 sends corresponding authorization page data to the second terminal according to the authorization page address information and the authorization mode, that is, optionally, in some embodiments, the sending module 303 can specifically include:
[0121] An acquisition unit, configured to acquire the network connection information of the second terminal;
[0122] A generation unit, configured to generate an authorization mode corresponding to the network connection information;
[0123] A sending unit, configured to send corresponding authorization page data to the second terminal according to the authorization page address information and the authorization mode.
[0124] Optionally, in some embodiments of the present application, the generation unit may specifically be configured to: when the network connection information indicates that the network connection mode of the second terminal is a local network connection, determine the authorization mode as the first authorization mode; when the network connection information indicates that the network connection mode of the second terminal is an external network connection, determine the authorization mode as the second authorization mode;
[0125] The sending unit may specifically be configured to: send corresponding authorization page data to the second terminal according to the authorization page address information and the first authorization mode, or send corresponding authorization page data to the second terminal according to the authorization page address information and the second authorization mode.
[0126] Optionally, in some embodiments, the sending unit may specifically include:
[0127] A first extraction subunit, configured to extract the page address of the authorization page from the authorization page address information;
[0128] A first sending subunit, configured to generate authorization page data corresponding to the user agent of the page address, and send the authorization page data to the second terminal.
[0129] Optionally, in some embodiments, the sending unit may specifically include:
[0130] A determination subunit, configured to determine the current security level according to the network connection information;
[0131] A selection unit, configured to select a verification method corresponding to the current security level from a preset set of verification methods, and send the selected verification method to the second terminal, so as to generate a network verification page on the second terminal;
[0132] A second extraction subunit, configured to, in response to a verification operation on the network verification page, extract the page address of the authorization page from the authorization page address information;
[0133] A second sending subunit, configured to generate authorization page data corresponding to the user agent of the page address, and send the authorization page data to the second terminal.
[0134] An obtaining module 304, configured to obtain the login authorization information of a second application in response to an authorization operation for an authorization page.
[0135] Specifically, when the user triggers an authorization operation for the authorization page, the obtaining module 304 can obtain the login authorization information of the second application based on the transmission protocol. The login authorization information may include the account information of the second application and the authorization certificate, etc. Moreover, the login authorization information can also be saved to a local database.
[0136] A login module 305, configured to trigger logging in to the first application using the account information of the second application according to the login authorization information.
[0137] For example, the login module 305 can send the login authorization information to the background service corresponding to the first application to receive the login key sent by the background service corresponding to the first application. Then, the login module 305 uses the login key to log in to the first application. That is, optionally, in some embodiments, the login module 305 can specifically be used to: obtain the authorization key corresponding to the authorization operation according to the login authorization information, and trigger logging in to the first application using the account information of the second application based on the obtained key.
[0138] After the generation module 301 of the present application generates the general login graphic code corresponding to the first application in response to the application login operation for the first application on the first terminal, it sends the general login graphic code to the first terminal so that the first terminal can display the general login graphic code. Then, the receiving module 302 receives the authorization page address information sent by the second terminal in response to the scanning operation of the general login graphic code by the second application on the second terminal. Next, the sending module 303 sends the corresponding authorization page data to the second terminal according to the authorization page address information so that the second terminal can display the authorization page according to the authorization page data. Then, the obtaining module 304 obtains the login authorization information of the second application in response to the authorization operation for the authorization page. Finally, the login module 305 triggers logging in to the first application using the account information of the second application according to the login authorization information. The application login device provided by the present application first generates a general login graphic code that can be used by multiple different second applications, and in response to the scanning operation of the login graphic code by the second application on the second terminal, realizes the purpose of logging in to the first application using the account information of the second application. That is, before logging in to the first application, there is no need to pre-select the corresponding graphic code, thereby simplifying the login process of logging in to the first application using the account information of the second application, and further improving the login efficiency.
[0139] In addition, the present application also provides an electronic device, as Figure 4 shown, which shows the structural schematic diagram of the electronic device involved in the present application. Specifically:
[0140] The electronic device may include components such as a processor 401 with one or more processing cores, a memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art can understand that Figure 4 the structure of the electronic device shown in
[0141] does not limit the electronic device, and it may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements. Among them:
[0142] The processor 401 is the control center of the electronic device, connecting various parts of the entire electronic device through various interfaces and circuits. By running or executing software programs and / or modules stored in the memory 402, and by calling the data stored in the memory 402, it executes various functions of the electronic device and processes data, thereby exercising overall control over the electronic device. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 401 either.
[0143] The electronic device also includes a power supply 403 that powers each component. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, thereby implementing functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 403 may also include any components such as one or more DC or AC power supplies, a recharge system, a power failure detection circuit, a power converter or inverter, and a power status indicator.
[0144] The electronic device may further include an input unit 404, which may be configured to receive input numerical or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
[0145] Although not shown, the electronic device may further include a display unit and the like, which will not be elaborated here. Specifically, in this embodiment, the processor 401 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the application programs stored in the memory 402 to implement various functions as follows:
[0146] In response to an application login operation for a first application on a first terminal, generate a universal login graphic code corresponding to the first application, and send the universal login graphic code to the first terminal so that the first terminal displays the universal login graphic code. In response to a scan operation of the login image code by a second application on a second terminal, receive the authorization page address information sent by the second terminal, and send corresponding authorization page data to the second terminal according to the authorization page address information, so that the second terminal displays an authorization page according to the authorization page data. In response to an authorization operation for the authorization page, obtain the login authorization information of the second application, and trigger logging in to the first application using the account information of the second application according to the login authorization information.
[0147] In this embodiment, first, in response to an application login operation for a first application on a first terminal, generate a universal login graphic code corresponding to the first application, and send the universal login graphic code to the first terminal so that the first terminal displays the universal login graphic code. Then, in response to a scan operation of the universal login graphic code by a second application on a second terminal, receive the authorization page address information sent by the second terminal. Next, send corresponding authorization page data to the second terminal according to the authorization page address information so that the second terminal displays an authorization page according to the authorization page data. Then, in response to an authorization operation for the authorization page, obtain the login authorization information of the second application. Finally, trigger logging in to the first application using the account information of the second application according to the login authorization information. In this application, first generate a universal login graphic code that can be used by multiple different second applications. In response to a scan operation of the login image code by a second application on a second terminal, achieve the purpose of logging in to the first application using the account information of the second application, that is, before logging in to the first application, there is no need to pre-select the corresponding graphic code, thus simplifying the login process of logging in to the first application using the account information of the second application, and further improving the login efficiency.
[0148] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions or by controlling relevant hardware through instructions. The instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0149] For this reason, an embodiment of the present application provides a storage medium storing multiple instructions that can be loaded by a processor to execute the steps in any of the application login methods provided by the embodiments of the present application. For example, the instructions can perform the following steps:
[0150] In response to an application login operation for a first application on a first terminal, generate a general login graphic code corresponding to the first application, and send the general login graphic code to the first terminal so that the first terminal displays the general login graphic code. In response to a scan operation of a login image code by a second application on a second terminal, receive the authorization page address information sent by the second terminal, and send corresponding authorization page data to the second terminal according to the authorization page address information, so that the second terminal displays an authorization page according to the authorization page data. In response to an authorization operation for the authorization page, obtain the login authorization information of the second application, and trigger logging in to the first application using the account information of the second application according to the login authorization information.
[0151] For the specific implementation of each of the above operations, reference can be made to the previous embodiments, which will not be elaborated here.
[0152] Among them, the storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.
[0153] Since the instructions stored in the storage medium can execute the steps in any of the application login methods provided by the embodiments of the present application, the beneficial effects that can be achieved by any of the data processing detection methods provided by the embodiments of the present application can be realized. For details, reference can be made to the previous embodiments, which will not be elaborated here.
[0154] The above has introduced in detail an application login method, device, terminal, and storage medium provided by the embodiments of the present application. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present application.
Claims
1. An application login method, characterized in that, Including: In response to an application login operation for a first application on a first terminal, generating a universal login graphic code corresponding to the first application, and sending the universal login graphic code to the first terminal so that the first terminal displays the universal login graphic code, where the universal login graphic code can be used by multiple different second applications; In response to a scanning operation of the second application on the second terminal on the universal login graphic code, receiving authorization page address information sent by the second terminal; Sending corresponding authorization page data to the second terminal according to the authorization page address information, so that the second terminal displays an authorization page according to the authorization page data; In response to an authorization operation on the authorization page, obtaining login authorization information of the second application; Triggering to log in to the first application using the account information of the second application according to the login authorization information; Among them, the sending corresponding authorization page data to the second terminal according to the authorization page address information includes: Obtaining network connection information of the second terminal; Generating an authorization mode corresponding to the network connection information; Sending corresponding authorization page data to the second terminal according to the authorization page address information and the authorization mode; And, the generating an authorization mode corresponding to the network connection information includes: When the network connection information indicates that the network connection mode of the second terminal is a local network connection, determining the authorization mode as a first authorization mode; When the network connection information indicates that the network connection mode of the second terminal is an external network connection, determining the authorization mode as a second authorization mode; The sending corresponding authorization page data to the second terminal according to the authorization page address information and the authorization mode includes: sending corresponding authorization page data to the second terminal according to the authorization page address information and the first authorization mode, or sending corresponding authorization page data to the second terminal according to the authorization page address information and the second authorization mode; Among them, the sending corresponding authorization page data to the second terminal according to the authorization page address information and the first authorization mode includes: Extracting the page address of the authorization page from the authorization page address information; Generating authorization page data corresponding to the user agent of the page address, and sending the authorization page data to the second terminal; The sending corresponding authorization page data to the second terminal according to the authorization page address information and the second authorization mode includes: Determining the current security level according to the network connection information; Selecting a verification method corresponding to the current security level from a preset set of verification methods, and sending the selected verification method to the second terminal so as to generate a network verification page on the second terminal; In response to a verification operation on the network verification page, extracting the page address of the authorization page from the authorization page address information; Generating authorization page data corresponding to the user agent of the page address, and sending the authorization page data to the second terminal.
2. The method according to claim 1, characterized in that, The triggering to log in to the first application using the account information of the second application according to the login authorization information includes: Obtain the authorization key corresponding to the authorization operation according to the login authorization information; Based on the obtained key, trigger the login to the first application using the account information of the second application.
3. The method according to claim 1, wherein In response to the scanning operation of the general login graphic code by the second application on the second terminal, receive the authorization page address information sent by the second terminal, including: Detect whether the time difference between the generation time of the general login graphic code and the operation time of the scanning operation is less than a preset value; When it is detected that the time difference between the generation time of the general login graphic code and the operation time of the scanning operation is less than the preset value, receive the authorization page address information sent by the second terminal; When it is detected that the time difference between the generation time of the general login graphic code and the operation time of the scanning operation is greater than or equal to the preset value, update the general login graphic code, and in response to the scanning operation of the updated general login graphic code by the second application on the second terminal, receive the authorization page address information sent by the second terminal.
4. An application login device, characterized in that, Including: A generation module, configured to generate a general login graphic code corresponding to the first application in response to an application login operation for the first application on the first terminal, and send the general login graphic code to the first terminal so that the first terminal displays the general login graphic code, where the general login graphic code can be used by multiple different second applications; A receiving module, configured to receive the authorization page address information sent by the second terminal in response to the scanning operation of the general login graphic code by the second application on the second terminal; A sending module, configured to send corresponding authorization page data to the second terminal according to the authorization page address information, so that the second terminal displays an authorization page according to the authorization page data; An obtaining module, configured to obtain the login authorization information of the second application in response to an authorization operation for the authorization page; A login module, configured to trigger the login to the first application using the account information of the second application according to the login authorization information; Among them, the sending module includes: An obtaining unit, configured to obtain the network connection information of the second terminal; A generating unit, configured to generate an authorization mode corresponding to the network connection information; A sending unit, configured to send corresponding authorization page data to the second terminal according to the authorization page address information and the authorization mode; And, the generating unit is specifically configured to: When the network connection information indicates that the network connection mode of the second terminal is a local network connection, determine the authorization mode as the first authorization mode; When the network connection information indicates that the network connection mode of the second terminal is an external network connection, determine the authorization mode as the second authorization mode; The sending unit is specifically configured to: send corresponding authorization page data to the second terminal according to the authorization page address information and the first authorization mode, or send corresponding authorization page data to the second terminal according to the authorization page address information and the second authorization mode; Among them, sending the corresponding authorization page data to the second terminal according to the authorization page address information and the first authorization mode includes: Extract the page address of the authorization page from the authorization page address information; Generate authorization page data corresponding to the user agent of the page address, and send the authorization page data to the second terminal; The sending of the corresponding authorization page data to the second terminal according to the authorization page address information and the second authorization mode includes: Determine the current security level according to the network connection information; Select a verification method corresponding to the current security level from a preset set of verification methods, and send the selected verification method to the second terminal so as to generate a network verification page on the second terminal; In response to a verification operation on the network verification page, extract the page address of the authorization page from the authorization page address information; Generate authorization page data corresponding to the user agent of the page address, and send the authorization page data to the second terminal.
5. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein, When the processor executes the program, the steps of the application login method according to any one of claims 1-3 are implemented.
6. A computer-readable storage medium, characterized in that, A computer program is stored thereon, wherein when the computer program is executed by a processor, the steps of the application login method according to any one of claims 1-3 are implemented.
Citation Information
Patent Citations
Method and devices for quickly logging into webpage application
CN107066491A
Third party authorized login method and system
CN108632291A
Login request processing method, mobile equipment and intelligent hardware device
CN111756669A