User login method and electronic device

By performing biometric identity authentication on old devices and utilizing FIDO authentication technology, the problem of login failure caused by users forgetting their passwords is solved, convenient and secure login with cross-device verification is achieved, and the user experience is improved.

CN117131481BActive Publication Date: 2024-09-06HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310138354.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-09
Publication Date
2024-09-06
Estimated Expiration
2043-02-09

AI Technical Summary

Technical Problem

When users replace new electronic devices, they forget their passwords because they have not logged in for a long time, resulting in login failures and affecting user experience. The login process of the existing technology is cumbersome and has low security.

Method used

By performing biometric authentication on the old electronic device, generating a key and associating it with the server, the old device assists the new device in user login using FIDO authentication technology. The user selects the cross-device verification login method on the new device without entering a password. Or verification code, use Bluetooth connection and other methods to establish communication to achieve login.

Benefits of technology

It improves the user login success rate, simplifies the login process, enhances the security and convenience of login, and ensures the smooth login of users on new devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117131481B
    Figure CN117131481B
Patent Text Reader

Abstract

The embodiment of the present application provides a user login method and an electronic device, which is executed by a first electronic device, including: displaying a user login page, the user login page includes a first control, the first control is used to trigger a request for a second electronic device to assist the first electronic device in performing user login; if a user triggers the first control, a user login request is sent to the second electronic device, the user login request carries the device identification of the first electronic device, and the user account to be logged in on the first electronic device is the same as the user account logged in on the second electronic device; receiving a user login credential from the second electronic device, and performing user login according to the user login credential, the user login credential being the credential obtained by the second electronic device after user identity authentication. This method can improve the user's login success rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] In order to better serve users, electronic devices provide an account function. Users can register an account on the electronic device and log in according to the registered account to experience more user rights.

[0003] Currently, users usually log in to electronic devices according to the account and password set during registration. However, when users change to new electronic devices, they may forget their passwords due to not having logged in for a long time, resulting in login failures and affecting the user experience. Summary of the invention

[0004] The present application provides a user login method and electronic device, which can improve the user's login success rate.

[0005] In a first aspect, the present application provides a user login method, which is executed by a first electronic device, and the method includes: displaying a user login page, the user login page including a first control, the first control being used to trigger a request for a second electronic device to assist the first electronic device in performing user login; if a user trigger operation on the first control is received, a user login request is sent to the second electronic device, the user login request carries a device identification of the first electronic device, and the user account to be logged in on the first electronic device is the same as the user account already logged in on the second electronic device; receiving a user login credential from the second electronic device, and performing user login according to the user login credential, the user login credential being a credential obtained by the second electronic device after user identity authentication.

[0006] Among them, the user login page (also referred to as the account login page) can be displayed through the account login application or the setting application, and the user can enter the user account and password on this page to log in. In order to improve the user's login success rate, this application uses another electronic device (i.e., the second electronic device) that has logged in the same user account to assist the first electronic device in performing the user login process. Therefore, the user login page can have a first control (also referred to as a cross-device verification login control) for triggering the second electronic device to assist the first electronic device in user login. If the user triggers the control, the first electronic device can send a user login request to the second electronic device, and perform user login based on the user login credentials (such as a temporary Token, etc.) returned by the second electronic device.

[0007] Optionally, the user login credential may be a credential obtained by the second electronic device after the user's biometric information is authenticated.

[0008] With the above user login method, when a user logs in on a new electronic device, he or she only needs to select the cross-device verification login method and perform security authentication on the old electronic device. There is no need to enter a password or verification code, which can improve the user's login success rate.

[0009] In combination with the first aspect, in some implementations of the first aspect, if a first operation input by a user is received, the method further includes: sending a request message to a server, the request message being used to request encryption of a device identification of a first electronic device; receiving first information from the server, and determining a user login request based on the first information, the first information being information after encrypting the device identification of the first electronic device.

[0010] Among them, to improve data security, before the first electronic device sends a user login request to the second electronic device, it can also request the server to encrypt the device identification (or device information) of the first electronic device, and send the encrypted information to the second electronic device. Here, the key used by the server for encryption can be the public key corresponding to the user account to be logged in by the first electronic device. Since the user account has been logged in on the second electronic device, the second electronic device can transmit the public key to the server when performing identity authentication.

[0011] In combination with the first aspect, in some implementation methods of the first aspect, the above-mentioned user login based on the user login credentials includes: applying for user login to the server based on the user login credentials; receiving a login success message sent from the server after the user login credentials are verified; and displaying a user login success page.

[0012] After the first electronic device receives the user login credentials, it can apply to the server for user login based on the user login credentials. The server can verify the user login credentials based on the device identification of the first electronic device. If the verification is successful, the first electronic device is allowed to log in, and then the first electronic device can display a user login success page. Through the security verification process of the server, the security of user login can be improved.

[0013] In combination with the first aspect, in some implementations of the first aspect, the user account logged in on the second electronic device has been authenticated by the online fast identity authentication service FIDO.

[0014] After logging into the user account, the second electronic device can then register with FIDO and authenticate itself through biometric security authentication. At the same time, it can also generate a corresponding key (passkey) based on the FIDO service, keep the private key locally, and send the public key to the server. The server can then associate the passkey with the user account for subsequent security authentication processes.

[0015] In combination with the first aspect, in some implementations of the first aspect, before sending a user login request to the second electronic device, the method further includes: sending a connection request to the second electronic device; receiving a confirmation message returned from the second electronic device in response to the connection request, and establishing a communication connection with the second electronic device.

