Login process triggering method and apparatus, device, and medium

By comparing the device identification with the login credentials, a login process without entering a password or verification code is realized, which solves the problem of high login operation cost and time-consuming in the existing technology, and improves the user experience.

WO2024193160A1PCT designated stage expired Publication Date: 2024-09-26ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/141826
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-17
Filing Date
2023-12-26
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

Existing login methods are expensive and time-consuming, and users need to frequently enter passwords or verification codes, resulting in low convenience and efficiency.

Method used

By obtaining the login request sent by the device, the login credentials corresponding to the device identification are determined, and the consistency with the locally saved login credentials is determined. If they are consistent, the user account login process is triggered without the need for the user to enter verification information.

Benefits of technology

It simplifies user operations, reduces login time, and improves login convenience and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023141826_26092024_PF_FP
    Figure CN2023141826_26092024_PF_FP
Patent Text Reader

Abstract

Disclosed in embodiments of the present description are a login process triggering method and apparatus, a device, and a medium. The method comprises: acquiring a login request sent by a first device and used for logging in a target application, wherein the login request comprises a first login credential and a first device identifier of the first device; determining a second login credential corresponding to the first device identifier, wherein the second login credential is a credential generated after the first device establishes a trust relationship with a user account of the target application and used for the first device to log in the user account; determining whether the first login credential is consistent with the second login credential so as to obtain a first determination result; and if the first determination result indicates that the first login credential is consistent with the second login credential, triggering the process of logging in the target application on the first device by using the user account.
Need to check novelty before this filing date? Find Prior Art

Description

A method, device, equipment and medium for triggering a login process Technical Field

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

[0002] With the development of computer technology and the needs of people's lives, users may have multiple terminal devices and may need to switch to log in to the same user account on different terminal devices. For users who need to frequently switch login accounts on multiple devices they use frequently, they will need to perform login verification each time, such as logging in by entering a password or receiving a verification SMS, which is costly and time-consuming.

[0003] Therefore, it is necessary to provide a method for logging into an account more conveniently.

[0004] Summary of the Invention

[0005] The embodiments of this specification provide a method, apparatus, device, and medium for triggering a login process to solve the problems of high operating costs and time consumption in existing login methods.

[0006] To solve the above technical problems, the embodiments of this specification are implemented as follows.

[0007] A method for triggering a login process provided in an embodiment of the present specification includes: obtaining a login request for logging into a target application sent by a first device; the login request includes a first login credential and a first device identifier of the first device; determining a second login credential corresponding to the first device identifier; the second login credential is a credential generated after the first device establishes a trust relationship with the user account of the target application and used for the first device to log in to the user account; judging whether the first login credential is consistent with the second login credential to obtain a first judgment result; if the first judgment result indicates that the first login credential is consistent with the second login credential, triggering a process of logging into the target application on the first device with the user account.

[0008] An embodiment of the present specification provides a method for triggering a login process, including: a first device obtains a first operation of a user to open a target application; based on the first operation, a login page is displayed; the login page includes account information of the user account and a login operation control for indicating that the first device is used as a trusted device to log in to the target application using the user account; a second operation of the user on the login operation control is obtained; based on the second operation, a login request is generated for requesting to log in to the target application using the user account; the login request includes the first login credential and the first device identifier of the first device; the login request is sent to a server, so that after the first login credential is verified, the server triggers the process of logging in to the target application on the first device with the user account.

[0009] A method for setting up a trusted device provided in an embodiment of the present specification includes: a second device obtains a trusted device setting page sent by a server containing device information of a historical login device; the historical login device is a device that has logged in to a target application using a user account; the trusted device setting page is displayed; the trusted device setting page contains a first confirmation control; a first confirmation operation of the user on the first confirmation control is obtained; a trusted device setting request is generated based on the first confirmation operation; the trusted device setting request includes a device identifier of the historical login device determined by the user to be set as a trusted device; the trusted device setting request is sent to the server so that the server generates login credentials corresponding to the trusted device; the login credentials are login credentials used to log in to the target application using the user account.

[0010] An embodiment of the present specification provides a triggering device for a login process, including: an information acquisition module, used to obtain a login request sent by a first device for logging into a target application; the login request includes a first login credential and a first device identifier of the first device; a credential determination module, used to determine a second login credential corresponding to the first device identifier; the second login credential is a credential generated after the first device establishes a trust relationship with the user account of the target application and used for the first device to log in to the user account; a judgment module, used to judge whether the first login credential is consistent with the second login credential, and obtain a first judgment result; a login process triggering module, used to trigger the process of logging into the target application on the first device with the user account if the first judgment result indicates that the first login credential is consistent with the second login credential.

[0011] An embodiment of the present specification provides a triggering device for a login process, including: a first operation acquisition module, used to acquire a first operation of a user to open a target application; a page display module, used to display a login page based on the first operation; the login page includes account information of the user account and a login operation control for indicating that the first device is used as a trusted device to log in to the target application using the user account; a second operation acquisition module, used to acquire a second operation of the user on the login operation control; a request generation module, used to generate a login request for requesting to log in to the target application using the user account based on the second operation; the login request includes the first login credential and the first device identifier of the first device; a request sending module, used to send the login request to a server, so that the server triggers the process of logging in to the target application on the first device with the user account after the first login credential is verified.

[0012] An embodiment of the present specification provides an apparatus for setting a trusted device, comprising: a setting page acquisition module for acquiring a trusted device setting page sent by a server containing device information of a historical login device; the historical login device is a device that has logged in to a target application using a user account; a setting page display module for displaying the trusted device setting page; the trusted device setting page contains a first confirmation control; a confirmation operation acquisition module for acquiring a first confirmation operation of the user on the first confirmation control; a setting request generation module for generating a trusted device setting request based on the first confirmation operation; the trusted device setting request includes a device identifier in the historical login device that is determined by the user to be set as a trusted device; a setting request sending module for sending the trusted device setting request to the server so that the server generates a login credential corresponding to a second identification; the login credential is a credential used to log in to the target application using the user account.

[0013] A login process triggering device provided in an embodiment of the present specification includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: obtain a login request sent by a first device for logging into a target application; the login request includes a first login credential and a first device identifier of the first device; determine a second login credential corresponding to the first device identifier; the second login credential is a credential generated after the first device establishes a trust relationship with the user account of the target application and used for the first device to log in to the user account; determine whether the first login credential is consistent with the second login credential to obtain a first judgment result; if the first judgment result indicates that the first login credential is consistent with the second login credential, trigger the process of logging into the target application on the first device with the user account.

[0014] An embodiment of the present specification provides a login process triggering device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: obtain a first operation of a user to open a target application; based on the first operation, display a login page; the login page includes account information of a user account and a login operation control for indicating that the first device is used as a trusted device to log in to the target application using the user account; obtain a second operation of the user on the login operation control; based on the second operation, generate a login request for requesting to log in to the target application using the user account; the login request includes the first login credential and the first device identifier of the first device; send the login request to a server so that after the first login credential is verified, the server triggers the process of logging in to the target application on the first device with the user account.

[0015] An embodiment of the present specification provides a device for setting a trusted device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: obtain a trusted device setting page sent by a server containing device information of a historical login device; the historical login device is a device that has logged in to a target application using a user account; display the trusted device setting page; the trusted device setting page contains a first confirmation control; obtain a first confirmation operation of the user on the first confirmation control; generate a trusted device setting request based on the first confirmation operation; the trusted device setting request includes a device identifier of the historical login device determined by the user to be set as a trusted device; send the trusted device setting request to the server so that the server generates login credentials corresponding to the trusted device; the login credentials are login credentials for logging in to the target application using the user account.

[0016] An embodiment of this specification provides a computer-readable medium having computer-readable instructions stored thereon. The computer-readable instructions can be executed by a processor to implement a method for triggering the above-mentioned login process or a method for setting a trusted device.

