Login method and device, storage medium and electronic equipment

By entering login credentials on the web page to obtain the access token and automatically log in to the client application, the problem of users in the existing technology that repeatedly enter passwords is solved, and a more convenient Internet service login experience is achieved.

CN119483986APending Publication Date: 2025-02-18杭州三六零亿方智能有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310975489.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-03
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

In the prior art, when a user logs in on a website and then uses the client application, he needs to enter a password again, resulting in inconvenient user experience.

Method used

Obtain the access token through the login credentials entered by the user on the web page, and automatically pull up the client application based on the token to log in, avoiding the user from repeatedly entering the login credentials.

Benefits of technology

It improves the convenience of Internet service login, reduces the number of times users enter passwords, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119483986A_ABST
    Figure CN119483986A_ABST
Patent Text Reader

Abstract

The invention discloses a login method and device, a storage medium and electronic equipment, and the method comprises the steps that a webpage application program obtains a login credential input by a user, sends a login request to a server based on the login credential, receives verification success information and an access token sent by the server, and sends the verification success information and the access token to the server; the webpage application program sends the access token to the client application program, the client application program is pulled up based on the access token and instructed to conduct login processing, and the client application program conducts starting processing and login processing based on the access token. By adopting the method and the device, the access token is obtained based on the login credential input on the webpage by the user, the client application program is pulled up according to the access token, and automatic login is realized, so that the user is prevented from repeatedly inputting the login credential, the client application program can be directly adopted to use the internet service, and the convenience of internet service login is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a login method, device, storage medium and electronic device. Background Art

[0002] Developers can develop Internet services with various functions for users to use, such as network cloud storage services, social platform services, etc. Users can use mobile phones, computers and other terminal devices to log in and use the corresponding Internet services. In the prior art, Internet services can often be logged in using the client application installed in the terminal device, and then the Internet service can be used in the client application. It can also be logged in based on the corresponding website of the Internet service, and the Internet service can be used in the web page. However, in the prior art, when logging in to the website and then using the client application, it is necessary to enter the password again to log in. When logging in to the client application and then using the website, it is also necessary to enter the password again to log in, which brings inconvenience to the user's Internet service process. It is necessary to provide a more convenient Internet service login method. Summary of the invention

[0003] The embodiments of the present application provide a login method, device, storage medium and electronic device, which can obtain an access token based on the login credentials entered by the user on the web page, and launch the client application and automatically log in according to the access token, thereby avoiding the user from repeatedly entering the login credentials, and directly using the client application to use the Internet service, thereby improving the convenience of Internet service login. The technical solution is as follows:

[0004] In a first aspect, an embodiment of the present application provides a login method, characterized in that the method includes:

[0005] Obtaining login credentials input by the user, and sending a login request to the server based on the login credentials;

[0006] Receiving verification success information and access token sent by the server;

[0007] The client application is launched based on the access token, and the client application is instructed to perform a login process.

[0008] In a second aspect, an embodiment of the present application provides a login method, characterized in that the method includes:

[0009] Receiving an access token sent by a web application, wherein the access token is obtained by the web application based on login credentials input by a user;

[0010] A startup process and a login process are performed based on the access token.

[0011] In a third aspect, an embodiment of the present application provides a web page login device, characterized in that the device includes:

[0012] A login request module, used to obtain the login credentials input by the user and send a login request to the server based on the login credentials;

[0013] A token acquisition module, used to receive the verification success information and access token sent by the server;

[0014] The token sending module is used to launch a client application based on the access token and instruct the client application to perform a login process.

[0015] In a fourth aspect, an embodiment of the present application provides a client login device, characterized in that the device includes:

[0016] A token receiving module, used to receive an access token sent by a web application, wherein the access token is obtained by the web application based on login credentials input by a user;

[0017] The self-login module is used to perform startup processing and login processing based on the access token.

[0018] In a fifth aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.

[0019] In a sixth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.

[0020] In one or more embodiments of the present application, in the embodiments of the present application, the web application obtains the login credentials entered by the user, sends a login request to the server based on the login credentials, receives the verification success information and access token sent by the server, the web application sends the access token to the client application, pulls up the client application based on the access token and instructs the client application to perform login processing, and the client application performs startup processing and login processing based on the access token. By obtaining the access token based on the login credentials entered by the user on the web page, and pulling up the client application and automatically logging in based on the access token, the user is prevented from repeatedly entering the login credentials, and the client application can be used directly to use the Internet service, which improves the convenience of Internet service login. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0022] Figure 1 This is an example schematic diagram of an Internet service login provided in an embodiment of the present application;

[0023] Figure 2 It is a flowchart of a login method provided in an embodiment of the present application;

[0024] Figure 3 It is a flowchart of a login method provided in an embodiment of the present application;

[0025] Figure 4 This is an example schematic diagram of an analysis process provided by an embodiment of the present application;

[0026] Figure 5 This is a schematic diagram of a process of logging in using a client application provided in an embodiment of the present application;

[0027] Figure 6 It is a flowchart of a login method provided in an embodiment of the present application;

[0028] Figure 7 It is a flowchart of a login method provided in an embodiment of the present application;

[0029] Figure 8 It is a flowchart of a login method provided in an embodiment of the present application;

[0030] Fig. 9 It is a structural diagram of a web page login device provided in an embodiment of the present application;

[0031] Fig.10 It is a structural diagram of a web page login device provided in an embodiment of the present application;

[0032] Fig.11 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;

[0033] Fig.12 It is a structural diagram of a client login device provided in an embodiment of the present application;

[0034] Fig.13 It is a structural diagram of a client login device provided in an embodiment of the present application;

[0035] Fig.14It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0036] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0037] Users can log in to Internet services through terminal devices, and use Internet services through terminal devices. Terminal devices can be electronic devices with Internet access functions such as mobile phones, computers, tablets or car-mounted devices. Internet services are online services developed and provided by developers, such as cloud disk storage services, social platform services, and video online viewing services. For example, if a user logs in to the cloud disk storage service, the cloud disk storage service can be used through the terminal device. Users can upload data files in the local storage of the terminal device to the cloud disk and save them in the cloud server corresponding to the cloud disk, which plays a role in backing up data files and reducing local storage pressure. Data files can also be downloaded from the cloud disk to local storage for viewing. It is understandable that if you log in to the social platform service, you can use the social platform service to socialize with other users on the Internet. If you log in to the video online viewing service, you can use the video online viewing service to watch TV series and movies online through the terminal device. Please refer to Figure 1 , an example schematic diagram of an Internet service login is provided for an embodiment of the present application. A user can enter login credentials on a terminal device. The login credentials can be a login account and login password for the user's Internet service. The terminal device can send the login credentials entered by the user to a server. The server is used to perform identity authentication processing on the user based on the login credentials. The server can be an integrated server cluster or a cloud server, etc. The server stores at least one login credential. If the login credentials entered by the user match the login credentials in the server, it means that the user has passed the identity authentication processing. The server can send an access token to the terminal device, and the access token is used to allow the terminal device to use Internet services.