[0016] Among them, it can be known from the above description that there is a data transmission process between the first electronic device and the second electronic device, so a communication connection needs to be established between the first electronic device and the second electronic device. Optionally, the first electronic device can establish a communication connection with the second electronic device before the trigger operation is input for the first control, or it can establish a communication connection with the second electronic device after the trigger operation is input for the first control. Optionally, the communication connection established between the first electronic device and the second electronic device is a Bluetooth connection.

[0017] In combination with the first aspect, in some implementations of the first aspect, when the user logs in successfully, the method further includes: establishing a trust ring with the second electronic device, and synchronizing a key corresponding to the user account in the second electronic device based on the trust ring.

[0018] Through the above process, the user can successfully log in on the first electronic device and is in the login state after passing the security authentication of the second electronic device. Then, the first electronic device can join the trust ring where the second electronic device is located, and the second electronic device can encrypt and transmit its own passkey to the first electronic device through the trust ring. Therefore, the first electronic device can also perform a series of identity authentication processes through the passkey in the future.

[0019] In a second aspect, the present application provides a user login method, which is executed by a second electronic device, where a user account has been logged in. The method includes: receiving a user login request from a first electronic device, where the user login request carries a device identifier of the first electronic device, where the user account to be logged in on the first electronic device is the same as the user account already logged in on the second electronic device; performing user identity authentication based on the user login request; and if the user identity authentication passes, obtaining and sending the user login credentials to the first electronic device.

[0020] If the second electronic device has logged in to the user account, it can assist the first electronic device in logging in. When the second electronic device receives the user login request from the first electronic device, it can perform user identity authentication (which can also be security authentication) and apply to the server for the user login credentials for logging in to the first electronic device.

[0021] With the above user login method, when a user logs in on a new electronic device, he or she only needs to select the cross-device verification login method and perform security authentication on the old electronic device. There is no need to enter a password or verification code, which can improve the user's login success rate.

[0022] In some implementations, the above-mentioned user identity authentication based on the user login request includes: displaying a first prompt box based on the user login request, the first prompt box being used to prompt the user whether to allow logging into the user account on the first electronic device; if an operation is received from the user to allow logging into the user account on the first electronic device, displaying a second prompt box being used to prompt the user to input identity authentication information; receiving and authenticating the identity authentication information input by the user.

[0023] In this implementation, after receiving the user's login request, the second electronic device may pop up a first prompt box (i.e., a login request prompt box), and when the user selects the Allow login option on the login request prompt box, a second prompt box (i.e., a secure login prompt box) may pop up, and the user may enter identity authentication information (i.e., secure login information) through the secure login prompt box. For example, the secure login prompt box may prompt the user to verify only through fingerprint recognition, or only through face recognition, or through fingerprint recognition or face recognition, etc. Optionally, the above-mentioned identity authentication information may be biometric information.

[0024] When the user enters the corresponding security login information, the second electronic device can optionally verify the security login information through the FIDO service running in the TEE environment to determine whether it is authenticated user information. In this application, the security of the login process can be improved by using FIDO authentication technology.

[0025] In combination with the second aspect, in some implementations of the second aspect, the above-mentioned obtaining and sending the user login credentials to the first electronic device includes: obtaining the user login credentials from the server according to the device identification of the first electronic device; and sending the user login credentials to the first electronic device.

[0026] Optionally, the user login credentials obtained by the second electronic device from the server can be a temporary token. When the second electronic device applies for the temporary token from the server, the server can match the temporary token with the device identification of the first electronic device for verification when the first electronic device applies for user login.

[0027] In some implementations, when the device identification of the first electronic device carried in the user login request is encrypted, before obtaining the user login credentials from the server, the method further includes: decrypting the device identification of the first electronic device.

[0028] Among them, the key used by the second electronic device to decrypt the device identification of the first electronic device is the private key used for FIDO authentication, and the private key corresponds to the public key used by the server to encrypt the device identification of the first electronic device.

[0029] In combination with the second aspect, in some implementations of the second aspect, before receiving a user login request from the first electronic device, the method further includes: receiving a connection request from the first electronic device; returning a confirmation message to the first electronic device in response to the connection request, and establishing a communication connection with the first electronic device.

[0030] Among them, it can be known from the above description that there is a data transmission process between the first electronic device and the second electronic device, so a communication connection needs to be established between the first electronic device and the second electronic device. Optionally, the first electronic device can establish a communication connection with the second electronic device before the trigger operation is input for the first control, or it can establish a communication connection with the second electronic device after the trigger operation is input for the first control. Optionally, the communication connection established between the first electronic device and the second electronic device is a Bluetooth connection.

[0031] In a third aspect, the present application provides a device, which is included in an electronic device, and the device has the function of implementing the electronic device behavior in the first aspect and the possible implementation of the first aspect, or has the function of implementing the electronic device behavior in the second aspect and the possible implementation of the second aspect. The function can be implemented by hardware, or by hardware executing the corresponding software implementation. The hardware or software includes one or more modules or units corresponding to the above functions. For example, a receiving module or unit, a processing module or unit, etc.

[0032] In a fourth aspect, the present application provides an electronic device, comprising: a processor, a memory, and an interface; the processor, the memory, and the interface cooperate with each other so that the electronic device executes any one of the methods in the technical solution of the first aspect, or executes any one of the methods in the technical solution of the second aspect.

[0033] In a fifth aspect, the present application provides a user login system, comprising a first electronic device and a second electronic device, wherein the first electronic device executes any one of the methods in the technical solution of the first aspect, and the second electronic device executes any one of the methods in the technical solution of the second aspect.

[0034] In a sixth aspect, the present application provides a chip, including a processor. The processor is used to read and execute a computer program stored in a memory to execute the method in the first aspect and any possible implementation thereof, or execute the method in the second aspect and any possible implementation thereof.

[0035] Optionally, the chip also includes a memory, and the memory is connected to the processor via a circuit or wire.