[0017] An embodiment of the present specification achieves the following beneficial effects: in the embodiment of the present specification, the login request for logging into the target application sent by the first device includes a first login credential. If it is determined that the first login credential is consistent with the second login credential used to log in to the user account of the first device, the process of logging into the target application on the first device with the user account can be triggered, so that when the user logs in to the target application in the first device, the user does not need to enter passwords, verification codes and other account verification information, which can reduce user operations and login time, and improve the convenience of login. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of this specification or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0019] FIG1 is a schematic diagram of the overall solution flow of a method for triggering a login process in an embodiment of this specification;

[0020] FIG2 is a flow chart of a method for triggering a login process according to an embodiment of the present disclosure;

[0021] FIG3 is a schematic diagram of a trusted device setting page provided in an embodiment of this specification;

[0022] FIG4 is a flow chart of a method for triggering a login process provided in an embodiment of this specification;

[0023] FIG5 is a schematic diagram of a login page provided in an embodiment of this specification;

[0024] FIG6 is a flow chart of a method for setting a trusted device provided in an embodiment of this specification;

[0025] FIG7 is a swim-lane diagram of a method for triggering a login process provided in an embodiment of this specification;

[0026] FIG8 is a schematic structural diagram of a triggering device for a login process corresponding to FIG2 provided in an embodiment of this specification;

[0027] FIG9 is a schematic structural diagram of a triggering device for a login process corresponding to FIG4 provided in an embodiment of this specification;

[0028] FIG10 is a schematic structural diagram of an apparatus for setting a trusted device corresponding to FIG6 provided in an embodiment of this specification;

[0029] FIG11 is a schematic structural diagram of a triggering device corresponding to a login process in FIG2 or FIG4 or a device for setting a trusted device corresponding to FIG6 provided in an embodiment of this specification. DETAILED DESCRIPTION

[0030] To make the purpose, technical solutions, and advantages of one or more embodiments of this specification more clear, the technical solutions of one or more embodiments of this specification will be clearly and completely described below in conjunction with the specific embodiments of this specification and the corresponding drawings. Obviously, the embodiments described are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of one or more embodiments of this specification.

[0031] The technical solutions provided by the embodiments of this specification are described in detail below with reference to the accompanying drawings.

[0032] In related technologies, after a terminal application of a terminal device logs out of a user account, if it needs to log in again, it is necessary to log in to the account again by entering a password, verification code, etc. When logging in alternately in different devices, it is necessary to enter a password, verification code, etc. each time.

[0033] In order to solve the defects in the related art, this solution provides the following embodiments.

[0034] FIG1 is a schematic diagram of the overall solution flow of a method for triggering a login process in an embodiment of this specification. As shown in FIG1 , the solution may include a first device 1 and a server 2, wherein the first device may be a device for logging into a target application. After a user opens the target application on the first device 1, a login page for logging into the target application using a user account may be displayed on the terminal page. The page may also include a login control. The user clicks or triggers the first device to log into the target application through other means. The first device 1 may send a first login credential in a login request to the server 2, wherein the first login credential may be a credential stored in the first device for logging into the target application. The server 2 may obtain the first login credential included in the login request, verify the credential, and, if the verification is successful, allow the first device to log into the target application using the user account. The server may determine a second login credential generated after the first device establishes a trust relationship with the user account of the target application, and determine whether the first login credential and the second login credential are consistent. If they are consistent, it may be determined that the login request sent by the first device can be verified, and the first device may be allowed to log into the target application using the user account. In the embodiments of this specification, login credentials can be used to replace verification information such as passwords and verification codes input by users in related technologies. Logging in using login credentials does not require users to input verification information, which can simplify user operations and improve login efficiency.

[0035] Next, a method for triggering a login process provided in an embodiment of the specification will be described in detail with reference to the accompanying drawings: Figure 2 is a flowchart of a method for triggering a login process provided in an embodiment of the specification. From a program perspective, the execution subject of the process can be a program installed on an application server or an application client.

[0036] As shown in FIG. 2 , the process may include the following steps 202 to 208 .

[0037] Step 202: Obtain a login request sent by a first device for logging into a target application; the login request includes a first login credential and a first device identifier of the first device.

[0038] Step 204: Determine a second login credential corresponding to the first device identifier; the second login credential is a credential generated after the first device establishes a trust relationship with the user account of the target application and used for the first device to log in to the user account.

[0039] Among them, the first login credential can be a login credential stored locally on the first device for logging into the target application; the second login credential can be a login credential corresponding to the first device stored on a server or cloud. The second login credential can be a credential generated for the first device for logging into the target application using the user account after the first device establishes a trust relationship with the user account of the target application, or it can be understood as setting the first device as a trusted device for the user account. The second login credential corresponds to the first device, and different devices correspond to different login credentials. The second login credential can only be used to log in to the target application using the user account in the first device. In the embodiment of this specification, after the login credential is generated for the first device, the credential can be saved on the server or cloud and the login credential can also be sent to the first device. In actual applications, if the first device is not attacked or has other security issues, the first login credential saved in the first device should be consistent with the second login credential determined by the server.

[0040] Taking into account that in actual applications, the login credentials saved in the first device may be sent changes due to some unsafe factors, the first login credential is used here to represent the login credentials saved in the first device that may be sent changes, and the second login credential is used here to represent the login credentials corresponding to the first device that are not sent changes and saved in the server or cloud. The first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual order between these entities or operations.

[0041] From a computer perspective, the login credential may be a string containing specific characters. After obtaining the login request sent by the first device, the server may extract the first login credential contained in the login request based on the specific characters.

[0042] The first device identifier of the first device may be a unique identifier of the first device. For example, the identifier may be used by the server to distinguish different devices.

[0043] Step 206: Determine whether the first login credential is consistent with the second login credential, and obtain a first determination result.

[0044] Step 208: If the first judgment result indicates that the first login credential is consistent with the second login credential, a process of logging into the target application on the first device with the user account is triggered.

[0045] Among them, if the first login credential is consistent with the second login credential, it can indicate that the login request sent by the first device has been verified, and the first device can be allowed to log in to the target application using the user account. The server can trigger the process of the user account logging in to the target application on the first device. Specifically, it can send a prompt message indicating that the login is successful to the first device, or it can send a certain page in the target application after the user account is used to log in to the target application, such as the homepage, the page that the user last browsed, etc., and the first device can display the corresponding page content. In actual applications, if the first login credential is inconsistent with the second login credential, it can indicate that the login method of the first device to log in to the target application through the login credential cannot be verified. A prompt message indicating that the trusted login failed can be sent to the first device, and a verification login page for entering verification information such as a password and a verification code can also be sent to the first device so that the first device can log in to the target application based on the verification information provided by the user.

[0046] The target application can be understood as a terminal application that can be logged in by the first device. The user account can be the login account determined when the user registers as a user of the target application. It can be an email address, mobile phone number, user ID number, etc., or it can be custom characters that meet the login requirements of the target application, etc. The specific form is not specifically limited here.

[0047] It should be understood that the order of some steps in the methods described in one or more embodiments of this specification can be interchanged according to actual needs, or some steps can be omitted or deleted.

[0048] In the method in Figure 2, the login request for logging into the target application sent by the first device includes a first login credential. If it is determined that the first login credential is consistent with the second login credential used to log in to the user account of the first device, the process of logging into the target application on the first device with the user account can be triggered. Therefore, when the user logs in to the target application in the first device, the user does not need to enter passwords, verification codes and other account verification information, which can reduce user operations and login time, and improve the convenience of login.

[0049] Based on the method of FIG2 , the present specification also provides some specific implementation plans, which are described below.

[0050] To further ensure the security of user accounts, optionally, before triggering the process of logging into the target application on the first device with the user account in the embodiment of this specification, it may also include: determining whether the first login credential is within the validity period of the first login credential, and obtaining a second judgment result.

[0051] Among them, the above-mentioned process of triggering the login of the target application on the first device with the user account may specifically include: if the second judgment result indicates that the first login credential is within the validity period of the first login credential, then triggering the process of logging into the target application on the first device with the user account.