[0038] The terminal device may include a web application and a client application. A user may log in to an Internet service through the web application or the client application. The client application is an application running on the terminal device that can provide Internet services to the user. The client application corresponds to the server of the Internet service. The web application is an application used in the terminal device to retrieve, display and transmit World Wide Web (Web) information resources. For example, the web application may be a browser in the terminal device. The user may enter the login website URL of the Internet service in the web application, thereby viewing the login website of the Internet service through the web application, and log in and use the Internet service through the login website. The user may enter the login credentials on the login website of the Internet service of the web application. The web application may send the login credentials to the server and receive the access token sent by the server. Based on the access token, the user may continue to use the login website of the web application to use the Internet service. However, the user may choose to switch to the client application to use the Internet service for the purpose of Internet service experience, etc., then the web application may obtain the jump locator corresponding to the client application. The jump locator is a resource locator (Uniform Resource Locator, URL) that can instruct the client application to start and jump to a specific page. For example, the jump locator may be a Scheme URL, which is used to open another application or perform a specific operation in one application. The web application can send the jump locator and access token to the client application. The client application can automatically start the process after receiving the jump locator, and can directly log in to the Internet service after receiving the access token without the user having to re-enter the access credentials on the client application, thereby optimizing the steps for users to log in to the Internet service.

[0039] Among them, the web page login device can be a terminal device, or a web page application in the terminal device or a module that can implement the login method, and the client login device can be a terminal device, or a client application in the terminal device or a module that can implement the login method. It is understandable that the web page login device and the client login device can be in the same terminal device, the web page login device is used to control the web page application to implement the login method, and the client login device is used to control the client application to implement the login method. It is understandable that a user can hold multiple associated terminal devices at the same time, for example, can hold associated mobile phones, tablet computers and sports bracelets, etc., and data interaction can be achieved between associated terminal devices, so that users can choose a more convenient and more suitable terminal device for use in the current scene. Therefore, the web page login device and the client login device can also be two different but associated electronic devices, or modules used to implement the login method in two different but associated electronic devices.

[0040] The login method provided by this application is described in detail below in conjunction with specific embodiments.

[0041] See also Figure 2 , which is a flowchart of a login method provided by an embodiment of the present application. Figure 2 As shown, the embodiment of the present application describes the method in combination with a web application and a client application, and the method may include the following steps S101-S104.

[0042] S101, the web application obtains the login credentials input by the user, and sends a login request to the server based on the login credentials.

[0043] Specifically, the user can enter the login website URL of the Internet service in the web application, and the web application can open a window to display the login website. The user can enter the login credentials on the login website to log in to the Internet service, and can directly use the Internet service on the login website after successful login. If the web application detects that the user enters the login credentials in the login website, the web application can send a login request to the server based on the login credentials. The login request can be generated by the web application based on the login credentials, and is used to request the server to perform identity authentication processing on the user based on the login credentials, so as to log in to the Internet service.

[0044] S102, the web application receives the verification success information and access token sent by the server.

[0045] Specifically, after receiving the login request sent by the web application, the server will perform identity authentication on the login credentials. If the identity authentication is successful, the server will send a verification success message and an access token to the web application. The verification success message is used to inform the web application that the login credentials entered by the user have passed the identity authentication process, allowing the user to log in to the Internet service. After the web application receives the access token sent by the server, it can directly log in to the Internet service based on the access token, and the user can use the Internet service directly on the web page of the web application.

[0046] Among them, the login credentials are related to the identity authentication processing method. If the identity authentication processing is to verify the user's login account and login password, the login credentials entered by the user are the user's login account and login password. After receiving the login credentials, the server can verify whether the login account matches the login credentials stored in the server, and whether the login account and login password match. If the login account matches the login credentials stored in the server, and the login account and login password also match, it is confirmed that the identity authentication processing has passed, and the access token is sent to the server. It is understandable that if the identity authentication processing is face verification, the login credentials can be the user's face image or other picture data containing the face.

[0047] S103, the web application sends the access token to the client application.

[0048] Specifically, after the web application receives the access token, the user can directly use the login website on the web application to use the Internet service based on the access token, or can choose to switch to the client application to use the Internet service for the purpose of Internet service experience, etc. In order to avoid the user having to reopen the client application and enter the login credentials, the web application can launch the client application based on the access token, and only perform login processing on the client application based on the access token. For example, the web application can obtain a jump locator for the client application, and the jump locator can be a Scheme URL for launching the client application, and the jump locator is sent to the client application. The client application can independently perform the startup processing, that is, launch the client application, and then send the access token to the client application together, and the client application can use the access token to log in to the Internet service.

[0049] S104: The client application performs startup processing and login processing based on the access token.

[0050] Specifically, after the client application is successfully started based on the startup process, a login process can be performed based on the access token, and the user can directly log in to the Internet service without having to enter the login credentials again. The user can use the Internet service through the client application.

[0051] In the embodiment of the present application, the web application obtains the login credentials entered by the user, sends a login request to the server based on the login credentials, receives the verification success information and access token sent by the server, the web application sends the access token to the client application, pulls up the client application based on the access token and instructs the client application to perform the login process, and the client application performs the startup process and login process based on the access token. By obtaining the access token based on the login credentials entered by the user on the web page, and pulling up the client application and automatically logging in based on the access token, the user is prevented from repeatedly entering the login credentials, and the client application can be used directly to use the Internet service, which improves the convenience of logging in to the Internet service.

[0052] See also Figure 3 , which is a flowchart of a login method provided by an embodiment of the present application. Figure 3 As shown, the embodiment of the present application describes the method in combination with a web application and a client application, and the method may include the following steps S201-S210.

[0053] S201, the web application obtains the login credentials input by the user, and sends a login request to the server based on the login credentials.

[0054] Specifically, the user can enter the login website URL of the Internet service in the web application, and the web application can open a window to display the login website. The user can enter the login credentials on the login website to log in to the Internet service, and can directly use the Internet service on the login website after successful login. If the web application detects that the user enters the login credentials in the login website, the web application can send a login request to the server based on the login credentials. The login request can be generated by the web application based on the login credentials, and is used to request the server to perform identity authentication processing on the user based on the login credentials, so as to log in to the Internet service.

[0055] S202, the web application receives the verification success information and access token sent by the server.