[0036] Further optionally, the chip also includes a communication interface.

[0037] In the seventh aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the processor executes any one of the methods in the technical solution of the first aspect, or executes any one of the methods in the technical solution of the second aspect.

[0038] In an eighth aspect, the present application provides a computer program product, which includes: a computer program code, which, when the computer program code runs on an electronic device, enables the electronic device to execute any one of the methods in the technical solution of the first aspect, or execute any one of the methods in the technical solution of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a schematic diagram of a user login process provided by the related technology;

[0040] Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0041] Figure 3 is a software structure block diagram of an electronic device provided in an embodiment of the present application;

[0042] Figure 4 is a software structure block diagram of another electronic device provided in an embodiment of the present application;

[0043] Figure 5 This is a schematic diagram of an account login page provided in an embodiment of the present application;

[0044] Figure 6 is a schematic diagram of a Bluetooth setting page on a first electronic device provided in an embodiment of the present application;

[0045] Figure 7 is a schematic diagram of a Bluetooth pairing request page on a second electronic device provided in an embodiment of the present application;

[0046] Figure 8 is a schematic diagram of an example of a login request page on a second electronic device provided in an embodiment of the present application;

[0047] Fig. 9 is a schematic diagram of a security authentication page on a second electronic device provided in an embodiment of the present application;

[0048] Fig.10This is a schematic diagram of a page on a first electronic device after a user completes login, provided in an embodiment of the present application;

[0049] Fig.11 This is a flowchart of a user login method provided in an embodiment of the present application;

[0050] Fig.12 This is a schematic diagram of a process of establishing a Bluetooth connection between a first electronic device and a second electronic device provided in an embodiment of the present application;

[0051] Fig.13 is a flowchart of another user login method provided in an embodiment of the present application;

[0052] Fig.14 This is a schematic diagram of a process for synchronizing information based on a trust ring provided in an embodiment of the present application;

[0053] Fig.15 This is a flowchart of another user login method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0054] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0055] In the following, the terms "first", "second", and "third" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", and "third" may explicitly or implicitly include one or more of the features.

[0056] Currently, in addition to applications (APPs) having account functions, electronic devices have also launched account functions. Users can register accounts and log in on electronic devices. At the same time, the registered accounts can also be logged in on other electronic devices of the same brand as the electronic device to realize services such as user information sharing between electronic devices.

[0057] For example, Figure 1As shown, taking the electronic device as a mobile phone as an example, there is a "login account" control 11 on the setting page of the mobile phone. After the user clicks the control, the mobile phone can jump to the login page. On the login page, the user can enter the account and password set during registration, and the login process can be completed if the verification passes. Alternatively, in the case where the account set by the user is a mobile phone number, the login process can also be completed by using the mobile phone number and SMS verification code.

[0058] However, in the related art, after a user logs in on an electronic device, he or she usually remains logged in for a long time. If a user changes to a new electronic device and then logs in again, he or she may forget the password because he or she has not logged in for a long time, resulting in a login failure, which affects the user experience. Alternatively, if the account set by the user is a mobile phone number, verification is required through a text message verification code, or the user can use an old electronic device to scan an identification code (such as a QR code) on a new electronic device to assist in completing the login operation on the new electronic device, but this operation process is relatively cumbersome and less secure.

[0059] In view of this, the embodiment of the present application provides a user login method, which can be based on a trusted execution environment, and can use biometrics to assist the old electronic device to implement the user's login process on the new electronic device, thereby improving the user's login success rate. At the same time, the operation process is relatively convenient and has high security. It should be noted that the user login method provided in the embodiment of the present application can be applied to mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA) and other electronic devices with user login functions. The embodiment of the present application does not impose any restrictions on the specific types of electronic devices.

[0060] Among them, the trusted execution environment in the embodiment of the present application can be a TEE (trusted execution environment) environment, which can be an area on the CPU in an electronic device. The function of this area is to provide a safer space for the execution of data and code, and to ensure the confidentiality and integrity of the data and code. In the trusted execution environment, an identity authentication service can be run to authenticate the user who logs in to the electronic device. For example, the identity authentication service can be a fast identity online service (FIDO Service), which can realize the secure login of users between multiple electronic devices. For the specific implementation process of the user login method proposed in the embodiment of the present application, please refer to the description in the following embodiment for details.

[0061] The following first introduces the structure and software architecture of the electronic device in the embodiment of the present application. Figure 2 1 is a schematic diagram of the structure of an example of an electronic device 100 provided in an embodiment of the present application. Taking the electronic device 100 as a mobile phone as an example, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0062] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0063] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0064] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0065] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0066] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0067] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0068] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0069] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0070] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0071] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. GNSS may include the global positioning system (GPS), the global navigation satellite system (GLONASS), the Beidou navigation satellite system (BDS), the quasi-zenith satellite system (QZSS) and / or the satellite based augmentation system (SBAS).

[0072] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0073] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0074] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0075] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0076] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

[0077] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0078] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0079] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0080] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.

[0081] Figure 31 is a software structure diagram of the electronic device 100 of the embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer. The application layer can include a series of application packages.

[0082] like Figure 3 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.

[0083] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0084] like Figure 3 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0085] The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make the data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc. The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures. The phone manager is used to provide communication functions for the electronic device 100. For example, the management of call status (including connected, hung up, etc.). The resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, video files, etc. The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the top status bar of the system in the form of an icon or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0086] Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0087] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0088] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0089] The system library may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0090] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of multiple common audio and video formats, as well as static image files. The media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing. The 2D graphics engine is a drawing engine for 2D drawing.

[0091] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, Bluetooth driver, audio driver, sensor driver, etc.