[0052] In actual applications, the first login credential sent by the first device may include the time when the first login credential was generated. The above-mentioned determination of whether the first login credential is within the validity period of the first login credential may include: determining whether the time difference between the time when the first login credential was generated and the time when the login request was obtained is less than or equal to a preset threshold. If the time difference between the time when the first login credential was generated and the time when the login request was obtained is less than or equal to the preset threshold, it can be indicated that the first login credential is within the validity period.

[0053] In actual applications, the determination of whether the login credentials are valid may also be performed by the first device. In actual applications, the login request sent by the first device may be generated based on the login operation performed by the user on the first device. After the first device obtains the user's login operation, it can determine whether the time difference between the generation time of the first login credential and the time when the user operation is obtained is less than or equal to the preset threshold. If the time difference between the generation time of the first login credential and the time when the user operation is obtained is less than or equal to the preset threshold, it can be determined that the first login credential is within the validity period and a login request can be sent to the server. If the first login credential is not within the validity period, the first device can display a page for the user to enter verification information, so as to send a verification login request to the server based on the verification information provided by the user. After the verification is passed, the first device can use the user account to log in to the target application.

[0054] In the embodiments of this specification, it is also possible to determine whether the verification of the login request sent by the first device is passed by judging the validity period of the second login credential. As an implementation method, after determining the second login credential, it is also possible to determine whether the time difference between the generation time of the second login credential and the time when the login request is obtained is equal to or equal to a preset threshold. If the time difference is less than or equal to the preset threshold, it can be determined that the second login credential is within the validity period. If the second login credential is within the validity period, the second login credential can be used to verify the login request sent by the first device. Among them, the above-mentioned preset threshold can be set according to actual needs, for example, 10 days, 20 days, 30 days, etc., and the specific threshold is not specifically limited here.

[0055] In actual applications, the login credential may also include time information indicating the validity period of the login credential, such as the start time and end time of the validity period of the login credential. In the embodiments of this specification, whether the login credential is valid can also be determined based on the time information of the validity period. For example, the first device can determine whether the time when the user login is obtained is within the validity period between the start time and end time of the validity period of the first login credential. The server can also determine whether the time when the login request is obtained is within the validity period between the start time and end time of the validity period of the second login credential. In actual applications, the specific judgment method can be set according to actual needs and is not specifically limited here.

[0056] In the embodiment of this specification, the login credentials generated by the server for the device may also include the device identification of the device. Optionally, before the above-mentioned determination of the second login credentials corresponding to the first device identification, it may also include: parsing the first login credentials to obtain the second device identification included in the first login credentials; judging whether the second device identification is consistent with the first device identification, and obtaining a third judgment result.

[0057] The determining of the second login credential corresponding to the first device identifier may specifically include searching for the second login credential corresponding to the first device identifier if the third judgment result indicates that the second device identifier is consistent with the first device identifier.

[0058] In actual applications, if the third judgment result indicates that the second device identifier is inconsistent with the first device identifier, it may mean that the login credentials sent by the first device are not for the device, and the login credentials are invalid. The server can terminate the request sent to the first device to log in to the target application through the login credentials, and can send information indicating that the trusted login failed to the first device, or send a verification login page to the first device.

[0059] In actual applications, users usually do not frequently log in to the same account on different devices. To ensure security, the number of trusted logins can also be set. For example, the number of times a user account is allowed to log in to the target application through trusted login is 10 times a day. For another example, the number of times a user account is allowed to log in to the target application through trusted login is 20 times a week. If the number exceeds this number, the user is required to log in by entering verification information such as a password or verification code. The method in the embodiment of this specification may also include: based on the user account, determining whether the number of times the target application logs in to the user account using the login credentials in a preset time period before obtaining the login request sent by the first device is greater than or equal to the preset number; if it is less than the preset number, the verification process for the first login credential can be executed, such as steps 204 to 208 above. If the number of times the target application logs in to the user account using the login credentials in the preset time period is greater than or equal to the preset number, the processing of the login request can be terminated, it can be determined that the current trusted login has failed, a reminder message can be sent to the first device, or a verification login page can be sent to the first device. The specific value of the preset number can be set according to actual needs. The preset number of times can represent the total number of times different devices are allowed to log in to the user account by means of login credentials; it can be based on a single device as a dimension, which can represent the number of times the same device is allowed to log in to the user account by means of login credentials.

[0060] In actual applications, the judgment process of whether the preset number of times is exceeded can also be executed in the first device. The first device can count the number of times the device has logged in to the target application using the user account through the login credentials within the preset time period, and can judge whether the number of times the first device has logged in to the target application using the user account through the login credentials within the preset time period is greater than or equal to the preset number. If it is greater than or equal to the preset number, the first device may no longer be allowed to log in to the user account through trusted login, and a login verification page may be displayed; if the number of times the first device has logged in to the target application using the user account through the login credentials within the preset time period is less than the preset number, the login page for trusted login may be displayed.

[0061] In the embodiment of this specification, the user can set up a trusted device in the device according to actual needs, and the device determined as a trusted device can quickly log in to the target application by means of login credentials. Optionally, before the above-mentioned acquisition of the login request sent by the first device for logging in to the target application in the embodiment of this specification, it can also include: acquiring the device information of the historical login device that has used the user account to log in to the target application; the historical login device includes the first device; generating a trusted device setting page containing the device information of the historical login device; the device information includes at least one of the device model and the device custom name; sending the trusted device setting page to the second device; the second device is a device that is in a login state of logging in to the target application using the user account before the first device sends the login request; acquiring the trusted device setting request sent by the second device based on the trusted device setting page; the trusted device setting request includes the device identification of the first device; based on the device identification of the first device, determining the first device as a trusted device; the trusted device is used to represent a device that has the authority to log in to the user account in the target application using the login credentials.

[0062] The historically logged-in devices may include devices that have logged into the target application using the user account within a preset time period, such as the last month, three months, or one year. Devices that remain logged in after logging into the target application using the user account can also be considered historically logged-in devices.

[0063] Figure 3 is a schematic diagram of a trusted device setting page provided in an embodiment of this specification. As shown in Figure 3, assuming that the second device is a device that is in a login state of logging into the target application using the user account before the first device sends the login request, the page can be a setting page displayed on the second device. Among them, the page can contain device information of each historical login device, which can be the model, code, etc. of the device, or a name defined by the user. As shown in Figure 3, "someone's device A", "someone's device B", and "someone's device C" can be device names set by the user. In actual applications, the setting function of the terminal application can include the setting of the device name, and the server can obtain the user-defined device name.

[0064] As shown in Figure 3, the page may include a first confirmation control 301 for confirming the trusted device, such as a "Confirm Turn On" control. When the user clicks the control, the second device may send a trusted device setting request to the server. The trusted device setting request may include the device identifier of the first device that the user has confirmed to be set as a trusted device. As shown in Figure 3, the page may also include a selection control 302 for selecting a device. When the control is in the selected state, it can be considered that the user has confirmed to set the selected device as a trusted device. The second device can generate a trusted device setting request based on the state of the selection control. The request may include the device identifiers of each selected device. The user can select one or more devices as devices to be set as trusted devices. After the server obtains the trusted device setting request sent by the second device, it can use the device identifier contained in the request to determine the corresponding device as a trusted device that has the authority to log in to the user account in the target application using the login credentials. For example, a corresponding trusted device list can be generated for the user account and the target application.

[0065] In the embodiment of this specification, the trusted device determination page may also include the device information of the second device, such as "someone's A device" as shown in Figure 3. The page may include a status identifier of a device in a logged-in state, such as "Current" as shown in Figure 3, which may indicate that "someone's A device" is the device that currently uses the user account to log in to the target application. Other unmarked devices may be devices that have logged in to the user account before device A logged in to the user account.

[0066] The method in the embodiment of this specification may further include: determining the second device as the trusted device. Specifically, the device identification of the second device may be saved in a trusted device list.