[0056] Specifically, after the server receives the login request sent by the web application, the server will perform identity authentication on the login credentials. If the identity authentication is successful, the server will send a verification success message and an access token to the web application. The verification success message is used to inform the web application that the login credentials entered by the user have passed the identity authentication process, allowing the user to log in to the Internet service. After the web application receives the access token sent by the server, it can directly log in to the Internet service based on the access token, and the user can use the Internet service directly on the web page of the web application.

[0057] Optionally, the login credentials are related to the identity authentication processing method. If the identity authentication processing is to verify the user's login account and login password, the login credentials entered by the user are the user's login account and login password. After receiving the login credentials, the server can verify whether the login account matches the login credentials stored in the server, and whether the login account and login password match. If the login account matches the login credentials stored in the server, and the login account and login password also match, it is confirmed that the identity authentication processing has passed, and the access token is sent to the server. It is understandable that if the identity authentication processing is face verification, the login credentials can be the user's face image or other picture data containing the face.

[0058] Optionally, the server may have at least one login credential database, and the login credentials in different login credential databases are different, but they are all login credentials corresponding to the Internet service. It is understandable that a user can use a personal account to log in to the Internet service, and after logging in, the user can use the permissions and services for the personal account in the Internet service, and all personal accounts can be saved in a login credential database. Internet services can also have corporate accounts, and different companies can have corporate accounts for Internet services. Corporate accounts can allow multiple people to log in to use Internet services, or corporate accounts can have multiple sub-accounts, so that multiple people can log in to use Internet services. Login credentials corresponding to the same corporate account can be saved in the same login credential database, that is, all login credentials in the login credential database belong to the same company, and the login credentials in the login credential database can be set independently by the company. Users can also use corporate accounts or sub-accounts under corporate accounts to log in to Internet services, and after logging in, users can use permissions and services for the corporate account in Internet services.

[0059] Therefore, when the server performs identity authentication on the login credentials, it can compare the login credentials with the login credentials in each login credential database in turn until it is confirmed that there is a login credential matching the login credential in the login credential database, then the identity authentication process is passed. Conversely, if there is no login credential matching the login credential in all the login credential databases, the identity authentication process cannot be passed, and the server can send a login information error prompt to the web application.

[0060] S203, the web application outputs the start-end selection information to the user.

[0061] Specifically, after the web application receives the access token, the user can directly use the login website on the web application to use the Internet service based on the access token, or choose to switch to the client application to use the Internet service for the purpose of Internet service experience. The web application can output the start-end selection information to the user, and the start-end selection information is used to let the user choose whether to continue to use the web application to log in to the Internet service, or switch to the client application to log in and use the Internet service. The start-end selection information can be in the form of a pop-up window or a voice message.

[0062] S204: If the web application obtains the web application startup instruction sent by the user in response to the startup terminal selection information, a login process is performed based on the access token.

[0063] Specifically, if the user wants to continue to use the login website on the web application to use Internet services and does not need to switch to the client application, the user can select information on the startup end to send a web application startup instruction. The web application startup instruction indicates that the user instructs the web application to continue the login process. The web application can then use the received access token to perform the login process, log in to the Internet service, and allow the user to use the Internet service through the web application.

[0064] For example, the startup end selection information can be a pop-up window containing "web page" and "client" buttons. If the user clicks the "web page" button, it is equivalent to the user sending a web application startup instruction. The startup end selection information can also be a voice message such as "Please select a web page or a client to open the service". If the user replies to the voice message "Select a web page", it is equivalent to the user sending a web application startup instruction.

[0065] S205: If the webpage application obtains the client startup instruction sent by the user in response to the startup terminal selection information, the webpage application obtains a jump locator for the client application.

[0066] Specifically, if the user wants to switch to the client application to use Internet services and does not want to use the web application to use Internet services, the user can send a client startup instruction to the startup end selection information. The client startup instruction indicates that the user instructs the web application to pull up the client application. After the client receives the client startup instruction, it can obtain the jump locator for the client application. The jump locator can be a Scheme URL, which is used to start the client application. The jump locator is sent to the client application, and the client application can independently perform the startup process.

[0067] For example, the startup end selection information can be a pop-up window containing "web page" and "client" buttons. If the user clicks the "client" button, it is equivalent to the user sending a client startup instruction. The startup end selection information can also be a voice message such as "Please select a web page or client to open the service". If the user replies to the voice message "Select client", it is equivalent to the user sending a client startup instruction.

[0068] It is understandable that steps S204 and S205 are not steps to be executed successively. If the web application receives a web application startup instruction, S204 is executed and there is no need to execute subsequent steps, that is, there is no need to obtain a jump locator or send an access token to the client application. If the web application receives a client startup instruction, S205 and subsequent steps are executed.

[0069] S206, the web application concatenates the access token and the jump locator to obtain automatic login information.

[0070] Specifically, the web application can concatenate the access token and the jump locator, for example, the access token can be added after the jump locator, thereby generating automatic login information. The automatic login information can be used for automatic startup and automatic login of the client application.

[0071] S207, the web application sends the automatic login information to the client application.

[0072] Specifically, the web application may send automatic login information to the client application, and may instruct the client application to perform startup processing and login processing.

[0073] S208, the client application parses the automatic login information to obtain a jump locator and an access token.

[0074] Specifically, after receiving the automatic login information, the client application can parse the automatic login information to obtain a jump locator and an access token.

[0075] Optionally, the web application can concatenate the access token and the jump locator based on the identification symbol to obtain the automatic login information, that is, the web application can add the identification symbol at the end of the jump locator, and then add the access token after the identification symbol. The client application can also parse the automatic login information based on the identification symbol. Please refer to Figure 4 , which provides an example schematic diagram of parsing processing for an embodiment of the present application. The client application information can confirm the identification symbol in the automatic login information. The data before the identification symbol is the jump locator, and the data after the identification symbol is the access token.

[0076] S209: The client application performs startup processing based on the jump locator.

[0077] Specifically, the client application can be started based on the jump locator, and the client application can be pulled up to the front end of the terminal device, and the interface of the client application is displayed on the display screen of the terminal device.

[0078] S210: The client application performs a login process based on the access token.

[0079] Specifically, after the client application is successfully started, it can perform a login process based on the access token, without the user having to enter the login credentials again and directly log in to the Internet service. The user can use the Internet service through the client application.

[0080] It is understood that in addition to entering the login website URL on the web application to log in, users can also open the client application to log in and use the Internet service directly through the client application. Please refer to Figure 5 , a flow chart of logging in using a client application is provided for an embodiment of the present application, and a method of logging in using a client application is described in combination with a web application and a client application. The method may include the following steps S301-S306.

[0081] S301, the client application receives a client login instruction from a user.

[0082] Specifically, the user can start the client application on the terminal device and send a client login instruction to the client application. The client login instruction is used to instruct the client application to log in to the Internet service network. The client login instruction can be a click instruction, a gesture instruction, a voice instruction, etc.