[0092] In some embodiments, Figure 3 The software structure of the electronic device shown is based on Figure 4 As shown, the application package of the application layer in the electronic device can be an Android application package (android application package, APK). In addition, the application layer can also include a software development kit (software development kit, SDK).

[0093] Among them, APK is an application package file format used by the Android system to distribute and install applications and middleware. If an Android application code wants to run on an Android device, it must first be compiled and then packaged into a file that can be recognized by the Android system before it can be run. The file format that can be recognized and run by the Android system is APK. SDK can be broadly referred to as a collection of related documents, examples, and tools that assist in the development of a certain type of software.

[0094] Exemplarily, the APK in the embodiments of the present application may include an account APK for managing user accounts, and the account APK may integrate a FIDO-based SDK.

[0095] In addition to the application layer and the above Figure 3 Each level in Figure 4 In addition to the above (not shown), Figure 4 As shown, the electronic device may also include a security system, in which a TEE environment runs, and the FIDO Service for identity verification can run in the TEE environment. In actual applications, the FIDO Service can upload the verification results to the SDK of the application layer through the interface between the layers, and the SDK then transmits them to the caller (such as an account login application, etc.) through the interface.

[0096] Based on the electronic device with the structure shown above, the interface operation process of the user login method provided in the embodiment of the present application is described below in combination with the accompanying drawings and application scenarios.

[0097] First of all, it should be noted that the user login method provided in the embodiment of the present application is that the old electronic device assists the new electronic device to complete the user login process. For the convenience of description, the new electronic device is referred to as the first electronic device and the old electronic device is referred to as the second device. It should be noted that the old electronic device (i.e., the second electronic device) needs to have a logged-in user account, and the user account has been FIDO authenticated, and the user account to be logged in on the new electronic device (i.e., the first electronic device) is the same as the user account logged in on the old electronic device; for example, the same SIM card has been inserted into the first electronic device and the second electronic device, and the mobile phone number corresponding to the SIM card has been registered and logged in on the second electronic device.

[0098] When the user uses the first electronic device, if he wants to log in to the user account, he can log in through the account login application or the login entrance of the setting application. For example, taking the login from the login entrance of the setting application as an example, Figure 5 As shown, users can click Figure 5In the login account control 51, the first electronic device can display an account login page. On this page, if a SIM card has been inserted into the first electronic device, the phone number corresponding to the SIM card can be automatically identified and displayed, and the user can log in with one key or in other ways based on the phone number. In order to improve the success rate of user login and ensure the security of the user login process, the user login method provided in the embodiment of the present application is a process of logging in through other ways.

[0099] Continue to see Figure 5 When the user clicks on the other login control 52, the first electronic device can switch the account login page, and the switched page provides entrances to different login methods. On the one hand, the user can verify the login by mobile phone number, email address or account name, but the login method usually requires entering a password or verification code, and the process is similar to the above-mentioned related technology; on the other hand, the cross-device verification login method provided by the embodiment of the present application is a login method that needs to be assisted by the second electronic device. It can be understood that if the first electronic device is not inserted with a SIM card, the page containing the phone number may not be displayed, and the page providing the entrance to different login methods may be directly displayed, where the user can manually fill in the user account to be logged in.

[0100] On the switched page, if the user clicks the cross-device authentication login control 53, the first electronic device can jump to Figure 6 The Bluetooth settings page shown in (a) of FIG. That is to say, when the second electronic device assists the first electronic device in logging in a user, the first electronic device needs to establish a communication connection with the second electronic device. The present application embodiment takes the establishment of a Bluetooth connection as an example. Of course, other communication connections can also be established, such as Wi-Fi P2P connection, NFC connection, etc. It can be understood that the first electronic device and the second electronic device need to turn on the Bluetooth switch in advance, or jump to the first electronic device. Figure 6 When viewing the page shown in Figure (a), turn on the Bluetooth switches of the two electronic devices to ensure that the two electronic devices successfully establish a Bluetooth connection.

[0101] exist Figure 6 On the page shown in Figure (a), if the first electronic device has turned on the Bluetooth switch, paired devices and available devices can be displayed. The paired devices refer to devices that have established a Bluetooth connection with the first electronic device, and the available devices refer to devices that are currently searched through Bluetooth signals but have not yet established a Bluetooth connection with the first electronic device. If the second electronic device has also turned on the Bluetooth switch, the device information of the second electronic device (such as device name, model, etc.) can be displayed in the available devices displayed by the first electronic device. Figure 6As shown in Figure (a) of FIG. 1 , the available devices displayed on the Bluetooth setting page of the first electronic device include the second electronic device. On this page, if the user selects the second electronic device, the first electronic device can send a pairing request to the second electronic device to establish a Bluetooth connection with the second electronic device. Correspondingly, the pairing request will be displayed on the second electronic device, for example Figure 7 As shown, a pairing request prompt box may pop up on the second electronic device. If the user selects the "Agree" option, the Bluetooth connection process between the first electronic device and the second electronic device is completed.

[0102] After the first electronic device establishes a Bluetooth connection with the second electronic device, the second electronic device can be displayed in the paired devices displayed by the first electronic device, see the above Figure 6 In Figure (b), the paired devices displayed on the Bluetooth setting page of the first electronic device include the second electronic device. At this time, if the user selects the second electronic device, the second electronic device will be triggered to assist the first electronic device in logging in. It can be understood that the first electronic device and the second electronic device can also establish a Bluetooth connection in advance. Figure 5 If the cross-device authentication login control 53 is clicked on the interface shown, the first electronic device can directly display Figure 6 The page shown in Figure (b) in the figure.