[0067] In actual applications, historical login devices can also be sorted based on factors such as login frequency, duration of continuous login, and login time, giving priority to devices frequently used by the user. For example, weights can be set for each factor: higher login frequency, higher weight; longer duration of continuous login, higher weight; and closer login time to the current time, higher weight. The weights can be summed to determine the comprehensive score for each device, which can then be displayed in descending order. In actual applications, if a user has a large number of historical login devices, the devices ranked in the top preset positions can be selected and displayed on the settings page.

[0068] In actual applications, the first device and the second device may be the same device or different devices.

[0069] In the embodiments of this specification, the server can generate login credentials for each trusted device. Login credentials are device-specific, and different devices correspond to different login credentials. Optionally, after determining the first device as a trusted device, the embodiments of this specification may also include: generating a second login credential corresponding to the first device based on the device identifier of the first device; sending the second login credential to the first device; and saving the correspondence between the second login credential and the first device.

[0070] The server can store the second login credentials and the corresponding relationship between the second login credentials and the first device. In actual applications, the second login credentials, the first device, and the user account have a corresponding relationship. For example, each trusted device and its corresponding login credentials can be maintained in a trusted device list. In actual applications, the above information can be stored on the server, in the cloud, or in a blockchain system. The server can also send the generated second login credentials to the first device so that the first device can log in based on the login credentials.

[0071] Similarly, after the second device is determined as the trusted device in the embodiment of this specification, it can also include: generating the third login credential corresponding to the second device based on the device identification of the second device; sending the third login credential to the second device; and saving the correspondence between the third login credential and the second device.

[0072] Similar to the above method, the server can store the third login credential and the correspondence between the third login credential and the second device. In actual applications, the third login credential, the second device, and the user account have a correspondence, and this correspondence can be stored in a trusted device list. Alternatively, it can be stored in a storage space such as a server, cloud, or blockchain system. The server can also send the generated third login credential to the second device, allowing the second device to log in based on the login credential.

[0073] In actual applications, after the user logs in to the user account in the second device and when the second device is in the logged-in state, the user can set a trusted device in the second device. It can be understood that when setting the trusted device, the second device is in the logged-in state. After the trusted device is set up, the server can send the generated login credentials for the second device to the second device.

[0074] To ensure the security of user accounts, in the embodiments of this specification, when the user sets up a trusted device, the user's verification information may also be collected. Only after the verification is passed can the device determined by the user be determined as a trusted device. Optionally, before determining the first device as a trusted device in the embodiments of this specification, it may also include: obtaining the first information to be verified sent by the second device; judging whether the first information to be verified is consistent with the first preset verification information, and obtaining a fourth judgment result; the first preset verification information includes at least one of registration verification information and identity authentication information; the registration verification information is the verification information provided by the user when registering the target application with the user account; the identity authentication information is the identity information provided by the user during the user authentication process based on the user account; determining the first device as a trusted device may specifically include: if the fourth judgment result indicates that the first information to be verified is consistent with the first preset verification information, then determining the first device as a trusted device.

[0075] In the embodiments of this specification, during the process of setting up a trusted device, the second device may also display a page for obtaining the first information to be verified provided by the user. For example, the second device may display a page prompting the user to enter their account password and verification code, or may display a page for collecting user identity information, such as a page for collecting the user's face, fingerprint, iris, and other information. The first information to be verified may include information indicating the user's identity, such as face, fingerprint, iris, etc., and may also include information that can verify the account, such as account password, verification code, etc. The specific verification information is not specifically limited here and can be set according to actual needs.

[0076] In actual applications, after the server obtains the trusted device setting request sent by the second device, it can send a verification information acquisition request to the second device so that the second device displays an information collection page to obtain the verification information provided by the user. As another embodiment, the second device can also actively display a page for obtaining verification information. For example, after obtaining the user's confirmation operation for the trusted device, it can display a page for obtaining the first information to be verified provided by the user. The second device can generate a trusted device setting request based on the obtained first information to be verified and the device identifier of the trusted device selected by the user and send it to the server. In actual applications, the first information to be verified can also be sent to the server separately from the trusted device setting request. The specific sending form is not limited here.

[0077] After obtaining the first information to be verified provided by the user, the server may compare the first information to be verified with the pre-stored first preset verification information for the user account to determine whether the two are consistent. If the first information to be verified is consistent with the first preset verification information, it can indicate that the user has consented to the setting of the trusted device, and the server may determine the device targeted by the setting request as a trusted device.

[0078] In the embodiments of this specification, the first preset verification information may include registration verification information provided by the user when registering the target application with the user account, such as a login password. It may also include identity information provided by the user during user authentication based on the user account, such as biometric information such as face, iris, fingerprint, etc. that can represent the user's identity during real-name authentication, or information from a user's identification document. The specific information to be verified and the corresponding preset verification information can be set according to actual needs and are not specifically limited here.

[0079] In actual applications, the settings page may also include terms for users to understand trusted devices and trusted login services. After the user understands the terms, he or she can check the corresponding terms, which indicates that the user has authorized the server to obtain user information required to execute the trusted login process.

[0080] For image information, determining whether two pieces of information are consistent can be understood as whether the similarity between the two pieces of information is greater than or equal to a preset threshold. When the similarity is greater than or equal to the preset threshold, the two pieces of information can be considered similar.

[0081] To ensure the security of user account information, in the embodiment of this specification, after the first device is determined as a trusted device, the first device needs to log in to the target application through verification, and can obtain the second login credentials sent by the server so that the first device can log in using the login credentials in subsequent login processes. Optionally, before sending the second login credential to the first device as described in the embodiment of this specification, it may also include: obtaining a verification login request sent by the first device, the verification login request including the account information of the user account and the second information to be verified provided by the user in the first device; judging whether the second information to be verified is consistent with the second preset verification information, and obtaining a fifth judgment result; the second preset verification information includes at least one of registration verification information and identity authentication information; the registration verification information is the verification information provided by the user when registering the target application with the user account; the identity authentication information is the identity information provided by the user during the user authentication based on the user account; if the fifth judgment result indicates that the second information to be verified is consistent with the second preset verification information, the first device is allowed to use the user account to log in to the target application; sending the second login credential to the first device specifically includes: when the first device is in the login state of using the target account to log in to the target application, sending the second login credential to the first device.

[0082] Account information can include account name, email address, mobile phone number, and other information representing the account. Similar to the first information to be verified, the second information to be verified can be account information such as an account password, verification code, or user biometric information such as the user's face or fingerprint. The specific verification process is similar to the above and will not be repeated here.

[0083] The number of times the same login credential in the embodiments of this specification can be used can be limited. After the number of uses reaches a preset number, the login credential can be determined to be invalid. When the login credential is used again subsequently, it cannot be verified, that is, the login credential can no longer be used to execute a trusted login process that does not require entering a password, verification code, and other information.

[0084] As an implementation method, the login credentials in the embodiments of this specification may be credentials that can be used once. After the server triggers the process of logging into the target application on the first device with the user account, the correspondence between the second login credentials and the first device may be deleted, and the second login credentials may be determined as invalid credentials.

[0085] After the second login credential expires, the server can also generate a new credential so that the device can subsequently use the new credential to log in to the user account through trusted login. Optionally, the method in the embodiments of this specification can also include: generating a fourth login credential based on the device identifier of the first device; saving the corresponding relationship between the fourth login credential and the first device; and sending the fourth login credential to the first device.

[0086] In actual applications, after the first device logs in to the user account through the first login credential, the server can delete the second login credential used for this login or mark it as invalid, and can also generate a fourth login credential for the first device, and send the fourth login credential to the first device when the first device is in the logged-in state.

[0087] In the embodiments of this specification, the first login credential, the second login credential, the third login credential, and the fourth login credential are named differently to more clearly illustrate the methods provided in the embodiments of this specification. The composition, generation, and use of each login credential can be similar, and the above description can be used for reference. In the embodiments of this specification, the method of cyclically issuing copy-proof one-time login credentials on trusted devices can greatly improve the login experience of users with multiple devices.