[0083] S302, the client application sends a login prompt message to the web application.

[0084] Specifically, after the client application receives the client login instruction, it can send a login prompt message to the web application. The login prompt message is used to instruct the web application to start and open the login website of the Internet service, thereby instructing the user to enter the login credentials on the login website. That is, whether it is a client application login or a web application login, it is necessary to complete the identity authentication process and log in to the Internet service by entering the login credentials on the login website.

[0085] S303, the web application opens the login website and instructs the user to enter login credentials.

[0086] Specifically, if the web application receives the login prompt information sent by the client application, it can be started and a window can be opened to display the login website, thereby instructing the user to enter the login credentials in the login website.

[0087] S304, if the web application detects that the user enters login credentials in the login website, it generates a login request based on the login credentials and sends the login request to the server for identity authentication.

[0088] Specifically, if the web application detects that the user enters login credentials in the login website, the web application can generate a login request based on the login credentials, and then send the login request to the server. The server will perform identity authentication on the login credentials. If the identity authentication passes, the server will send verification success information and an access token to the web application.

[0089] S305, the web application sends the access token to the client application.

[0090] Specifically, after receiving the access token sent by the server, the web application can send the access token to the client application.

[0091] S306: The client application performs a login process based on the access token.

[0092] Specifically, after the client application receives the access token, it can perform login processing based on the access token, and the user can use the Internet service through the client application.

[0093] In the embodiment of the present application, the web application obtains the login credentials input by the user, sends a login request to the server based on the login credentials, receives the verification success information and access token sent by the server, and can also obtain the access token after the unified identity authentication by the server, thereby improving the security of the login process. The web application outputs the startup terminal selection information for the user to prevent the direct jump to the client from causing trouble to the user. The user can independently choose which application to use the Internet service. If the web application startup instruction sent by the user for the startup terminal selection information is obtained, the login process is performed based on the access token. If the client startup instruction sent by the user for the startup terminal selection information is obtained, the jump locator for the client application is obtained, the access token and the jump locator are spliced, and the automatic login information is obtained. The automatic login information is sent to the client application. The client application parses the automatic login information, obtains the jump locator and the access token, and performs startup processing based on the jump locator. After the startup process is successfully started, the login process can be performed based on the access token to log in to the Internet service. By obtaining an access token based on the login credentials entered by the user on the web page, and pulling up the client application according to the jump locator and automatically logging in the client application based on the access token, the user is prevented from repeatedly entering the login credentials, and can directly use the client application to use the Internet service, which improves the convenience of Internet service login. In addition, whether it is the client or the web application, it is necessary to log in through the login website, which unifies the login credential input window and improves the security of identity authentication.

[0094] See also Figure 6 , which is a flowchart of a login method provided by an embodiment of the present application. Figure 6 As shown, the embodiment of the present application describes the method based on the web application side, and the method may include the following steps S401-S403.

[0095] S401, obtaining login credentials input by a user, and sending a login request to a server based on the login credentials.

[0096] Specifically, the user can enter the login website URL of the Internet service in the web application, and the web application can open a window to display the login website. The user can enter the login credentials on the login website to log in to the Internet service, and can directly use the Internet service on the login website after successful login. If the web application detects that the user enters the login credentials in the login website, the web application can send a login request to the server based on the login credentials. The login request can be generated by the web application based on the login credentials, and is used to request the server to perform identity authentication processing on the user based on the login credentials, so as to log in to the Internet service.

[0097] S402, receiving verification success information and access token sent by the server.

[0098] Specifically, after the server receives the login request sent by the web application, the server will perform identity authentication on the login credentials. If the identity authentication is successful, the server will send an access token to the web application. The verification success information is used to inform the web application that the login credentials entered by the user have passed the identity authentication process, allowing the user to log in to the Internet service. After the web application receives the access token sent by the server, it can directly log in to the Internet service based on the access token, and the user can use the Internet service directly on the web page of the web application.

[0099] Among them, the login credentials are related to the identity authentication processing method. If the identity authentication processing is to verify the user's login account and login password, the login credentials entered by the user are the user's login account and login password. After receiving the login credentials, the server can verify whether the login account matches the login credentials stored in the server, and whether the login account and login password match. If the login account matches the login credentials stored in the server, and the login account and login password also match, it is confirmed that the identity authentication processing has passed, and the access token is sent to the server. It is understandable that if the identity authentication processing is face verification, the login credentials can be the user's face image or other picture data containing the face.

[0100] S403: Launch the client application based on the access token and instruct the client application to perform a login process.

[0101] Specifically, after the web application receives the access token, the user can directly use the login website on the web application to use the Internet service based on the access token, or may choose to switch to the client application to use the Internet service for purposes such as Internet service experience. In order to avoid the user having to reopen the client application and enter the login credentials, the web application can launch the client application based on the access token, and perform login processing on the client application based on the access token. For example, the web application can obtain a jump locator for the client application, and the jump locator can be a Scheme URL for starting the client application. The jump locator is sent to the client application, and the client application can independently perform the startup processing, that is, it launches the client application, and then sends the access token to the client application. The client application can use the access token to log in to the Internet service.

[0102] In the embodiment of the present application, the login credentials entered by the user are obtained, a login request is sent to the server based on the login credentials, the verification success information and access token sent by the server are received, the client application is launched based on the access token, and the client application is instructed to perform the login process. By obtaining the access token based on the login credentials entered by the user on the web page, and launching the client application and automatically logging in based on the access token, the user is prevented from repeatedly entering the login credentials, and the client application can be used to use the Internet service directly, which improves the convenience of logging in to the Internet service.

[0103] See also Figure 7 , which is a flowchart of a login method provided by an embodiment of the present application. Figure 7 As shown, the embodiment of the present application describes the method based on the web application side, and the method may include the following steps S501-S507.

[0104] S501, obtaining login credentials input by a user, and sending a login request to a server based on the login credentials.

[0105] Specifically, the user can enter the login website URL of the Internet service in the web application, and the web application can open a window to display the login website. The user can enter the login credentials on the login website to log in to the Internet service, and can use the Internet service directly on the login website after successful login. If the web application detects that the user enters the login credentials in the login website, the web application can send a login request to the server based on the login credentials. The login request can be generated by the web application based on the login credentials, and is used to request the server to perform identity authentication processing on the user based on the login credentials, so as to log in to the Internet service.

[0106] S502, receiving verification success information and access token sent by the server.

[0107] Specifically, after the server receives the login request sent by the web application, the server will perform identity authentication on the login credentials. If the identity authentication is successful, the server will send a verification success message and an access token to the web application. The verification success message is used to inform the web application that the login credentials entered by the user have passed the identity authentication process, allowing the user to log in to the Internet service. After the web application receives the access token sent by the server, it can directly log in to the Internet service based on the access token, and the user can use the Internet service directly on the web page of the web application.