[0103] When the user Figure 6 When the second electronic device is selected on the page shown in Figure (b), the first electronic device can send a Bluetooth broadcast to the second electronic device to request the second electronic device to perform a verification login. At this time, a login request prompt box may pop up on the second electronic device, such as Figure 8 As shown, the login request prompt box popped up by the second electronic device may display a prompt message such as "Your account will be logged in on a new device." If the user is sure that he needs to log in on the first electronic device, he can select the Allow Login option. If the user does not need to log in on the first electronic device temporarily, he can select the Cancel option.

[0104] If the user selects the option to allow login, the second electronic device jumps to Fig. 9 The page shown. Since the second electronic device has been FIDO certified, if you choose to allow login, the user needs to perform biometric security authentication on the second electronic device. For example Fig. 9As shown in , verification can be performed only through fingerprint recognition, or only through face recognition, or through fingerprint recognition or face recognition. It can be understood that the specific verification method depends on the verification method adopted by the second electronic device when performing FIDO authentication. For example, if the second electronic device uses fingerprint recognition verification when performing FIDO authentication, then only fingerprint recognition can be used for verification this time. In addition to the above-mentioned biometric recognition methods, other recognition methods such as iris recognition can also be used, and the embodiments of the present application do not impose specific restrictions on this.

[0105] If the user successfully authenticates on the second electronic device, the second electronic device assists the first electronic device in completing the user login process, and the first electronic device can display the account center page. Fig.10 As shown, it displays account information and account-related functions.

[0106] For the interface operation process of the above-mentioned user login method, when the user performs user login on a new electronic device, the user only needs to select the cross-device verification login method and perform security authentication on the old electronic device. There is no need to enter a password or verification code, which can improve the user's login success rate and the operation process is more convenient. In addition, the security of the login process can be improved through FIDO authentication technology.

[0107] Based on the interface operation process of the above-mentioned user login method, the implementation process of the user login method will be described in detail below. For ease of understanding, the principle of FIDO authentication is briefly introduced first: during the registration stage, the user binds the user account and the device through an electronic device that supports the FIDO protocol. When registering information through a server (such as an account cloud), the user's electronic device generates a pair of asymmetric key pairs, the private key is retained in the electronic device, and the public key is transmitted to the server, and the server associates this public key with the user account. When the user verifies the information through the server, the user uses the private key in the electronic device to sign the server's data, and the server uses the corresponding public key for verification. In addition, when signing, the private key in the electronic device must be unlocked by the user (such as key, fingerprint recognition, face recognition, etc.) before it can be used for signing operations, thereby improving the security of the verification process.

[0108] As can be seen from the above description, the second electronic device (i.e., the old electronic device) needs to have logged in the user account, and the user account has been FIDO certified. Therefore, the process of FIDO authentication on the second electronic device is briefly introduced: First, the second electronic device has logged in the user account, and the way to log in to the user account includes but is not limited to logging in through a password or a verification code. Preferably, it is logged in by both a password and a verification code, that is, a medium security level login. Then, FIDO registration is performed on the second electronic device. For example, the second electronic device can prompt the user whether to perform biometric security authentication. If the user wants to perform biometric security authentication, the user can enter fingerprint information or face information as authentication credentials. The second electronic device can generate the corresponding key (passkey) based on the FIOD Service, and keep the private key locally, and transmit the public key to the server (or account cloud). The account cloud can associate the passkey with the user account. At the same time, the second electronic device can also enable the user to log in through biometrics, such as logging in safely and quickly through fingerprint recognition or face recognition.

[0109] On this basis, the first electronic device can use the second electronic device to implement the user login process. Fig.11 This is a flowchart of a user login method provided in an embodiment of the present application. The method may include:

[0110] S101: A first electronic device receives a first operation input by a user.

[0111] The first operation may be a trigger operation for the user to verify the login across devices, i.e., trigger the use of the second electronic device to assist the first electronic device in user login. Optionally, before entering the first operation, the user may also enter the user account to be logged in, or the first electronic device may automatically read the phone number corresponding to the SIM card in the device as the user account, so that the server (or account cloud) may subsequently obtain the public key corresponding to the user account.

[0112] S102, the first electronic device sends a request message to the account cloud for encrypted information.

[0113] When the first electronic device sends a request message to the account cloud, the device information and the user account can be used as request parameters. The user account is used by the account cloud to find the corresponding public key, and then the account cloud uses the public key to encrypt the device information to obtain encrypted information. Optionally, the device information may include information such as the device ID and the device type. Optionally, the above request parameters may also include a secure random number to improve the security of the encryption process.

[0114] S103, the account cloud determines the encryption information according to the request message.

[0115] S104, the account cloud sends encrypted information to the first electronic device.

[0116] Among them, when the account cloud receives the request message from the first electronic device, it can obtain the user account carried therein, and search for the corresponding public key based on the user account. It should be noted that because the user account has completed FIDO authentication through the second electronic device, its corresponding public key has also been stored in the account cloud. Then the account cloud can encrypt the device information of the first electronic device through the corresponding public key, obtain the encrypted information, and return it to the first electronic device.

[0117] S105: The first electronic device sends a user login request to the second electronic device, where the user login request carries the above-mentioned encrypted information.

[0118] Since the embodiment of the present application requires a second electronic device to assist the first electronic device in performing user login, after the first electronic device receives the user's trigger operation for cross-device verification login and obtains the encrypted information, it can send a user login request to the second electronic device to request that the user login operation be performed on the second electronic device.

[0119] It is understandable that the first electronic device can send a user login request to the second electronic device through the Bluetooth connection between the first electronic device and the second electronic device. Figure 6 to Figure 7 It can be seen that a Bluetooth connection needs to be established between the first electronic device and the second electronic device. The process of establishing the Bluetooth connection can be as follows: Fig.12 As shown, including:

[0120] S11, the first electronic device uses the capability of the Bluetooth chip to search for nearby available devices.