[0088] In the embodiments of this specification, the same user account can be used on one device simultaneously. After logging in on the first device, the other devices will be logged out. Optionally, after triggering the process of logging in to the target application on the first device using the user account in the embodiments of this specification, the process may also include: deregistering the user account from the other devices.

[0089] In order to allow users to use the trusted login function more conveniently, in the embodiments of this specification, a reminder message for prompting the user to set up a trusted device may also be sent to the user's device. Optionally, the method in the embodiments of this specification may also include: determining whether the user account has logged into multiple devices within a preset time period, and obtaining a fifth judgment result; if the fifth judgment result indicates that the user account has logged into multiple devices within the preset time period, a reminder message for prompting the user to set up a trusted device is sent to at least one of the multiple devices; the trusted device is used to represent a device that has permission to log in to the user account in the target application using the login credentials. The reminder message may include a control for pointing to a settings page for setting up a trusted device in the target application.

[0090] In actual applications, the reminder message can be sent to the login device where the user account is logged in. The reminder message can be displayed on the login device, and the user can perform a preset operation on the reminder message to jump to the settings page for setting up the trusted device, such as the trusted device settings page shown in Figure 3 above. The reminder message can also include a description of the path to the trusted device settings page, and the user can also step by step enter the trusted device settings page according to the path description information.

[0091] In actual applications, prompt information can be sent to the user's device through information pop-up, system messages, etc. The server can also count the number of times the user closes, does not read, or ignores the prompt information. If the number exceeds the preset number, it can be determined that the user does not want to use trusted login. In order to reduce disturbance to the user, the prompt information will no longer be sent to the user account within a preset time period, such as one month or three months.

[0092] Based on the same idea, embodiments of this specification also provide a method for triggering a login process corresponding to the above method, with the first device as the execution subject. Figure 4 is a flow chart of a method for triggering a login process provided in embodiments of this specification. As shown in Figure 4, the method may include steps 402 to 410.

[0093] Step 402: The first device obtains a first operation of the user to launch a target application.

[0094] In the embodiments of this specification, the target application may be a terminal application, mini-program, or other application installed on the first device. The display page of the first device may include an identifier of the target application, such as an icon or name, and the user may click the identifier to open the target application. The target application may be an application that the user has previously registered by entering information such as a username or user account and password. In actual applications, the username and user account may be the same or different, and the target application may be a payment application, a chat application, an entertainment application, a lifestyle service application, or other type of application, without specific limitation here.

[0095] Step 404: Based on the first operation, a login page is displayed; the login page includes account information of the user account and a login operation control for indicating that the first device is used as a trusted device to log in to the target application using the user account.

[0096] Figure 5 is a schematic diagram of a login page provided in an embodiment of this specification. As shown in Figure 5, the login page may include account information 501 of a user account and a login control 502 for logging into the user account. In actual applications, the page content, layout, control description information, and other page information can be set according to actual needs and are not specifically limited here.

[0097] Step 406: Obtain the second operation of the user on the login operation control.

[0098] Step 408: Based on the second operation, a login request is generated for requesting to log in to the target application using the user account; the login request includes the first login credential and the first device identifier of the first device.

[0099] 5 , the user can click the login operation control 502, and the first device can generate a login request based on the user's second operation and send it to the server. The login request can include the user's account information, the first login credential in the first device, and the device identifier of the first device.

[0100] Step 410: Send the login request to the server, so that the server triggers a process of logging into the target application on the first device with the user account after the first login credential is verified.

[0101] The server can verify the login request sent by the first device. The specific verification method can refer to the triggering method of the login process described above with the server as the execution entity, and will not be repeated here. After the verification is successful, the first device can log in to the target application using the user account. In the embodiments of this specification, the user account can be logged in using the login credentials stored in the device, without the user having to enter verification information such as a password or verification code, which can simplify user operations and improve login efficiency.

[0102] The login credential may have an expiration date, such as 10 days or 30 days. The first login credential stored in the first device may include information about the expiration date of the credential. Before displaying the login page, the steps may further include: obtaining the first login credential stored in the first device based on the first operation; determining whether the first login credential is within the expiration date of the first login credential; and displaying the login page may specifically include: displaying the login page if the first login credential is within the expiration date.

[0103] If the first login credential is not within its validity period, a verification information login page may be displayed. The user may enter verification information such as an account password, verification code, and identity information on this verification information login page. After verification is successful, the first device may also log in to the target application using the user account. The method for logging in to the target application through the verification information login page may be the same as or similar to existing login methods.

[0104] In the embodiments of this specification, to ensure user account security, a maximum number of trusted logins using login credentials can be set for a user account, for example, 10 times per day. Before displaying the login page, the first device can also determine whether the cumulative number of trusted logins by the user account within a preset time period exceeds the preset number. If so, the login page can be displayed; if so, a login verification page can be displayed.

[0105] In actual applications, users generally do not frequently log into the same user account on the same device or different devices within a relatively short period of time. In embodiments of this specification, it is also possible to determine whether a user-defined trusted device or user account presents a security risk based on the frequency of user account logins on the same device or different devices. For example, if the number of times a user account is logged into using trusted login within a preset time period is greater than or equal to a preset number, the user account or the user-defined trusted device may be considered to be at risk, and a security alert may be sent to the user, or the user account's trusted login may be revoked, or the trusted login permission of the risky trusted device may be revoked.

[0106] In the embodiments of this specification, the login credential may be a credential generated by the server for the device after the server determines that the device is a trusted device, which can be used to log in to the target application using the user account. In the embodiments of this specification, before generating the login request for logging in to the target application using the user account, the process may also include: obtaining a second login credential sent by the server; the second login credential is a login credential generated by the server corresponding to the first device after the first device is determined to be a trusted device, which is used to log in to the target application using the user account; the trusted device is used to represent a device that has permission to log in to the user account in the target application using the login credential.

[0107] In actual applications, if the first device accurately receives the second login credential sent by the server and is secure while storing the credential, that is, after the second login credential is obtained by the first device, the credential is not changed, then the first login credential included in the login request generated by the first device and the second login credential sent by the server to the first device can be the same. If the first device has a security issue or the login credential stored in the first device is maliciously manipulated, the first login credential stored in the first device may change and become inconsistent with the second login credential sent by the server to the first device.

[0108] Based on the same idea, embodiments of this specification also provide a method for setting up a trusted device, corresponding to the above method, with the second device as the execution subject. Figure 6 is a flowchart of a method for setting up a trusted device provided in an embodiment of this specification. As shown in Figure 6, the method may include steps 602 to 610.

[0109] Step 602: The second device obtains a trusted device setting page sent by the server that includes device information of a historically logged-in device; the historically logged-in device is a device that has logged into the target application using a user account.

[0110] The second device can be a device that is in a logged-in state using a user account to log in to the target application. After the second device logs in to the target application using the user account, it can enter the trusted device settings page, which can include device information of historically logged-in devices, such as device name, model, and other information.

[0111] In actual applications, users can access the trusted device settings page by following a preset path. For example, the target application may include settings for configuring the target application, and setting a trusted device may be an item in the application settings. The specific path can be set based on the actual needs of the application.

[0112] Step 604: Display the trusted device setting page; the trusted device setting page includes a first confirmation control.

[0113] Step 606: Obtain a first confirmation operation of the user on the first confirmation control.

[0114] Step 608: Based on the first confirmation operation, a trusted device setting request is generated; the trusted device setting request includes the device identifier of the historical login device determined by the user to be set as a trusted device.

[0115] Step 610: Send a trusted device setting request to the server so that the server generates login credentials corresponding to the device determined by the user to be set as a trusted device for logging into the target application using the user account.

[0116] As shown in Figure 3, a diagram of a trusted device settings page provided in an embodiment of this specification is provided. This page may include a first confirmation control 301. When a user clicks this control, the second device may receive the user's first confirmation action on the first confirmation control and generate a trusted device settings request, which is then sent to the server. On this page, the user can select one or more devices to set as trusted devices. The trusted device settings request may include the device identifiers of each device selected by the user, allowing the server to identify the trusted devices and generate login credentials for them.