[0108] Optionally, the login credentials are related to the identity authentication processing method. If the identity authentication processing is to verify the user's login account and login password, the login credentials entered by the user are the user's login account and login password. After receiving the login credentials, the server can verify whether the login account matches the login credentials stored in the server, and whether the login account and login password match. If the login account matches the login credentials stored in the server, and the login account and login password also match, it is confirmed that the identity authentication processing has passed, and the access token is sent to the server. It is understandable that if the identity authentication processing is face verification, the login credentials can be the user's face image or other picture data containing the face.

[0109] S503: Outputting the start-end selection information to the user.

[0110] Specifically, after the web application receives the access token, the user can directly use the login website on the web application to use the Internet service based on the access token, or choose to switch to the client application to use the Internet service for the purpose of Internet service experience. The web application can output the start-end selection information to the user, and the start-end selection information is used to let the user choose whether to continue to use the web application to log in to the Internet service, or switch to the client application to log in and use the Internet service. The start-end selection information can be in the form of a pop-up window or a voice message.

[0111] S504: If the web application startup instruction sent by the user in response to the startup terminal selection information is obtained, a login process is performed based on the access token.

[0112] Specifically, if the user wants to continue to use the login website on the web application to use Internet services and does not need to switch to the client application, the user can select information on the startup end to send a web application startup instruction. The web application startup instruction indicates that the user instructs the web application to continue the login process. The web application can then use the received access token to perform the login process, log in to the Internet service, and allow the user to use the Internet service through the web application.

[0113] S505: If the client startup instruction sent by the user for the startup terminal selection information is obtained, a jump locator for the client application is obtained.

[0114] Specifically, if the user wants to switch to the client application to use Internet services and does not want to use the web application to use Internet services, the user can send a client startup instruction to the startup end selection information. The client startup instruction indicates that the user instructs the web application to pull up the client application. After the client receives the client startup instruction, it can obtain the jump locator for the client application. The jump locator can be a Scheme URL, which is used to start the client application. The jump locator is sent to the client application, and the client application can independently perform the startup process.

[0115] It is understandable that steps S504 and S505 are not steps to be executed successively. If the web application receives a web application startup instruction, S504 is executed and there is no need to execute subsequent steps, that is, there is no need to obtain a jump locator or send an access token to the client application. If the web application receives a client startup instruction, S505 and subsequent steps are executed.

[0116] S506, concatenate the access token and the jump locator to obtain automatic login information.

[0117] Specifically, the web application can concatenate the access token and the jump locator, for example, the access token can be added after the jump locator, thereby generating automatic login information. The automatic login information can be used for automatic startup and automatic login of the client application.

[0118] S507: Send the automatic login information to the client application, instructing the client application to perform startup processing and login processing based on the automatic login information.

[0119] Specifically, the web application can send the automatic login information to the client application, and can instruct the client application to start processing and log in. The client can obtain the jump locator and access token in the automatic login information, and start processing based on the jump locator, and then log in based on the access token.

[0120] Optionally, in addition to entering the login website URL on the web application to log in, the user can also open the client application to log in and use the Internet service directly through the client application. The user can start the client application on the terminal device and send a client login instruction to the client application. After receiving the client login instruction, the client application can send a login prompt message to the web application. If the login prompt message sent by the client application is received, the login website is opened to instruct the user to enter the login credentials, that is, a window is opened to display the login website, thereby instructing the user to enter the login credentials in the login website. If the web application detects that the user enters the login credentials in the login website, the web application can send the login credentials to the server, and the server will perform identity authentication on the login credentials. If the identity authentication is successful, the server will send an access token to the web application. The server can send the access token to the client application, and the client application will perform login processing based on the access token.

[0121] In the embodiment of the present application, the login credentials entered by the user are obtained, a login request is sent to the server based on the login credentials, the verification success information and access token sent by the server are received, and the access token can be obtained after the unified identity authentication by the server, thereby improving the security of the login process. The web application outputs the startup terminal selection information for the user to prevent the direct jump to the client from causing trouble to the user. The user can independently choose which application to use the Internet service. If the web application startup instruction sent by the user for the startup terminal selection information is obtained, the login process is performed based on the access token. If the client startup instruction sent by the user for the startup terminal selection information is obtained, the jump locator for the client application is obtained, the access token and the jump locator are spliced, and the automatic login information is obtained. The automatic login information is sent to the client application, indicating that the client application performs startup processing and login processing based on the automatic login information. By obtaining the access token based on the login credentials entered by the user on the web page, and pulling up the client application according to the jump locator and automatically logging in the client application based on the access token, the user is prevented from repeatedly entering the login credentials, and the client application can be directly used to use the Internet service, thereby improving the convenience of Internet service login.

[0122] See also Figure 8 , which is a flowchart of a login method provided by an embodiment of the present application. Figure 8 As shown, the embodiment of the present application describes the method based on the client application side, and the method may include the following steps S601-S604.

[0123] S601, receiving automatic login information sent by the browser.

[0124] Specifically, the web application may send automatic login information obtained based on the login credentials input by the user to the client application, instructing the client application to perform startup processing and login processing. The client application may receive the automatic login information sent by the web application.

[0125] S602, parse and process the automatic login information to obtain a jump locator and an access token.

[0126] Specifically, after receiving the automatic login information, the client application can parse the automatic login information to obtain a jump locator and an access token.

[0127] Optionally, the web application can concatenate the access token and the jump locator based on the identification symbol to obtain automatic login information, that is, the web application can add an identification symbol at the end of the jump locator, and then add the access token after the identification symbol. The client application can also parse the automatic login information based on the identification symbol.

[0128] S603, start processing based on the jump locator.

[0129] Specifically, the client application can be started based on the jump locator, and the client application can be pulled up to the front end of the terminal device, and the interface of the client application is displayed on the display screen of the terminal device.

[0130] S604, perform login processing based on the access token.

[0131] Specifically, after the client application is successfully started, it can perform a login process based on the access token, without the user having to enter the login credentials again and directly log in to the Internet service. The user can use the Internet service through the client application.

[0132] Optionally, in addition to entering the login website URL on the web application to log in, the user can also open the client application to log in and use the Internet service directly through the client application. The user can start the client application on the terminal device and send a client login instruction to the client application. The client login instruction is used to instruct the client application to log in to the Internet service network. The client login instruction can be a click instruction, a gesture instruction, a voice instruction, etc. If the user's client login instruction is received, the client application can send a login prompt message to the web application to instruct the web application to open the login website. Among them, the login prompt message is used to instruct the web application to start and open the login website of the Internet service, thereby instructing the user to enter the login credentials on the login website, that is, whether it is a client application login or a web application login, it is necessary to complete the identity authentication process and log in to the Internet service by entering the login credentials on the login website. The web application can obtain an access token from the server based on the login credentials entered by the user on the login website, and send the access token to the client application. After the client application receives the access token, it can perform a login process based on the access token, and the user can use the Internet service through the client application.