[0121] In this step, the first electronic device invokes the capability of the Bluetooth chip, that is, uses the Bluetooth chip to search for Bluetooth signals of available devices.

[0122] S12, the Bluetooth chip of the available device receives the search signal of the first electronic device, and sends its own device information to the first electronic device.

[0123] in, Fig.12 Only the second electronic device is shown as an available device, and the principles of the remaining available devices are similar. Fig.12 Not shown.

[0124] S13: The first electronic device displays the received device information of the available devices in the available device list.

[0125] S14, the user inputs an operation of selecting a second electronic device in the available device list.

[0126] S15: The first electronic device sends a message requesting to establish a Bluetooth connection to the second electronic device through the Bluetooth chip.

[0127] S16: The second electronic device returns a confirmation message to the first electronic device.

[0128] S17: The first electronic device establishes a Bluetooth connection with the second electronic device.

[0129] It should be noted that the process of establishing a Bluetooth connection between the first electronic device and the second electronic device is not limited to Fig.12 In the examples shown, as long as a connection can be established, the embodiments of the present application do not impose any limitation on this.

[0130] S106: The second electronic device pops up a login request prompt box according to the received user login request.

[0131] Exemplarily, the login request prompt box popped up by the second electronic device may be as described above. Figure 8 shown.

[0132] S107: The second electronic device receives a confirmation operation input by the user in response to the login request prompt box, and pops up a security login prompt box.

[0133] In the user Figure 8 When the allow login option is selected on the login request prompt box shown, that is, a confirmation operation is input, the second electronic device may pop up the above-mentioned Fig. 9 The security login prompt box shown prompts the user to verify only through fingerprint recognition, or only through face recognition, or through fingerprint recognition or face recognition to complete the security login.

[0134] S108: The second electronic device receives the security login information input by the user and verifies the security login information through the FIDO Service.

[0135] In the user Fig. 9 When the corresponding security login information (i.e., biometric information) is entered in the security login prompt box shown, the second electronic device can verify the security login information through the FIDO Service running in the TEE environment to determine whether it is authenticated user information.

[0136] S109: When the security login information is verified, the second electronic device decrypts the encrypted information.

[0137] From the principle of FIDO authentication mentioned above, it can be known that the user's private key is stored in the electronic device. Therefore, the second electronic device can decrypt the encrypted information sent by the first electronic device through the private key stored in itself to obtain the device information of the first electronic device. It can be understood that because the above encrypted information is encrypted by the public key corresponding to the user account in the account cloud, the private key stored in the second electronic device is also the key corresponding to the user account, so the second electronic device can usually successfully decrypt the encrypted information. If the decryption fails due to special circumstances in the actual scenario, the user login fails, and the first electronic device cannot successfully log in accordingly.

[0138] S110, when the decryption is successful, the second electronic device sends the decrypted device information of the first electronic device to the account cloud and applies for a temporary Token.

[0139] If the decryption is successful, that is, the current user login operation is a safe operation, the second electronic device can apply for a temporary Token from the account cloud for the first electronic device to log in.

[0140] S111, the second electronic device sends a temporary Token to the first electronic device.

[0141] It is understood that the second electronic device can also send the temporary Token to the first electronic device through the Bluetooth connection between the second electronic device and the first electronic device. Optionally, the second electronic device can also sign the temporary Token before sending it to the first electronic device.

[0142] S112, the first electronic device applies to the account cloud for user login through a temporary Token.

[0143] S113, the account cloud verifies the user login application of the first electronic device and returns a login success message.

[0144] Among them, because the second electronic device applies for a temporary Token from the account cloud based on the device information of the first electronic device, the device information of the first electronic device corresponds to the temporary Token. Then, when the account cloud receives the user login application from the first electronic device, it can verify the temporary Token based on the device information of the first electronic device. If the verification passes, the first electronic device is allowed to log in. Optionally, if the temporary Token sent by the first electronic device is signed information, the account cloud can also verify it through the corresponding public key.

[0145] S114, the first electronic device prompts the user that the login is successful.

[0146] For example, the first electronic device may display the above Fig.10The page shown is displayed to prompt the user that the login is successful.

[0147] With the above user login method, when a user logs in on a new electronic device, he or she only needs to select the cross-device verification login method and perform security authentication on the old electronic device. There is no need to enter a password or verification code, which can increase the user's login success rate and make the operation process more convenient. In addition, the security of the login process can be improved through FIDO authentication technology.

[0148] Fig.13 : is a flowchart of another user login method provided in an embodiment of the present application, and the method may include:

[0149] S201: A first electronic device receives a first operation input by a user.

[0150] Among them, the first operation can be a trigger operation for the user to verify the login across devices, that is, triggering the use of the second electronic device to assist the first electronic device in user login, that is, turning on the passkey login mode on the first electronic device.

[0151] S202: The first electronic device and the second electronic device perform device authentication and establish a secure session.

[0152] Optionally, the process of performing device authentication and establishing a secure session in this step may be a process of establishing a Bluetooth connection between the first electronic device and the second electronic device, and the established Bluetooth channel between the first electronic device and the second electronic device is a secure session.

[0153] S203: The first electronic device sends a user login request to the second electronic device.

[0154] Among them, the user login request may carry a login request message, for example, may include encrypted information requested by the first electronic device to the account cloud.

[0155] S204: The second electronic device receives security login information input by the user in response to the user login request.

[0156] It is understandable that before the second electronic device receives the security login information input by the user, it may also include a pop-up window and other processes. For details, please refer to the description of S106-S108 above, which will not be repeated here.

[0157] S205: When the security login information verification is passed, the second electronic device signs the login information used for user login of the first electronic device and sends it to the first electronic device.

[0158] Optionally, the login information used for user login of the first electronic device may be a temporary Token applied by the second electronic device to the account cloud, and the second electronic device may sign the temporary Token with a passkey and send the token to the first electronic device.