[0117] To ensure the security of the user account, in the embodiments of this specification, the user's verification information may be collected during the process of setting up a trusted device. After the verification is passed, the device selected by the user may be determined as a trusted device. After sending the trusted device setting request to the server, the following steps may also be included: displaying an information acquisition page; obtaining first information to be verified provided by the user based on the information acquisition page; and sending the first information to be verified to the server, so that the server can determine the device set as a trusted device by the user as a trusted device after the first information to be verified is verified.

[0118] Among them, the information acquisition page can be a page for users to input verification information, or a page for collecting user biometric information. It can be set according to actual needs and is not specifically limited here.

[0119] In the embodiments of this specification, the second device configured as a trusted device may also serve as a trusted device, and the server may also generate login credentials for the second device. The device determined by the user to be a trusted device in the embodiments of this specification may include the second device, and the method may further include: obtaining a third login credential sent by the server; the third login credential is a login credential corresponding to the second device generated by the server based on the device identifier of the second device after the second device is determined to be a trusted device.

[0120] In the embodiments of this specification, after completing the setting of the trusted device in the second device, the set trusted device can also be canceled. The path for canceling the setting can be the same as the path for confirming the setting. After entering the trusted device setting page, select the device that has been set as a trusted device. The setting page can display a control for canceling the setting. For example, the "Confirm to Enable" control shown in Figure 3 can be changed to "Confirm to Cancel". After the user clicks the control, the second device can send a cancellation request for the device selected to cancel the trust setting to the server. The server can delete the device from the trusted device list based on the request. After cancellation, the device needs to log in to the target application by entering verification information.

[0121] In the embodiment of this specification, the server can obtain a request sent by the second device to remove the trusted device. The request can include the device identification of the trusted device whose trust relationship is to be removed. Then, based on the request, the correspondence between the device and the user account can be deleted, the device can be deleted from the trusted device list, and the login credentials corresponding to the device can be deleted.

[0122] In actual applications, any of the trusted devices corresponding to a user account can display the associated trusted device information. For example, if a user completes the trusted device settings on a second device and logs in to the user account on the first device, the trusted device information can also be displayed on the settings page of the target application on the first device. The user can then edit the set trusted devices, such as deleting or adding new ones, on both the first and second devices. During the process of editing trusted devices, the user can only perform editing operations or save the edited information after passing verification.

[0123] To more clearly illustrate the method for triggering the login process provided in the embodiments of this specification, Figure 7 is a swim lane diagram of a method for triggering the login process provided in the embodiments of this specification. As shown in Figure 7, the solution may include a device setup phase and a login phase, specifically including steps 702 to 728.

[0124] Step 702: After the second device logs in to the target application using the user account, the user can enter the setting page for setting the trusted device according to the preset path, and the trusted device setting page can be displayed in the second device.

[0125] Step 704: the user can select a trusted device on the page and can also perform a confirmation operation. The second device can generate a trusted device setting request based on the user's operation on the page and send the request to the server.

[0126] Step 706: The server obtains the trusted device setup request sent by the second device, identifies the trusted devices based on the device identifier included in the request, and may also generate corresponding login credentials for each trusted device. Assuming that the trusted devices include the first device and the second device, the server may generate a second login credential corresponding to the first device and send it to the first device, and may also generate a third login credential corresponding to the second device and send it to the second device.

[0127] Step 708: The second device may obtain the third login credential sent by the server, so that the second device may log in to the user account based on the login credential after logging out of the user account.

[0128] Step 710: The first device may also obtain the second login credentials sent by the server. After the first device is determined as a trusted device, the first device needs to log in to the target application using the user account through verification, and then the first device can obtain the second login credentials sent by the server.

[0129] Step 712: Assuming the first device logs out of the user account after obtaining the second login credential, and then uses the user account to log in to the target application again, the first device can obtain the user's operation of opening the target application and determine whether the local first login credential is valid. The first login credential can be understood as the login credential stored locally on the device after obtaining the second login credential sent by the server.

[0130] Step 714: If the first login credential is valid, a trusted login page may be displayed. The page may include a login control, and based on the user's operation on the control, a login request including the first login credential may be generated and sent to the server.

[0131] Step 716: If the first login credential is invalid, the login verification process may be executed and a login verification page may be displayed on which the user may enter verification information such as a password, verification code, or biometric information.

[0132] Step 718: After the server obtains the login request sent by the first device, it can determine whether the first login credential included in the request is consistent with the second login credential.

[0133] Step 720: If the first login credential is consistent with the second login credential, a process of logging into the target application on the first device with the user account may be triggered, and the state of the first device may be determined to be a logged-in state.

[0134] Step 722: The server may also determine that the second login credential is in an invalid state. For example, the server may delete the second login credential, or may generate a new login credential for the first device and send it to the first device.

[0135] Step 724: The first device may display the application page corresponding to the target application after logging into the user account, such as the application homepage, the page most recently viewed by the user using the user account, etc. The first device may also receive new login credentials sent by the server, and may also invalidate the previously saved first login credentials, for example, by deleting the first login credentials.

[0136] Step 726: If the first login credential is inconsistent with the second login credential, the trusted login process may be terminated, and a prompt message indicating that the trusted login failed is generated and fed back to the first device.

[0137] Step 728: The first device may receive the prompt information fed back by the server and may also display a login verification page on the first device so that the user can log in to the user account by providing verification information.

[0138] Assume that before the first device logs in to the user account, the second device is in the login state of the user account. After the first device logs in to the user account, the second device will be kicked out. One user account is allowed to log in and use on one device at the same time. Assume that the user wants to use the second device to log in to the user account again. Since the third login credential has been obtained in the second device, the login credential saved in the second device can be used to log in to the user account in a similar manner as described above. In addition, after the second device initiates a login request using the saved login credential, it can also invalidate the used login credential and obtain the new login credential generated and sent by the server. The specific process will not be described in detail here.

[0139] In the embodiments of this specification, when a user needs to switch between logging into the same user account in different devices, he or she can log in with trust through login credentials, without having to enter account passwords, verification codes and other verification information each time, which can improve convenience. On the other hand, since the user account is logged in by means of login credentials, the user does not need to provide verification information for login each time, so that devices that do not have the function of obtaining verification information can also log in to the user account. For example, assuming that the user account is used to log in to the target application in accordance with the verification method, it is necessary to collect the user's face and other biometric information, that is, the device currently in use needs to have the function of collecting biometrics, such as a camera. If the device does not have a camera, it will not be able to log in to the device. However, since the method in the embodiments of this specification does not require the user to provide verification information, the user account can be logged in to the device even if the device does not have a camera.

[0140] Based on the same idea, the embodiment of this specification also provides a device corresponding to the above method. Figure 8 is a structural diagram of a triggering device for a login process corresponding to Figure 2 provided in the embodiment of this specification. As shown in Figure 8, the device may include: an information acquisition module 802, used to obtain a login request sent by a first device for logging into the target application; the login request contains a first login credential and a first device identifier of the first device; a credential determination module 804, used to determine the second login credential corresponding to the first device identifier; the second login credential is a credential generated after the first device establishes a trust relationship with the user account of the target application and used for the first device to log in to the user account; a judgment module 806, used to judge whether the first login credential is consistent with the second login credential, and obtain a first judgment result; a login process triggering module 808, used to trigger the process of logging into the target application on the first device with the user account if the first judgment result indicates that the first login credential is consistent with the second login credential.

[0141] Based on the same idea, the embodiment of this specification also provides a device corresponding to the above method. Figure 9 is a structural diagram of a triggering device for a login process corresponding to Figure 4 provided in the embodiment of this specification. As shown in Figure 9, the device may include: a first operation acquisition module 902, used to obtain the first operation of the user to open the target application; a page display module 904, used to display a login page based on the first operation; the login page includes the account information of the user account and a login operation control for indicating that the first device is used as a trusted device to log in to the target application using the user account; a second operation acquisition module 906, used to obtain the user's second operation on the login operation control; a request generation module 908, used to generate a login request for requesting to log in to the target application using the user account based on the second operation; the login request includes the first login credential and the first device identifier of the first device; a request sending module 910, used to send the login request to the server, so that after the first login credential is verified, the server triggers the process of logging in to the target application on the first device with the user account.