[0133] In the embodiment of the present application, the automatic login information sent by the web application is received, the automatic login information is parsed, the jump locator and the access token are obtained, the startup process is performed based on the jump locator, the login process is performed based on the access token, the access token is obtained based on the login credentials entered by the user on the web page, and the client application is pulled up according to the jump locator and the client application is automatically logged in based on the access token, so that the user can avoid repeatedly entering the login credentials, and the client application can be used directly to use the Internet service, which improves the convenience of Internet service login. In addition, whether it is the client or the web application, it is necessary to log in through the login website, which unifies the login credential input window and improves the security of identity authentication.

[0134] The following will be combined with the attached Fig. 9 -Attached Fig.10 , the web page login device provided in the embodiment of the present application is introduced in detail. It should be noted that the attached Fig. 9 -Attached Fig.10 The web page login device in the present application is used to execute the Figure 6 and Figure 7 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 6 and Figure 7 The embodiment shown.

[0135] See also Fig. 9, which shows a schematic diagram of the structure of a web page login device provided by an exemplary embodiment of the present application. The web page login device can be implemented as all or part of the device through software, hardware or a combination of both. The device 1 includes a login request module 11, a token acquisition module 12 and a token sending module 13.

[0136] A login request module 11, used to obtain the login credentials input by the user, and send a login request to the server based on the login credentials;

[0137] A token acquisition module 12, used to receive the verification success information and access token sent by the server;

[0138] The token sending module 13 is used to launch a client application based on the access token and instruct the client application to perform a login process.

[0139] In this embodiment, the login credentials entered by the user are obtained, a login request is sent to the server based on the login credentials, the verification success information and access token sent by the server are received, the client application is launched based on the access token, and the client application is instructed to perform the login process. By obtaining the access token based on the login credentials entered by the user on the web page, launching the client application and automatically logging in based on the access token, the user is prevented from repeatedly entering the login credentials, and can directly use the client application to use the Internet service, thereby improving the convenience of logging in to the Internet service.

[0140] See also Fig.10 , which shows a schematic diagram of the structure of a web page login device provided by an exemplary embodiment of the present application. The web page login device can be implemented as all or part of the device through software, hardware or a combination of both. The device 1 includes a prompt information receiving module 14, a login request module 11, a token acquisition module 12, a token sending module 13 and a web page login module 15.

[0141] The prompt information receiving module 14 is used to open the login website and instruct the user to enter the login credentials if the login prompt information sent by the client application is received;

[0142] The launching of the client application based on the access token and instructing the client application to perform a login process includes:

[0143] The access token is sent to the client application, and the client application performs a login process based on the access token.

[0144] A login request module 11, used to obtain the login credentials input by the user, and send a login request to the server based on the login credentials;

[0145] Optionally, the login request module 11 is specifically configured to generate a login request using the login credentials if it is detected that the user enters login credentials in the login website;

[0146] The login request is sent to the server for identity authentication.

[0147] A token acquisition module 12, used to receive the verification success information and access token sent by the server;

[0148] The token sending module 13 is used to launch a client application based on the access token and instruct the client application to perform a login process.

[0149] Optionally, the token sending module 13 is specifically used to obtain a jump locator for the client application, and the jump locator is used to start the client application;

[0150] Concatenate the access token and the jump locator to obtain automatic login information;

[0151] The automatic login information is sent to the client application, instructing the client application to perform startup processing and login processing based on the automatic login information.

[0152] Optionally, the token sending module 13 is specifically used to output the starting terminal selection information for the user;

[0153] If the client startup instruction sent by the user in response to the startup terminal selection information is obtained, a jump locator for the client application is obtained.

[0154] The web page login module 15 is used to perform a login process based on the access token if a web page application startup instruction sent by the user in response to the startup terminal selection information is obtained.

[0155] In the embodiment of the present application, the web application obtains the login credentials entered by the user, sends a login request to the server based on the login credentials, receives the verification success information and access token sent by the server, and can also obtain the access token after the unified identity authentication by the server, thereby improving the security of the login process. The web application outputs the startup terminal selection information for the user to prevent the direct jump to the client from causing trouble to the user. The user can independently choose which application to use the Internet service. If the web application startup instruction sent by the user for the startup terminal selection information is obtained, the login process is performed based on the access token. If the client startup instruction sent by the user for the startup terminal selection information is obtained, the jump locator for the client application is obtained, the access token and the jump locator are spliced ​​to obtain the automatic login information, and the automatic login information is sent to the client application, indicating that the client application performs the startup process and login process based on the automatic login information. By obtaining the access token based on the login credentials entered by the user on the web page, and pulling up the client application according to the jump locator and automatically logging in the client application based on the access token, the user is prevented from repeatedly entering the login credentials, and the client application can be directly used to use the Internet service, thereby improving the convenience of Internet service login.

[0156] Please refer to Fig.11 , which shows a block diagram of the structure of an electronic device provided by an exemplary embodiment of the present application. The electronic device in the present application may include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, the memory 120, the input device 130, and the output device 140 may be connected via the bus 150.

[0157] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions and processes data of the terminal 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user pages, and applications; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.

[0158] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable medium (Non-Transitory Computer-Readable Storage Medium). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The operating system may be an Android system, including a system deeply developed based on the Android system, an IOS system developed by Apple, including a system deeply developed based on the IOS system or other systems.

[0159] The memory 120 can be divided into an operating system space and a user space. The operating system runs in the operating system space, and native and third-party applications run in the user space. In order to ensure that different third-party applications can achieve good operating results, the operating system allocates corresponding system resources to different third-party applications. However, the requirements for system resources in different application scenarios in the same third-party application are also different. For example, in the local resource loading scenario, the third-party application has higher requirements for disk reading speed; in the animation rendering scenario, the third-party application has higher requirements for GPU performance. The operating system and third-party applications are independent of each other, and the operating system often cannot perceive the current application scenario of the third-party application in a timely manner, resulting in the operating system being unable to perform targeted system resource adaptation according to the specific application scenario of the third-party application.

[0160] In order for the operating system to distinguish the specific application scenarios of third-party applications, it is necessary to open up data communication between third-party applications and the operating system so that the operating system can obtain the current scenario information of third-party applications at any time, and then perform targeted system resource adaptation based on the current scenario.

[0161] The input device 130 is used to receive input commands or data, and includes but is not limited to a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is used to output commands or data, and includes but is not limited to a display device and a speaker. In one example, the input device 130 and the output device 140 can be combined, and the input device 130 and the output device 140 are touch screen displays.

