Two-factor authentication method and device
By sending two-factor authentication information to the bound terminal device and verifying it after the user account is successfully logged in, it solves the problems of complex setup process and insufficient permission control in the existing technology, realizes a flexible and secure two-factor authentication method, and improves improve user experience and security.
Patent Information
- Application Number
- CN202111135670.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-27
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-09-27
AI Technical Summary
The existing two-factor authentication method has a complicated setup process when users create accounts, has limited user scenarios, and obtains all permissions after successful authentication, lacking flexibility and security control.
By detecting that the user account has successfully logged in on the first terminal device, the two-factor authentication information is sent to the second terminal device bound to it, the feedback result is obtained and verified, and an authentication success message is sent when the verification is successful, thereby realizing the user's specified authority level and Control of functional attributes.
It reduces the complexity of two-factor authentication, improves the flexibility and effectiveness of authentication, allows personalized permissions to be set according to the type and function of the terminal device, and enhances security.
Smart Images

Figure CN113806723B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, specifically to the field of security authentication technology, and in particular to a two-factor authentication method and device. Background Art
[0002] The "factors" in security authentication mainly include the following three types:
[0003] 1. Secret information: some information that only the user knows and no one else knows, such as a password.
[0004] 2. Personal belongings: the user’s personal belongings, such as ID card and keys.
[0005] 3. Physiological characteristics: the user’s genetic characteristics, such as fingerprints, appearance, iris, etc.
[0006] Generally, the more factors there are, the stronger the proof is and the more reliable the identity is. Two-factor authentication means that two factors of evidence are required to pass the authentication. The commonly used two-factor combination is password + some personal items, such as the USB shield of online banking. Users plug in the USB shield and enter the password to log in to online banking. However, users cannot carry the USB shield with them at all times, so mobile phones are the best substitute. Password + mobile phone has become the best two-factor authentication solution.
[0007] There are several main methods now, such as obtaining a two-step verification code via SMS, or pre-setting a key similar to Google Authenticator, and dynamically generating a two-step verification code based on time. The main verification device is a mobile phone, and the main display form is a dynamic character code.
[0008] However, mobile phone authentication usually has a complicated setup process, such as manually adding accounts when creating accounts, user scenario restrictions, such as users must carry their mobile phones with them, no custom permission processing, such as once the user successfully authenticates, they obtain all account permissions, and other problems. Summary of the invention
[0009] Embodiments of the present application provide a two-factor authentication method, apparatus, device, and storage medium.
[0010] According to the first aspect, an embodiment of the present application provides a two-factor authentication method, the method comprising: in response to detecting that a user account has successfully logged in on a first terminal device, sending two-factor authentication information to a second terminal device that has established a connection with the first terminal device, the second terminal device being a terminal device bound to the user account; obtaining a feedback result from the second terminal device based on the two-factor authentication information, and verifying the feedback result; in response to successful verification, sending an authentication success message to the first terminal device.
[0011] In some embodiments, sending two-factor authentication information to a second terminal device connected to a first terminal device includes: sending two-factor authentication information to the second terminal device according to type information of the second terminal device connected to the first terminal device.
[0012] In some embodiments, sending two-factor authentication information to a second terminal device connected to a first terminal device includes: sending two-factor authentication information to the second terminal device connected to the first terminal device via a third terminal device.
[0013] In some embodiments, the method further includes: in response to successful verification, obtaining, via the first terminal device, an authority level of the second terminal device specified by the user.
[0014] In some embodiments, the method further includes: in response to successful verification, controlling the first terminal device to generate recommendation information based on functional attributes of the second terminal device.
[0015] In some embodiments, the second terminal device is determined in the following manner: in response to detecting that the terminal device is connected to the first terminal device for the first time and the user account has been logged in, the terminal device is bound to the user account to obtain the second terminal device.
[0016] According to the second aspect, an embodiment of the present application provides a two-factor authentication device, including: a login module, configured to send two-factor authentication information to a second terminal device connected to the first terminal device in response to detecting that a user account has successfully logged in on a first terminal device, the second terminal device being a terminal device bound to the user account; a verification module, configured to obtain a feedback result from the second terminal device based on the two-factor authentication information and verify the feedback result; a sending module, configured to send an authentication success message to the first terminal device in response to successful verification.
[0017] In some embodiments, the login module is further configured to: send two-factor authentication information to the second terminal device according to type information of the second terminal device that establishes a connection with the first terminal device.
[0018] In some embodiments, the login module is further configured to: send two-factor authentication information to a second terminal device connected to the first terminal device via a third terminal device.
[0019] In some embodiments, the apparatus further includes: a designation module configured to obtain, via the first terminal device, a permission level of the second terminal device designated by the user in response to successful verification.
[0020] In some embodiments, the apparatus further includes: a recommendation module configured to control the first terminal device to generate recommendation information based on functional attributes of the second terminal device in response to successful verification.
[0021] In some embodiments, the second terminal device is determined in the following manner: in response to detecting that the terminal device is connected to the first terminal device for the first time and the user account has been logged in, the terminal device is bound to the user account to obtain the second terminal device.
[0022] According to the third aspect, an embodiment of the present application provides an electronic device, which includes one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement a two-factor authentication method as in any embodiment of the first aspect.
[0023] According to a fourth aspect, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements a two-factor authentication method as in any embodiment of the first aspect.
[0024] The present application sends two-factor authentication information to a second terminal device that has established a connection with the first terminal device in response to detecting that a user account has successfully logged in on the first terminal device; obtains feedback from the second terminal device based on the two-factor authentication information and verifies the feedback; and sends an authentication success message to the first terminal device in response to successful verification. This helps to authenticate with the help of a terminal device carried by the user when the user does not carry a mobile phone, thereby improving the flexibility and effectiveness of security authentication.
[0025] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;
[0027] Figure 2 is a flow chart of an embodiment of a two-factor authentication method according to the present application;
[0028] Figure 3 is a schematic diagram of an application scenario of the two-factor authentication method according to the present application;
[0029] Figure 4 is a flow chart of another embodiment of a two-factor authentication method according to the present application;
[0030] Figure 5is a schematic diagram of an embodiment of a two-factor authentication device according to the present application;
[0031] Figure 6 It is a structural diagram of a computer system suitable for implementing a server of an embodiment of the present application. DETAILED DESCRIPTION
[0032] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0033] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0034] Figure 1 An exemplary system architecture 100 is shown to which an embodiment of the two-factor authentication method of the present application can be applied.
[0035] like Figure 1 As shown, the system architecture 100 may include a first terminal device 101, second terminal devices 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the first terminal device 101, the second terminal devices 102, 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0036] The user can use the first terminal device 101, the second terminal device 102, 103 to interact with the server 105 through the network 104 to receive or send messages, etc. The first terminal device 101, the second terminal device 102, 103 can be installed with client application software, such as shopping application software, communication application software, etc.
[0037] The first terminal device 101 and the second terminal devices 102 and 103 can be hardware or software. When the first terminal device 101 and the second terminal device 102 and 103 are hardware, they can be various electronic devices, including but not limited to smart phones, smart bracelets, tablet computers, laptop computers, desktop computers, etc. When the first terminal device 101 and the second terminal device 102 and 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules, or as a single software or software module. No specific limitation is made here.
[0038] Server 105 can be a server that provides various services. For example, in response to detecting that a user account has successfully logged in on a first terminal device, it sends two-factor authentication information to a second terminal device that has established a connection with the first terminal device; obtains feedback from the second terminal device based on the two-factor authentication information, and verifies the feedback; in response to successful verification, it sends a message of successful authentication to the first terminal device.
[0039] It should be noted that the server 105 can be hardware or software. When the server 105 is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, used to provide two-factor authentication services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0040] It should be noted that the two-factor authentication method provided in the embodiments of the present disclosure is generally executed by the server 105 , and accordingly, the various parts (such as various units, sub-units, modules, sub-modules) included in the two-factor authentication device can all be set in the terminal device 105 .
[0041] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0042] Figure 2 A flowchart 200 of an embodiment of a two-factor authentication method that can be applied to the present application is shown. The two-factor authentication method includes the following steps:
[0043] Step 201: In response to detecting that a user account has successfully logged in on a first terminal device, two-factor authentication information is sent to a second terminal device that is connected to the first terminal device.
[0044] In this embodiment, the execution subject (eg Figure 1 The server 105 shown in the figure can obtain the login status of the user account on the first terminal device, i.e., the login device, in real time or periodically. If it is detected that the login status of the user account on the first terminal device is successful, the device information of the second terminal device connected to the first terminal device is obtained, and a two-factor authentication message, i.e., 2FA (2Factor Authentication) authentication information, is sent to the second terminal device connected to the first terminal device via a wired or wireless method.
[0045] Among them, the second terminal device is a terminal device bound to the user account. Here, the second terminal device can be determined by the terminal device pre-bound when the user account is created, or it can be determined by the terminal device bound and connected to the first terminal device for the first time when the user account logs in to the first terminal device. This application does not limit this.
[0046] Here, the wireless connection method may include but is not limited to 3G / 4G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or to be developed in the future.
[0047] Among them, the first terminal device and the second terminal device are different terminal devices, and the second terminal device can be one or more, which is not limited in this application.
[0048] Here, it should be pointed out that if the second terminal device can connect to the network, the execution entity can send the two-factor authentication information directly to the second terminal device. If the second terminal device cannot connect to the network, the execution entity can send the 2FA authentication information to the second terminal device via a third terminal device that establishes a connection with the second terminal device.
[0049] The third terminal device and the first terminal device may be the same terminal device or different terminal devices, which is not limited in this application.
[0050] Here, the first terminal device, the second terminal device and the third terminal device can be input and output devices in existing technologies or future development technologies, such as headphones, televisions, smart watches, sports bracelets, etc., and this application does not limit this.
[0051] Specifically, the user successfully logs in on the TV (first terminal device) and connects to the TV via Bluetooth using a phone watch (second terminal device). After detecting that the user account has successfully logged in on the TV, the execution entity can obtain the device information of the second terminal device connected to the TV, that is, the information of the phone watch, and send two-factor authentication information to the phone watch to obtain feedback from the second terminal device based on the two-factor authentication information.
[0052] In some optional methods, the second terminal device is determined in the following manner: in response to detecting that the terminal device is connected to the first terminal device for the first time and the user account has been logged in, the terminal device is bound to the user account to obtain the second terminal device.
[0053] In this implementation, the second terminal device is a terminal device bound to a user account, which can be determined in the following way: when the execution subject detects that a terminal device is connected to the first terminal device for the first time and there is a logged-in user account, the execution subject can directly bind the terminal device to the user account to obtain the second terminal device.
[0054] This implementation method binds the terminal device to the user account in response to detecting that the terminal device is connected to the first terminal device for the first time and the user account has been logged in, obtains a second terminal device, sends two-factor authentication information to the second terminal device connected to the first terminal device, obtains feedback results and verifies, and in response to successful verification, sends a message of successful authentication to the first terminal device. This reduces the process of manually binding terminal devices when users create user accounts, reduces the complexity of two-factor authentication, and effectively improves the efficiency of two-factor authentication.
[0055] In some optional manners, sending two-factor authentication information to a second terminal device connected to a first terminal device includes: sending two-factor authentication information to the second terminal device connected to the first terminal device via a third terminal device.
[0056] In this implementation, after detecting that the user account has successfully logged in on the first terminal device, the execution subject obtains information about the second terminal device connected to the first terminal device. If the second terminal device cannot connect to the network, the execution subject can send two-factor authentication information to the second terminal device via a third terminal device connected to the second terminal device. Here, the third terminal device can connect to the network.
[0057] Specifically, the user successfully logs in on the TV (first terminal device) and connects to the TV via Bluetooth through a Bluetooth headset (second terminal device). After detecting that the user account has successfully logged in on the TV, the execution entity can obtain information about the second terminal device connected to the TV, that is, information about the Bluetooth headset. Since the Bluetooth headset cannot connect to the network, the execution entity can send two-factor authentication information, for example, 123456, to the third terminal device connected to the Bluetooth headset, such as a mobile phone, TV, etc., to instruct the user to click the left and right sides of the Bluetooth headset in turn 1, 2, 3, 4, 5, 6 times.
[0058] This implementation method, in response to detecting that a user account has successfully logged in on a first terminal device, sends two-factor authentication information to a second terminal device that has established a connection with the first terminal device via a third terminal device, and obtains feedback from the second terminal device to authenticate the user. This helps to implement two-factor authentication with the help of a third terminal device when the second terminal device cannot connect to the network, thereby further realizing the effectiveness and flexibility of two-factor authentication.
[0059] Step 202: Obtain a feedback result from the second terminal device based on the two-factor authentication information, and verify the feedback result.
[0060] In this embodiment, if the second terminal device can connect to the network, the execution entity can directly obtain the feedback result based on the two-factor authentication information from the second terminal device; if the second terminal device cannot connect to the network, the execution entity can obtain the feedback result based on the two-factor authentication information of the second terminal device via a third terminal device that can connect to the network and to which the second terminal device is connected, and verify the feedback result.
[0061] Step 203: In response to successful verification, a message indicating successful authentication is sent to the first terminal device.
[0062] In this embodiment, the execution subject verifies the feedback result, and if the verification is successful, sends a message of successful authentication to the first terminal device, so that the user can normally access the first terminal device, that is, use the functions of the first terminal device.
[0063] In some optional embodiments, the method further includes: in response to successful verification, obtaining, via the first terminal device, an authority level of the second terminal device specified by the user.
[0064] In this implementation, the execution subject verifies the feedback result, and if the verification is successful, obtains the permission level of the second terminal device specified by the user through the first terminal device. Here, the permission level is used to indicate the access rights of the user to the login device after the user successfully performs two-factor authentication on the login device through the second terminal device.
[0065] Here, the permission level can be pre-set according to experience, actual needs and specific application scenarios, for example, high-level permission, intermediate permission, low-level permission, etc.
[0066] Among them, low-level permissions can indicate that after the login device is authenticated by two-factor authentication through the second terminal device and the authentication is successful, the basic functions of the login device can be used, such as Bluetooth, playback, etc.; intermediate permissions can indicate that after the login device is authenticated by two-factor authentication through the second terminal device and the authentication is successful, more functions of the login device can be used, such as application downloads, settings, billing, account login / logout, etc.; high-level permissions can indicate that after the login device is authenticated by two-factor authentication through the second terminal device and the authentication is successful, all functions of the login device can be used.
[0067] Specifically, the first terminal device is a TV, and the second terminal device connected to the first terminal device is a phone watch. After the execution subject obtains the feedback result of the phone watch based on the two-factor authentication information and verifies successfully, it can send a message of successful authentication to the TV, and obtain the permission level of the phone watch set by the user through the TV, for example, intermediate permissions, such as downloading and setting functions, that is, binding the intermediate permissions to the phone watch. The next time the user logs in to other login devices, such as a computer, through the second terminal device, i.e., the phone watch, the user can only enjoy the intermediate permissions corresponding to the phone watch, i.e., downloading and setting functions, for the login device.
[0068] This implementation method, in response to successful verification, obtains the permission level of the second terminal device specified by the user via the first terminal device, which helps to set different user permissions according to different terminal devices, that is, to achieve different functions for a unified account according to different login scenarios, thus realizing personalized settings of two-factor authentication, and effectively improving the flexibility and security of two-factor authentication.
[0069] In some optional embodiments, the method further includes: in response to successful verification, controlling the first terminal device to generate recommendation information based on functional attributes of the second terminal device.
[0070] In this embodiment, the execution subject verifies the feedback result. If the verification is successful, a message of successful authentication may be sent to the first terminal device, and the first terminal device may be controlled to generate corresponding recommendation information based on the functional attributes of the second terminal device.
[0071] Specifically, if the first terminal device is a television and the second terminal device is a sports bracelet, the execution subject can control the television to play sports information.
[0072] This implementation helps to generate personalized information recommendations by controlling the first terminal device to generate recommendation information based on the device attributes of the second terminal device in response to successful verification.
[0073] Continue to see Figure 3 , Figure 3 It is a schematic diagram of an application scenario of the two-factor authentication method according to this embodiment.
[0074] exist Figure 3In the application scenario, user 301 wants to operate TV 302 (first terminal device) and successfully logs in the user account on TV 302. The user can perform two-factor authentication through the mobile phone. However, at this time, the user does not carry the mobile phone with him, but only carries a phone watch 303 (second terminal device). In this case, the user can connect the phone watch 303 to TV 302 via Bluetooth. After detecting that the user has successfully logged in on TV 302, the execution subject 304 can obtain the device information of the second terminal device connected to TV 302, that is, the information of the phone watch 303, and send the two-factor authentication information to the phone watch 303. After obtaining the feedback result based on the two-factor authentication information from the phone watch 303, the execution subject 304 verifies the feedback result; in response to the successful verification, a message of successful authentication is sent to TV 302.
[0075] The two-factor authentication method provided by the embodiments of the present disclosure can effectively improve the flexibility and effectiveness of two-factor authentication by sending two-factor authentication information to a second terminal device that has established a connection with the first terminal device in response to detecting that a user has successfully logged in on the first terminal device; obtaining a feedback result from the second terminal device based on the two-factor authentication information and verifying the feedback result; and sending an authentication success message to the first terminal device in response to successful verification.
[0076] Further references Figure 4 , which shows a process 400 of another embodiment of a two-factor authentication method. In this embodiment, the process 400 of the two-factor authentication method may include the following steps:
[0077] Step 401, in response to detecting that a user account has successfully logged in on a first terminal device, two-factor authentication information is sent to a second terminal device according to type information of a second terminal device connected to the first terminal device.
[0078] In this embodiment, after detecting that the user account has successfully logged in on the first terminal device, the execution entity obtains the type information of the second terminal device to which the first terminal device is connected, and sends two-factor authentication information to the second terminal device based on the type information of the second terminal device, so that the two-factor authentication information matches the type of the second terminal device.
[0079] Specifically, if the type information of the second terminal device indicates that the type is a smart watch, then the two-factor authentication information may be rotating the bezel, for example, turning left a few times, turning right a few times, etc.; if the type information of the second terminal device indicates that the type is a Bluetooth headset, then the two-factor authentication information may be operating different headsets, for example, pressing the left volume a few times, pressing the right volume a few times, etc.; if the type information of the second terminal device indicates that the type is a sports bracelet, then the two-factor authentication information may be specific wrist movements, for example, shaking the hand and rotating it a few times, etc.
[0080] Step 402: Obtain a feedback result from the second terminal device based on the two-factor authentication information, and verify the feedback result.
[0081] In this embodiment, the implementation details and technical effects of step 402 can refer to the description of step 202 and will not be repeated here.
[0082] Step 403: In response to successful verification, a message indicating successful authentication is sent to the first terminal device.
[0083] In this embodiment, the implementation details and technical effects of step 403 may refer to the description of step 203 and will not be repeated here.
[0084] The above embodiments of the present application, Figure 2 Compared with the corresponding embodiments, the process 400 of the two-factor authentication method in this embodiment reflects that in response to detecting that a user account has successfully logged in on a first terminal device, two-factor authentication information is sent to the second terminal device according to the type information of the second terminal device connected to the first terminal device, the feedback result of the second terminal device is obtained and verified, and in response to successful verification, a message of successful authentication is sent to the first terminal device, which effectively improves the flexibility and fun of two-factor authentication and further improves the user experience.
[0085] Further references Figure 5 As an implementation of the methods shown in the above figures, the present application provides an embodiment of a two-factor authentication device. Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0086] like Figure 5 As shown, the two-factor authentication device 500 of this embodiment includes: a login module 501 , a verification module 502 and a sending module 503 .
[0087] The login module 501 may be configured to send two-factor authentication information to a second terminal device connected to the first terminal device in response to detecting that a user account has successfully logged in to the first terminal device.
[0088] The verification module 502 may be configured to obtain a feedback result from the second terminal device based on the two-factor authentication information, and verify the feedback result.
[0089] The sending module 503 may be configured to send an authentication success message to the first terminal device in response to successful verification.
[0090] In some optional aspects of this embodiment, the login module is further configured to: send two-factor authentication information to the second terminal device according to type information of the second terminal device that establishes a connection with the first terminal device.
[0091] In some optional aspects of this embodiment, the login module is further configured to: send two-factor authentication information to a second terminal device connected to the first terminal device via a third terminal device.
[0092] In some optional aspects of this embodiment, the apparatus further includes: a designation module configured to obtain, via the first terminal device, an authority level of the second terminal device designated by the user in response to successful verification.
[0093] In some optional aspects of this embodiment, the apparatus further includes: a recommendation module configured to control the first terminal device to generate recommendation information based on functional attributes of the second terminal device in response to successful verification.
[0094] In some optional modes of this embodiment, in response to detecting that the terminal device is connected to the first terminal device for the first time and the user account has been logged in, the terminal device is bound to the user account to obtain a second terminal device.
[0095] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
[0096] like Figure 6 , which is a block diagram of an electronic device according to a two-factor authentication method according to an embodiment of the present application.
[0097] 600 is a block diagram of an electronic device according to a two-factor authentication method according to an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0098] like Figure 6As shown, the electronic device includes: one or more processors 601, a memory 602, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 601 is taken as an example.
[0099] The memory 602 is a non-transient computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor to enable the at least one processor to perform the two-factor authentication method provided in the present application. The non-transient computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to perform the two-factor authentication method provided in the present application.
[0100] The memory 602 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the two-factor authentication method in the embodiment of the present application (for example, the attached Figure 5 The processor 601 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 602, that is, the two-factor authentication method in the above method embodiment is implemented.
[0101] The memory 602 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of the electronic device for two-factor authentication, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 602 may optionally include a memory remotely arranged relative to the processor 601, and these remote memories may be connected to the electronic device for two-factor authentication via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0102] The electronic device of the two-factor authentication method may further include: an input device 603 and an output device 604. The processor 601, the memory 602, the input device 603 and the output device 604 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0103] The input device 603 can receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device for quality monitoring of the live video stream, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 604 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.
[0104] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0105] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0106] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0107] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0108] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0109] According to the technical solution of the embodiment of the present application, the flexibility and effectiveness of security authentication are effectively improved.
[0110] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.
[0111] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A two-factor authentication method, the method include: In response to detecting that a user account successfully logs in on a first terminal device, sending two-factor authentication information to a second terminal device connected to the first terminal device, including: sending two-factor authentication information to the second terminal device according to type information of the second terminal device connected to the first terminal device, the second terminal device being a terminal device bound to the user account, the two-factor authentication information including operation information for the second terminal device corresponding to the type information of the second terminal device, the operation information including action information; Obtaining a feedback result from the second terminal device based on the two-factor authentication information, and verifying the feedback result; In response to successful verification, a message of successful authentication is sent to the first terminal device and an authority level of the second terminal device specified by the user is obtained via the first terminal device, wherein the authority level is used to indicate the access rights of the user to the login device after successfully performing two-factor authentication on the login device via the second terminal device, and the login device includes the first terminal device and other terminal devices.
2. The method according to claim 1, in, The sending two-factor authentication information to a second terminal device that is connected to the first terminal device includes: The two-factor authentication information is sent to a second terminal device connected to the first terminal device via a third terminal device, wherein the third terminal device is a device connected to the second terminal device.
3. The method according to claim 1, further comprising: include: In response to successful verification, the first terminal device is controlled to generate recommendation information based on functional attributes of the second terminal device.
4. The method according to claim 1, in, The second terminal device is determined in the following manner: In response to detecting that the terminal device is connected to the first terminal device for the first time and the user account has been logged in, the terminal device is bound to the user account to obtain a second terminal device.
5. A two-factor authentication device, the device include: a login module, configured to, in response to detecting that a user account successfully logs in on a first terminal device, send two-factor authentication information to a second terminal device connected to the first terminal device, including: sending two-factor authentication information to the second terminal device according to type information of the second terminal device connected to the first terminal device, the second terminal device being a terminal device bound to the user account, the two-factor authentication information including operation information for the second terminal device corresponding to the type information of the second terminal device, the operation information including action information; a verification module, configured to obtain a feedback result of the second terminal device based on the two-factor authentication information, and verify the feedback result; A sending module, configured to send a message of successful authentication to the first terminal device in response to successful authentication; A designated module is configured to obtain, via the first terminal device, an authority level of the second terminal device designated by the user in response to successful verification, wherein the authority level is used to indicate the access rights of the user to the login device after successfully performing two-factor authentication on the login device via the second terminal device, and the login device includes the first terminal device and other terminal devices.
6. The device according to claim 5, wherein the login module is further configured to: Sending two-factor authentication information to a second terminal device connected to the first terminal device via a third terminal device, in, The third terminal device is a device that establishes a connection with the second terminal device.
7. The device according to claim 5, further comprising: include: The recommendation module is configured to control the first terminal device to generate recommendation information based on the functional attributes of the second terminal device in response to successful verification.
8. The device according to claim 5, in, The second terminal device is determined in the following manner: In response to detecting that the terminal device is connected to the first terminal device for the first time and the user account has been logged in, the terminal device is bound to the user account to obtain a second terminal device.
9. An electronic device, It is characterized in that include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor so that the at least one processor can perform the method according to any one of claims 1 to 4.
10. A non-transitory computer-readable storage medium storing computer instructions, It is characterized in that The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 4.