[0159] S206, the first electronic device applies to the account cloud for user login according to the signature login information.

[0160] S207, the account cloud verifies the user login application of the first electronic device and returns a login success message.

[0161] Among them, if the account cloud verifies the signature login information, that is, the account cloud verifies the signature login information using the public key corresponding to the above-mentioned user account, then the user login of the first electronic device is completed, and the user account logged in on the first electronic device has also passed FIDO authentication, and the user login status on the first electronic device is also a medium security level login status.

[0162] In this scenario, because the same user account as that of the second electronic device is logged in on the first electronic device and both have passed FIDO authentication, the first electronic device can join the trust ring where the second electronic device is located, and the second electronic device can transmit its own passkey encrypted to the first electronic device through the trust ring.

[0163] For example, Fig.14 As shown, when the first electronic device joins the trust ring where the second electronic device is located, the second electronic device can encrypt and transmit the passkey to the account cloud based on the trust ring and its own trusted environment. Then, the account cloud encrypts and transmits the passkey to the first electronic device based on the trust ring. After the first electronic device receives the passkey, it can be synchronized to the local trusted environment. Then, if the subsequent user wants to re-login on the first electronic device, he can log in directly through biometrics, such as fingerprint recognition or face recognition.

[0164] Optionally, the second electronic device can encrypt the passkey (or the private key in the passkey) by deriving a key based on the lock screen code or the unlock code of the FIFO (first input first output), and back it up end-to-end to the second electronic device, and this process is only perceptible to the user. It can be understood that since the second electronic device is in a medium security level login state, the passkey can be synchronized to the first electronic device; if the second electronic device is in a low security level login state, only the login state can be synchronized to the first electronic device to ensure the security of the login process.

[0165] According to the implementation process of the above embodiment, if the first electronic device executes the above user login method as an example, Fig.15 As shown, the method may include:

[0166] S301, displaying a user login page, where the user login page includes a first control.

[0167] The first control is used to trigger a request for the second electronic device to assist the first electronic device in performing user login. The first control is also the cross-device verification login control in the above embodiment.

[0168] S302: If a trigger operation of the user on the first control is received, a user login request is sent to the second electronic device.

[0169] The user login request carries the device identification of the first electronic device, and the user account to be logged in on the first electronic device is the same as the user account that has been logged in on the second electronic device.

[0170] S303, receiving user login credentials from the second electronic device, and performing user login according to the user login credentials.

[0171] The user login credential is a credential obtained by the second electronic device after the user identity is authenticated. Optionally, the user login credential may be a temporary Token.

[0172] For the implementation process of each step in this embodiment, please refer to the description of the above embodiment. The implementation principle and technical effect are similar and will not be repeated here.

[0173] The following are two examples of the above user login process:

[0174] First example: Assume that the first electronic device and the second electronic device are electronic devices of the same type, for example, both are electronic devices running Android systems. The first electronic device is referred to as Android A, and the second electronic device is referred to as Android B.

[0175] 1. Android B has logged in to the user account and enabled two-factor authentication (2FA), such as password and verification code verification, and has registered for passkey-based FIDO authentication.

[0176] 2. The user triggers account login on Android A and triggers cross-device authentication login. At the same time, the Bluetooth function is turned on and the user login request is broadcast to Android B.

[0177] 3. Android B receives the user login request from Android A and prompts the user whether to allow Android A to log in to the account. If the user agrees, fingerprint or face information recognition is required. If passed, Android A is allowed to log in.

[0178] 4. Android A receives the login information sent by Android B and sends it to the account cloud for verification. If the verification passes, the login is successful.

[0179] Second example: Assume that the first electronic device and the second electronic device are electronic devices of different types, for example, the first electronic device is an electronic device of Windows system, and the second electronic device is an electronic device of Android system. The first electronic device is referred to as Windows A, and the second electronic device is referred to as Android B.

[0180] 1. Android B has logged in to the user account and enabled two-factor authentication (2FA), such as password and verification code verification, and has registered for passkey-based FIDO authentication.

[0181] 2. The browser account login page of Windows A pops up, and the user triggers cross-device verification login. With the help of Windows' Bluetooth function, the user login request is broadcast to Android B.

[0182] 3. Android B receives the user login request from Windows A and reminds the user whether to allow Windows A to log in. If the user agrees, fingerprint or face information recognition is required. If passed, Windows A is allowed to log in.

[0183] 4. Windows A receives the login information sent by Android B and sends it to the account cloud for verification. If the verification passes, the login is successful.

[0184] It can be understood that the technical principle of the user login method provided in the embodiment of the present application, that is, the process of using an old electronic device to assist a new electronic device in performing security verification, can be applied not only to user login scenarios, but also to scenarios such as security verification when a user searches for a password, security verification when a user transitions to a higher level, and some scenarios requiring secondary authentication. The implementation process is similar and will not be repeated here.

[0185] The above describes in detail an example of a user login method provided by an embodiment of the present application. It is understandable that, in order to implement the above functions, the electronic device includes hardware and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in conjunction with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered to exceed the scope of the present application.

[0186] The embodiment of the present application can divide the functional modules of the electronic device according to the above method example. For example, each function can be divided into various functional modules, such as a detection unit, a processing unit, a display unit, etc., or two or more functions can be integrated into one module. The above integrated module can be implemented in the form of hardware or in the form of a software functional module. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0187] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0188] The electronic device provided in this embodiment is used to execute the above-mentioned user login method, and thus can achieve the same effect as the above-mentioned implementation method.

[0189] In the case of an integrated unit, the electronic device may further include a processing module, a storage module and a communication module. The processing module may be used to control and manage the actions of the electronic device. The storage module may be used to support the electronic device to execute stored program codes and data, etc. The communication module may be used to support the electronic device to communicate with other devices.