[0162] The touch display screen can be designed as a full screen, a curved screen or a special-shaped screen. The touch display screen can also be designed as a combination of a full screen and a curved screen, or a combination of a special-shaped screen and a curved screen, which is not limited in the embodiments of the present application.

[0163] In addition, those skilled in the art will appreciate that the structure of the electronic device shown in the above drawings does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the electronic device also includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (WiFi) module, a power supply, a Bluetooth module and other components, which will not be described in detail here.

[0164] exist Fig.11 In the electronic device shown, the processor 110 may be used to call a login application stored in the memory 120 and specifically perform the following operations:

[0165] Obtaining login credentials input by the user, and sending a login request to the server based on the login credentials;

[0166] Receiving verification success information and access token sent by the server;

[0167] The client application is launched based on the access token, and the client application is instructed to perform a login process.

[0168] In one embodiment, when launching the client application based on the access token and instructing the client application to perform a login process, the processor 110 specifically performs the following operations:

[0169] Obtaining a jump locator for a client application, wherein the jump locator is used to start the client application;

[0170] Concatenate the access token and the jump locator to obtain automatic login information;

[0171] The automatic login information is sent to the client application, instructing the client application to perform startup processing and login processing based on the automatic login information.

[0172] In one embodiment, when executing to obtain a jump locator for a client application, the processor 110 specifically performs the following operations:

[0173] Outputting start-end selection information for the user;

[0174] If the client startup instruction sent by the user in response to the startup terminal selection information is obtained, a jump locator for the client application is obtained.

[0175] In one embodiment, when executing the login method, the processor 110 further performs the following operations:

[0176] If the web application startup instruction sent by the user in response to the startup terminal selection information is obtained, a login process is performed based on the access token.

[0177] In one embodiment, the processor 110 performs the following operations when acquiring the login credentials input by the user and sending a login request to the server based on the login credentials:

[0178] If it is detected that the user enters login credentials in the login website, the login credentials are used to generate a login request;

[0179] The login request is sent to the server for identity authentication.

[0180] In one embodiment, before executing the step of obtaining the login credentials input by the user and sending a login request to the server based on the login credentials, the processor 110 further performs the following operations:

[0181] If a login prompt message is received from the client application, the login website is opened to instruct the user to enter login credentials;

[0182] The launching of the client application based on the access token and instructing the client application to perform a login process includes:

[0183] The access token is sent to the client application, and the client application performs a login process based on the access token.

[0184] In the embodiment of the present application, the web application obtains the login credentials entered by the user, sends a login request to the server based on the login credentials, receives the verification success information and access token sent by the server, and can also obtain the access token after the unified identity authentication by the server, thereby improving the security of the login process. The web application outputs the startup terminal selection information for the user to prevent the direct jump to the client from causing trouble to the user. The user can independently choose which application to use the Internet service. If the web application startup instruction sent by the user for the startup terminal selection information is obtained, the login process is performed based on the access token. If the client startup instruction sent by the user for the startup terminal selection information is obtained, the jump locator for the client application is obtained, the access token and the jump locator are spliced ​​to obtain the automatic login information, and the automatic login information is sent to the client application, indicating that the client application performs the startup process and login process based on the automatic login information. By obtaining the access token based on the login credentials entered by the user on the web page, and pulling up the client application according to the jump locator and automatically logging in the client application based on the access token, the user is prevented from repeatedly entering the login credentials, and the client application can be directly used to use the Internet service, thereby improving the convenience of Internet service login.

[0185] The following will be combined with the attached Fig.12 -Attached Fig.13 , the client login device provided in the embodiment of the present application is introduced in detail. It should be noted that the attached Fig.12 -Attached Fig.13 The client login device in is used to execute this application Figure 8 and Fig. 9 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 8 and Fig. 9 The embodiment shown.

[0186] See also Fig.12 , which shows a schematic diagram of the structure of a client login device provided by an exemplary embodiment of the present application. The web login device can be implemented as all or part of the device through software, hardware or a combination of both. The device 2 includes a token receiving module 21 and a self-login module 22.

[0187] The token receiving module 21 is used to receive an access token sent by a web application, where the access token is obtained by the web application based on login credentials input by a user;

[0188] The self-login module 22 is used to perform startup processing and login processing based on the access token.

[0189] In this embodiment, an access token sent by a web application is received, and the access token is obtained by the web application based on the login credentials input by the user. Startup processing and login processing are performed based on the access token. The access token is obtained based on the login credentials input by the user on the web page, and the client application is launched and automatically logged in based on the access token, thereby avoiding the user from repeatedly entering the login credentials. The client application can be used directly to use Internet services, which improves the convenience of logging into Internet services.

[0190] See also Fig.13 , which shows a schematic diagram of the structure of a client login device provided by an exemplary embodiment of the present application. The webpage login device can be implemented as all or part of the device through software, hardware or a combination of both. The device 2 includes a prompt information sending module 23, a token receiving module 21 and a self-login module 22.

[0191] The prompt information sending module 23 is used to send a login prompt information to the web application upon receiving a user's client login instruction, instructing the web application to open a login website;

[0192] The token receiving module 21 is used to receive an access token sent by a web application, where the access token is obtained by the web application based on login credentials input by a user;

[0193] Optionally, the token receiving module 21 is specifically used to receive automatic login information sent by a web application;

[0194] Parsing the automatic login information to obtain a jump locator and an access token;

[0195] The self-login module 22 is used to perform startup processing and login processing based on the access token.

[0196] Optionally, the self-login module 22 is specifically used to start processing based on the jump locator;

[0197] Login processing is performed based on the access token.

[0198] In the embodiment of the present application, the automatic login information sent by the web application is received, the automatic login information is parsed, the jump locator and the access token are obtained, the startup process is performed based on the jump locator, the login process is performed based on the access token, the access token is obtained based on the login credentials entered by the user on the web page, and the client application is pulled up according to the jump locator and the client application is automatically logged in based on the access token, so that the user can avoid repeatedly entering the login credentials, and the client application can be used directly to use the Internet service, which improves the convenience of Internet service login. In addition, whether it is the client or the web application, it is necessary to log in through the login website, which unifies the login credential input window and improves the security of identity authentication.

[0199] Please refer to Fig.14 , which shows a block diagram of the structure of an electronic device provided by an exemplary embodiment of the present application. The electronic device in the present application may include one or more of the following components: a processor 210, a memory 220, an input device 230, an output device 240, and a bus 250. The processor 210, the memory 220, the input device 230, and the output device 240 may be connected via a bus 250.