[0142] Based on the same idea, the embodiment of this specification also provides a device corresponding to the above method. Figure 10 is a structural diagram of a device for setting a trusted device corresponding to Figure 6 provided in the embodiment of this specification. As shown in Figure 10, the device may include: a setting page acquisition module 1002, used to obtain a trusted device setting page containing device information of a historical login device sent by the server; the historical login device is a device that has logged in to the target application using a user account; a setting page display module 1004, used to display the trusted device setting page; the trusted device setting page contains a first confirmation control; a confirmation operation acquisition module 1006, used to obtain the user's first confirmation operation on the first confirmation control; a setting request generation module 1008, used to generate a trusted device setting request based on the first confirmation operation; the trusted device setting request includes the device identifier of the historical login device determined by the user to be set as a trusted device; a setting request sending module 1010, used to send the trusted device setting request to the server so that the server generates the login credentials corresponding to the trusted device; the login credentials are credentials used to log in to the target application using the user account.

[0143] Based on the same idea, the embodiments of this specification also provide devices corresponding to the above methods.

[0144] FIG11 is a schematic diagram of a device for triggering a login process corresponding to FIG2 or FIG4 or a device for setting a trusted device corresponding to FIG6 according to an embodiment of the present specification. As shown in FIG11 , the device 1100 may include: at least one processor 1110; and a memory 1130 in communication with the at least one processor; wherein, corresponding to the method for triggering a login process shown in FIG2 , the memory 1130 stores instructions 1120 executable by the at least one processor 1110, the instructions being executed by the at least one processor 1110 so as to enable the at least one processor 1110 to: obtain a login request sent by a first device for logging into a target application; the login request including a first login credential and a first device identifier of the first device; determine a second login credential corresponding to the first device identifier; the second login credential being a credential generated after the first device establishes a trust relationship with a user account of the target application and used for the first device to log into the user account; determine whether the first login credential and the second login credential are consistent, obtaining a first determination result; and if the first determination result indicates that the first login credential and the second login credential are consistent, triggering a process for logging into the target application on the first device using the user account.

[0145] Among them, corresponding to a triggering method of a login process shown in Figure 4, the memory 1130 stores instructions 1120 that can be executed by the at least one processor 1110, and the instructions are executed by the at least one processor 1110 so that the at least one processor 1110 can: obtain a first operation of the user to open the target application; based on the first operation, display a login page; the login page includes account information of the user account and a login operation control for indicating that the first device is used as a trusted device to log in to the target application using the user account; obtain a second operation of the user on the login operation control; based on the second operation, generate a login request for requesting to log in to the target application using the user account; the login request includes the first login credential and the first device identifier of the first device; send the login request to the server, so that after the first login credential is verified, the server triggers the process of logging in to the target application on the first device with the user account.

[0146] Among them, corresponding to a method for setting a trusted device shown in Figure 6, the memory 1130 stores instructions 1120 that can be executed by the at least one processor 1110, and the instructions are executed by the at least one processor 1110 so that the at least one processor 1110 can: the second device obtains a trusted device setting page sent by the server containing device information of a historical login device; the historical login device is a device that has logged in to the target application using a user account; the trusted device setting page is displayed; the trusted device setting page contains a first confirmation control; the user's first confirmation operation on the first confirmation control is obtained; based on the first confirmation operation, a trusted device setting request is generated; the trusted device setting request includes the device identifier of the historical login device determined by the user to be set as a trusted device; the trusted device setting request is sent to the server so that the server generates login credentials corresponding to the trust information; the login credentials are credentials used to log in to the target application using the user account.

[0147] Based on the same idea, the embodiments of this specification also provide a computer-readable medium corresponding to the above method. The computer-readable medium stores computer-readable instructions, which can be executed by a processor to implement the above login process triggering method or the method of setting a trusted device.

[0148] The various embodiments in this specification are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the device shown in FIG11 is generally similar to the method embodiment, so the description is relatively simple. For relevant parts, refer to the description of the method embodiment.

[0149] In the 1990s, technological improvements could be clearly distinguished as either hardware improvements (for example, improvements to circuit structures like diodes, transistors, and switches) or software improvements (improvements to process flows). However, with the advancement of technology, many process flow improvements today can now be considered direct improvements to hardware circuit structures. Designers almost always create the corresponding hardware circuit structure by programming the improved process flow into the hardware circuit. Therefore, it cannot be said that a process flow improvement cannot be implemented using hardware modules. For example, a programmable logic device (PLD), such as a field programmable gate array (FPGA), is an integrated circuit whose logical function is determined by user programming. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to hire a chip manufacturer to design and manufacture a dedicated integrated circuit chip. Moreover, nowadays, instead of manually fabricating integrated circuit chips, this programming is mostly done using "logic compiler" software. This is similar to the software compiler used when developing programs. Before compilation, the original code must also be written in a specific programming language, called a hardware description language (HDL). There is not just one HDL, but many, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art will also understand that by simply programming the method flow in one of these hardware description languages ​​and then programming it into an integrated circuit, a hardware circuit that implements the logic method flow can be easily obtained.

[0150] The controller can be implemented in any suitable manner. For example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also know that in addition to implementing the controller in a purely computer-readable program code format, the controller can be implemented in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered a hardware component, and the devices included therein for implementing various functions can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules that implement the method and structures within the hardware component.

[0151] The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0152] For the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing this application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0153] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0154] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to embodiments of the invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the function specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0155] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0156] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0157] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory. Memory may include non-permanent storage in a computer-readable medium, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0158] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory media such as modulated data signals and carrier waves.

[0159] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.

[0160] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. The present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0161] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communications network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0162] The foregoing is merely an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for triggering a login process, comprising: Obtaining a login request sent by the first device for logging into a target application; The login request includes a first login credential and a first device identifier of the first device; Determine a second login credential corresponding to the first device identifier; the second login credential is a credential used for the first device to log in to the user account after the first device establishes a trust relationship with the user account of the target application; Determine whether the first login credential is consistent with the second login credential, and obtain a first determination result; If the first determination result indicates that the first login credential is consistent with the second login credential, a process of logging in to the target application on the first device with the user account is triggered.

2. The method according to claim 1, before triggering the process of logging into the target application on the first device with the user account, further comprising: Determine whether the first login credential is within the validity period of the first login credential to obtain a second determination result; The process of triggering the user account to log in to the target application on the first device specifically includes: If the second judgment result indicates that the first login credential is within the validity period of the first login credential, a process of logging in to the target application on the first device with the user account is triggered.

3. The method according to claim 1, before determining the second login credential corresponding to the first device identifier, further comprising: Parsing the first login credential to obtain a second device identifier included in the first login credential; Determine whether the second device identifier is consistent with the first device identifier, and obtain a third determination result; The determining the second login credential corresponding to the first device identifier specifically includes: If the third judgment result indicates that the second device identifier is consistent with the first device identifier, the second login credential corresponding to the first device identifier is searched.

4. The method according to claim 1, before obtaining the login request sent by the first device for logging into the target application, further comprising: Obtain device information of historical login devices that have used the user account to log in to the target application; The historical login device includes the first device; Generate a trusted device setting page containing device information of the historical login device; the device information includes at least one of a device model and a device custom name; Sending the trusted device setting page to a second device; the second device is a device that is in a login state of logging into the target application using the user account before the first device sends the login request; Acquire a trusted device setting request sent by the second device based on the trusted device setting page; the trusted device setting request includes a device identifier of the first device; Based on the device identification of the first device, determining the first device as a trusted device; The trusted device is used to represent a device that has permission to log in to the user account in the target application using login credentials.

5. The method according to claim 4, after determining the first device as a trusted device, further comprising: Based on the device identification of the first device, generating the second login credential corresponding to the first device; sending the second login credential to the first device; The correspondence between the second login credential and the first device is saved.