[0190] Among them, the processing module can be a processor or a controller. It can implement or execute various exemplary logic boxes, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing and a microprocessor, etc. The storage module can be a memory. The communication module can specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, etc.

[0191] In one embodiment, when the processing module is a processor and the storage module is a memory, the electronic device involved in this embodiment may be a Figure 2 Device of the structure shown.

[0192] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the processor executes the user login method of any of the above embodiments.

[0193] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the user login method in the above-mentioned embodiment.

[0194] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer execution instructions, and when the device is running, the processor can execute the computer execution instructions stored in the memory so that the chip executes the user login method in the above-mentioned method embodiments.

[0195] Among them, the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here.

[0196] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0197] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0198] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0199] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0200] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0201] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A user login method, characterized in that: The method is performed by a first electronic device, and includes: Displaying a user login page corresponding to the account function of the first electronic device, the user login page including a first control, the first control being used to trigger a request for a second electronic device to assist the first electronic device in performing user login; If a trigger operation of the user on the first control is received, a first message requesting encrypted information is sent to the server, where the first message carries the device information of the first electronic device and the user account to be logged in, and the encrypted information is used by the second electronic device to decrypt and authenticate the device information of the first electronic device; receiving encrypted information obtained by encrypting the device information from the server, where the key used by the server to encrypt the device information is the public key corresponding to the user account; Sending a user login request to the second electronic device, the user login request carrying the encrypted information, and the user account to be logged in on the first electronic device is the same as the user account already logged in on the second electronic device; When the second electronic device successfully verifies the security login information input by the user and successfully decrypts the encrypted information, receiving the user login credentials from the second electronic device, where the security login information input by the user includes login information based on fingerprint recognition and / or login information based on face recognition, and the key used by the second electronic device to decrypt the encrypted information is the private key corresponding to the user account; The user login is performed according to the user login credential, where the user login credential is the credential obtained after the second electronic device successfully decrypts the encrypted information.

2. The method according to claim 1, characterized in that The performing user login according to the user login credential includes: Applying for user login from the server according to the user login credentials; Receiving a login success message sent by the server after the user login credentials are verified; The user login success page is displayed.

3. The method according to claim 1 or 2, characterized in that: The way in which the second electronic device verifies the security login information input by the user includes online fast identity authentication service FIDO authentication.

4. The method according to claim 3, characterized in that: The public key used by the server to encrypt the device information and the private key used by the second electronic device to decrypt the encrypted information are an asymmetric key pair generated based on the FIDO mechanism.

5. The method according to claim 1 or 2, characterized in that: Before sending the user login request to the second electronic device, the method further includes: Sending a connection request to the second electronic device; A confirmation message returned by the second electronic device in response to the connection request is received, and a communication connection is established with the second electronic device.

6. The method according to claim 5, characterized in that The communication connection established between the first electronic device and the second electronic device is a Bluetooth connection.

7. The method according to claim 1 or 2, characterized in that: In the case where the user logs in successfully, the method further includes: A trust ring is established with the second electronic device, and a key corresponding to the user account in the second electronic device is synchronized based on the trust ring.

8. A user login method, characterized in that: The method is performed by a second electronic device, the second electronic device has a user account logged in, and the method includes: receiving a user login request from a first electronic device, the user login request carrying encrypted information, the encrypted information being information obtained by encrypting device information of the first electronic device by a server, and used by the second electronic device to decrypt and authenticate the device information of the first electronic device, the key used by the server to encrypt the device information being a public key corresponding to the user account, and the user account to be logged in on the first electronic device is the same as the user account already logged in on the second electronic device; Displaying a first prompt box according to the user login request, wherein the first prompt box is used to prompt the user whether to allow logging into the user account on the first electronic device; If an operation of allowing the user account to be logged in on the first electronic device is received, displaying a second prompt box, the second prompt box being used to prompt the user to enter security login information; Receiving security login information input by the user, where the security login information input by the user includes login information based on fingerprint recognition and / or login information based on face recognition; In the case where the security login information input by the user is verified, the encrypted information is decrypted, and the key used by the second electronic device to decrypt the encrypted information is the private key corresponding to the user account; When the encrypted information is decrypted successfully, the user login credentials are obtained and sent to the first electronic device.

9. The method according to claim 8, characterized in that The method in which the second electronic device verifies the security login information input by the user includes FIDO authentication.

10. The method according to claim 9, characterized in that The public key used by the server to encrypt the device information and the private key used by the second electronic device to decrypt the encrypted information are an asymmetric key pair generated based on the FIDO mechanism.

11. The method according to claim 8 or 9, characterized in that: The acquiring and sending the user login credentials to the first electronic device includes: Acquiring the user login credential from the server according to the device information of the first electronic device; User login credentials are sent to the first electronic device.

12. The method according to claim 8 or 9, characterized in that: Before receiving a user login request from the first electronic device, the method further includes: receiving a connection request from the first electronic device; A confirmation message is returned to the first electronic device in response to the connection request, and a communication connection is established with the first electronic device.

13. An electronic device, characterized in that: include: one or more processors; one or more memories; The memory stores one or more programs, and when the one or more programs are executed by the processor, the electronic device executes the method according to any one of claims 1 to 7.

14. An electronic device, characterized in that: include: one or more processors; one or more memories; The memory stores one or more programs, and when the one or more programs are executed by the processor, the electronic device executes the method according to any one of claims 8 to 12.

15. A user login system, characterized in that: The system includes a first electronic device and a second electronic device, wherein the first electronic device executes the method according to any one of claims 1 to 7, and the second electronic device executes the method according to any one of claims 8 to 12.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 12.