[0200] The processor 210 may include one or more processing cores. The processor 210 uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions and processes data of the electronic device 200 by running or executing instructions, programs, code sets or instruction sets stored in the memory 220, and calling data stored in the memory 220. Optionally, the processor 210 can be implemented in at least one hardware form of DSP, FPGA, and PLA. The processor 210 can integrate one or a combination of CPU, GPU, modem, etc. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to handle wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 210, but may be implemented separately through a communication chip.

[0201] The memory 220 may include RAM or ROM. Optionally, the memory 220 includes a non-transient computer-readable medium. The memory 220 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 220 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The operating system may be an Android system, including a system deeply developed based on the Android system, an IOS system developed by Apple, including a system deeply developed based on the IOS system or other systems. The data storage area may also store data created by the electronic device during use, such as a phone book, audio and video data, chat record data, etc.

[0202] The memory 220 can be divided into an operating system space and a user space. The operating system runs in the operating system space, and native and third-party applications run in the user space. In order to ensure that different third-party applications can achieve good operating results, the operating system allocates corresponding system resources to different third-party applications. However, the requirements for system resources in different application scenarios in the same third-party application are also different. For example, in the local resource loading scenario, the third-party application has higher requirements for disk reading speed; in the animation rendering scenario, the third-party application has higher requirements for GPU performance. The operating system and third-party applications are independent of each other, and the operating system often cannot perceive the current application scenario of the third-party application in a timely manner, resulting in the operating system being unable to perform targeted system resource adaptation according to the specific application scenario of the third-party application.

[0203] In order for the operating system to distinguish the specific application scenarios of third-party applications, it is necessary to open up data communication between third-party applications and the operating system so that the operating system can obtain the current scenario information of third-party applications at any time, and then perform targeted system resource adaptation based on the current scenario.

[0204] The input device 230 is used to receive input commands or data, and includes but is not limited to a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 240 is used to output commands or data, and includes but is not limited to a display device and a speaker. In one example, the input device 230 and the output device 240 can be combined, and the input device 230 and the output device 240 are touch screen displays.

[0205] The touch display screen can be designed as a full screen, a curved screen or a special-shaped screen. The touch display screen can also be designed as a combination of a full screen and a curved screen, or a combination of a special-shaped screen and a curved screen, which is not limited in the embodiments of the present application.

[0206] In addition, those skilled in the art can understand that the structure of the electronic device shown in the above drawings does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the electronic device also includes components such as a radio frequency circuit, an input unit, a sensor, an audio circuit, a WiFi module, a power supply, and a Bluetooth module, which will not be described in detail here.

[0207] exist Fig.14 In the electronic device shown, the processor 210 may be used to call the login application stored in the memory 220 and specifically perform the following operations:

[0208] Receiving an access token sent by a web application, wherein the access token is obtained by the web application based on login credentials input by a user;

[0209] A startup process and a login process are performed based on the access token.

[0210] In one embodiment, when the processor 210 receives the access token sent by the web application, it specifically performs the following operations:

[0211] Receive automatic login information sent by the web application;

[0212] The automatic login information is parsed to obtain a jump locator and an access token.

[0213] In one embodiment, when the processor 210 performs startup processing and login processing based on the access token, the processor 210 specifically performs the following operations:

[0214] Performing startup processing based on the jump locator;

[0215] Login processing is performed based on the access token.

[0216] In one embodiment, before executing the step of receiving the access token sent by the web application, the processor 210 further performs the following operations:

[0217] If a user's client login instruction is received, a login prompt message is sent to the web application to instruct the web application to open a login website;

[0218] The startup processing and login processing based on the access token includes:

[0219] Login processing is performed based on the access token.

[0220] In the embodiment of the present application, the automatic login information sent by the web application is received, the automatic login information is parsed, the jump locator and the access token are obtained, the startup process is performed based on the jump locator, the login process is performed based on the access token, the access token is obtained based on the login credentials entered by the user on the web page, and the client application is pulled up according to the jump locator and the client application is automatically logged in based on the access token, so that the user can avoid repeatedly entering the login credentials, and the client application can be used directly to use the Internet service, which improves the convenience of Internet service login. In addition, whether it is the client or the web application, it is necessary to log in through the login website, which unifies the login credential input window and improves the security of identity authentication.

[0221] The present application also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded and executed by a processor as described above. Figure 1-Figure 8 The login method of the embodiment shown in the figure can be found in the specific execution process. Figure 1-Figure 8 The specific description of the illustrated embodiment will not be repeated here.

[0222] The present application also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor as described above. Figure 1-Figure 8 The login method of the embodiment shown in the figure can be found in the specific execution process. Figure 1-Figure 8 The specific description of the illustrated embodiment will not be repeated here.

[0223] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0224] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

[0225] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in the embodiments of this specification are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the login credentials, jump locators, etc. involved in this specification are all obtained with full authorization.

Claims

1. A login method, characterized in that: The method comprises: Obtaining login credentials input by the user, and sending a login request to the server based on the login credentials; Receiving verification success information and access token sent by the server; The client application is launched based on the access token, and the client application is instructed to perform a login process.

2. The method according to claim 1, characterized in that The launching of the client application based on the access token and instructing the client application to perform a login process includes: Obtaining a jump locator for the client application, wherein the jump locator is used to start the client application; Concatenate the access token and the jump locator to obtain automatic login information; The automatic login information is sent to the client application, instructing the client application to perform startup processing and login processing based on the automatic login information.

3. The method according to claim 2, characterized in that The step of obtaining a jump locator for the client application program includes: Outputting start-end selection information for the user; If the client startup instruction sent by the user in response to the startup terminal selection information is obtained, a jump locator for the client application is obtained.

4. The method according to claim 3, characterized in that The method further comprises: If the web application startup instruction sent by the user in response to the startup terminal selection information is obtained, a login process is performed based on the access token.

5. A login method, characterized in that: The method comprises: Receiving an access token sent by a web application, wherein the access token is obtained by the web application based on login credentials input by a user; A startup process and a login process are performed based on the access token.

6. The method according to claim 5, characterized in that The receiving the access token sent by the web application comprises: Receive automatic login information sent by the web application; The automatic login information is parsed to obtain a jump locator and an access token.

7. A web page login device, characterized in that: The device comprises: A login request module, used to obtain the login credentials input by the user and send a login request to the server based on the login credentials; A token acquisition module, used to receive the verification success information and access token sent by the server; The token sending module is used to launch a client application based on the access token and instruct the client application to perform a login process.

8. A client login device, characterized in that: The device comprises: A token receiving module, used to receive an access token sent by a web application, wherein the access token is obtained by the web application based on login credentials input by a user; The self-login module is used to perform startup processing and login processing based on the access token.

9. A computer storage medium, characterized in that The computer storage medium stores a plurality of instructions, which are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 4 and 5 to 6.

10. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 4 and 5 to 6.