6. The method according to claim 4, before determining the first device as a trusted device, further comprising: Obtaining first information to be verified sent by the second device; Determine whether the first information to be verified is consistent with the first preset verification information, and obtain a fourth determination result; The first preset verification information includes at least one of registration verification information and identity authentication information; the registration verification information is the verification information provided by the user when registering the target application with the user account; the identity authentication information is the identity information provided by the user during user authentication based on the user account; The determining the first device as a trusted device specifically includes: If the fourth judgment result indicates that the first information to be verified is consistent with the first preset verification information, the first device is determined as a trusted device.

7. The method according to claim 5, before sending the second login credential to the first device, further comprising: Obtaining a verification login request sent by the first device, wherein the verification login request includes account information of the user account and second information to be verified provided by the user in the first device; Determine whether the second information to be verified is consistent with the second preset verification information, and obtain a fifth judgment result; The second preset verification information includes at least one of registration verification information and identity authentication information; the registration verification information is the verification information provided by the user when registering the target application with the user account; the identity authentication information is the identity information provided by the user during user authentication based on the user account; If the fifth judgment result indicates that the second information to be verified is consistent with the second preset verification information, allowing the first device to log in to the target application using the user account; The sending the second login credential to the first device specifically includes: When the first device is in a login state of using the target account to log in to the target application, the second login credential is sent to the first device.

8. The method according to claim 4, wherein the trusted device determination page further includes device information of the second device; the method further includes: The second device is determined as the trusted device.

9. The method according to claim 8, after determining the second device as the trusted device, further comprising: Based on the device identification of the second device, generate a third login credential corresponding to the second device; sending the third login credential to the second device; The correspondence between the third login credential and the second device is saved.

10. The method according to claim 1, further comprising: After triggering a process of logging into the target application on the first device with the user account, deleting the correspondence between the second login credential and the first device.

11. The method according to claim 10, further comprising: generating a fourth login credential based on the device identification of the first device; Saving the correspondence between the fourth login credential and the first device; The fourth login credential is sent to the first device.

12. The method according to claim 1, after triggering the process of logging into the target application on the first device with the user account, further comprising: Deregister the user account from other devices.

13. The method according to claim 1, further comprising: Determine whether the user account has logged into multiple devices within a preset time period, and obtain a fifth determination result; If the fifth judgment result indicates that the user account has logged in to multiple devices within a preset time period, a reminder message is sent to at least one of the multiple devices to prompt the user to set up a trusted device; the trusted device is used to represent a device that has permission to log in to the user account in the target application using the login credentials.

14. A method for triggering a login process, comprising: The first device obtains a first operation of a user to start a target application; Based on the first operation, displaying a login page; The login page includes account information of the user account and a login operation control for indicating that the first device is used as a trusted device to log in to the target application using the user account; Acquire a second operation of the user on the login operation control; Based on the second operation, generating a login request for requesting to log in to the target application using the user account; The login request includes the first login credential and a first device identifier of the first device; The login request is sent to a server, so that the server triggers a process of logging in the target application on the first device with the user account after the first login credential is verified.

15. A method for setting a trusted device, comprising: The second device obtains a trusted device setting page including device information of a historically logged-in device sent by the server; the historically logged-in device is a device that has logged in to the target application using a user account; Displaying the trusted device setting page; the trusted device setting page includes a first confirmation control; Obtaining a first confirmation operation of the user on the first confirmation control; Based on the first confirmation operation, a trusted device setting request is generated; the trusted device setting request includes a device identifier of the historical login device determined by the user to be set as a trusted device; Sending the trusted device setting request to the server so that the server generates login credentials corresponding to the trusted device; The login credential is a credential used to log in to the target application using the user account.

16. A triggering device for a login process, comprising: An information acquisition module, used to acquire a login request sent by the first device for logging into a target application; The login request includes a first login credential and a first device identifier of the first device; a credential determination module, configured to determine a second login credential corresponding to the first device identifier; the second login credential being a credential used for logging into the user account of the first device after the first device establishes a trust relationship with the user account of the target application; A judgment module, used to judge whether the first login credential is consistent with the second login credential, and obtain a first judgment result; A login process triggering module is used to trigger a process of logging in to the target application on the first device with the user account if the first judgment result indicates that the first login credential is consistent with the second login credential.

17. A triggering device for a login process, comprising: A first operation acquisition module, used to acquire a first operation of a user to start a target application; A page display module, used for displaying a login page based on the first operation; The login page includes account information of the user account and a login operation control for indicating that the first device is used as a trusted device to log in to the target application using the user account; A second operation acquisition module, used to acquire a second operation of the user on the login operation control; A request generating module, configured to generate, based on the second operation, a login request for requesting to log in to the target application using the user account; The login request includes the first login credential and a first device identifier of the first device; The request sending module is used to send the login request to the server, so that the server triggers the process of logging in the target application on the first device with the user account after the first login credential is verified.

18. An apparatus for setting a trusted device, comprising: A setting page acquisition module, used to acquire a trusted device setting page including device information of a historically logged-in device sent by a server; the historically logged-in device is a device that has logged into the target application using a user account; A setting page display module, used to display the trusted device setting page; the trusted device setting page includes a first confirmation control; A confirmation operation acquisition module, used to acquire a first confirmation operation of the user on the first confirmation control; A setting request generating module, configured to generate a trusted device setting request based on the first confirmation operation; the trusted device setting request includes a device identifier of the historically logged-in device determined by the user to be set as a trusted device; a setting request sending module, used for sending the trusted device setting request to the server, so that the server generates a login credential corresponding to the trusted device; The login credential is a login credential used to log in to the target application using the user account.

19. A triggering device for a login process, comprising: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor. processor execution so that the at least one processor is capable of: Obtaining a login request sent by a first device for logging into a target application; the login request includes a first login credential and a first device identifier of the first device; Determine a second login credential corresponding to the first device identifier; the second login credential is a credential used for the first device to log in to the user account after the first device establishes a trust relationship with the user account of the target application; Determine whether the first login credential is consistent with the second login credential, and obtain a first determination result; If the first determination result indicates that the first login credential is consistent with the second login credential, a process of logging in to the target application on the first device with the user account is triggered.

20. A triggering device for a login process, comprising: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Get the first operation of the user to open the target application; Based on the first operation, displaying a login page; the login page includes account information of the user account and a login operation control for indicating that the first device is used as a trusted device to log in to the target application using the user account; Acquire a second operation of the user on the login operation control; Based on the second operation, generating a login request for requesting to log in to the target application using the user account; the login request includes the first login credential and a first device identifier of the first device; The login request is sent to a server, so that the server triggers a process of logging in the target application on the first device with the user account after the first login credential is verified.

21. A device for setting a trusted device, comprising: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Obtain a trusted device setting page sent by the server that contains device information of a historically logged-in device; the historically logged-in device is a device that has logged into the target application using a user account; Displaying the trusted device setting page; the trusted device setting page includes a first confirmation control; Obtaining a first confirmation operation of the user on the first confirmation control; Based on the first confirmation operation, a trusted device setting request is generated; the trusted device setting request includes a device identifier of the historical login device determined by the user to be set as a trusted device; The trusted device setting request is sent to the server so that the server generates a login credential corresponding to the trusted device; the login credential is a login credential used to log in to the target application using the user account.

22. A computer-readable medium having computer-readable instructions stored thereon, wherein the computer-readable instructions can be executed by a processor to implement the method for triggering the login process described in any one of claims 1 to 13 or the method for triggering the login process described in claim 14 or the method for setting a trusted device described in claim 15.

Citation Information

Patent Citations

  • Multi-system login method, apparatus, computer device, and storage medium

    CN109274685A

  • Shared login method and device, computer readable storage medium and electronic equipment

    CN113612756A

  • Triggering method and device of login process, equipment and medium

    CN116405270A

  • Login authorisation method and apparatus, and login method and apparatus

    WO2018113690A1