Authentication for application
The present disclosure provides a method, terminal, and system for authentication with respect to an application. The present techniques may be applicable at a terminal with near-field communication function. When a particular operation of the application is triggered, a near-field device within a certain distance of a terminal is detected. An identification of the near-field device is obtained. The identification is sent to a server to request the server to determine whether the near-field device is a particular near-field device corresponding to the particular operation. A result of authentication performed by the server according to the identification is obtained. A following processing is applied to the particular operation according to the result of authentication. The present techniques ensure safety of operations of the application operated at the terminal.
1. A method comprising:
detecting a near-field device of a user by a terminal when a particular operation is triggered;
obtaining an identification of the near-field device;
sending the identification of the near-field device to a server to request the server to conduct an authentication of the near-field device that matches the near-field device with a particular near-field device corresponding to the particular operation according to the identification of the near-field device;
receiving a result of authentication performed by the server according to the identification of the near-field device; and
sending a notification by the near-field device to another device used by the user in response to receiving the result of failed authentication.
2. The method of claim 1 , further comprising applying a following process to the particular operation according to the result of authentication.
3. The method of claim 2 , wherein the applying the following process to the particular operation according to the result of authentication comprises, if the result of authentication is that the near-field device is the particular near-field device corresponding to the particular operation, performing the particular operation.
4. The method of claim 2 , wherein the applying the following process to the particular operation according to the result of authentication comprises, if the result of authentication is that the near-field device is not the particular near-field device corresponding to the particular operation, performing one or more preset safety operations.
5. The method of claim 4 , wherein the one or more safety operations include one or more of the following operations:
locking the terminal; and
clearing a password in memory of the terminal.
6. The method of claim 1 , further comprising:
in response to determining that there is no near-field device near the terminal when the particular operation is triggered, performing one or more preset safety operations.
7. The method of claim 1 , further comprising storing a corresponding relationship between the particular operation and the particular near-field device corresponding to the particular operation at the server.
8. The method of claim 7 , wherein the sending the identification of the near-field device to a server to request the server to conduct the authentication of the near-field device that matches the near-field device with a particular near-field device corresponding to the particular operation according to the identification of the near-field device comprises:
requesting the server to conduct the authentication of the near-field device based on the identification of the near-field device and the corresponding relationship between the particular operation and the particular near-field device corresponding to the particular operation at the server.
9. The method of claim 1 , further comprising:
sending an inquiry to the server to inquire whether the particular operation needs the authentication of the near-field device; and
determining to conduct the authentication of the near-field device according to an inquiry result returned by the server.
10. The method of claim 9 , further comprising storing the particular operation that needs authentication of the particular near-field device at the server.
11. The method of claim 1 , wherein the detecting the near-field device near the terminal when a particular operation is triggered comprises detecting the near-field device within an effective near-field communication distance to the terminal.
12. The method of claim 1 , wherein the near-field device and the terminal have a same near-field communication mode.
13. The method of claim 1 , wherein the near-field communication mode includes one or more of the following:
a Bluetooth communication (Bluetooth);
a near-field wireless communication (NFC) function; and
a radio frequency identification (RFID).
14. The method of claim 1 , wherein the near-field device is a Bluetooth earphone.
15. A terminal comprising:
one or more processors; and
a memory including instructions executable by the one or more processors, which when executed perform the following acts comprising:
detecting a near-field device of a user by a terminal, when a particular operation is triggered;
obtaining an identification of the near-field device;
sending the identification to a server to request the server to conduct an authentication of the near-field device that matches the near-field device with a particular near-field device corresponding to the particular operation according to the identification of the near-field device;
receiving a result of authentication performed by the server according to the identification; and
sending a notification by the near-field device to another device used by the user in response to receiving the result of failed authentication.
16. The terminal of claim 15 , the acts further comprising performing the particular operation if the result of authentication is that the near-field device is the particular near-field device corresponding to the particular operation, or performing one or more preset safety operations if the result of authentication is that the near-field device is not the particular near-field device corresponding to the particular operation.
17. The terminal of claim 15 , the acts further comprising sending an inquiry to the server to inquire whether the particular operation needs authentication of the near-field device and determining to conduct the authentication of the near-field device according to an inquiry result returned by the server.
18. The terminal of claim 15 , wherein the detecting the near-field device within an effective near-field communication distance to the terminal.
19. A system comprising:
a terminal including:
one or more processors; and
a memory including instructions executable by the one or more processors, which when executed perform the following acts comprising:
detecting a near-field device of a user by the terminal, when a particular operation is triggered;
obtaining an identification of the near-field device;
sending the identification to a server to request the server to conduct an authentication of the near-field device that matches the near-field device with a particular near-field device corresponding to the particular operation according to the identification of the near-field device; and
receiving a result of authentication performed by the server according to the identification; and
sending a notification by the near-field device to another device used by the user in response to receiving the result of failed authentication; and
the near-field device.
20. The terminal system of claim 19 , wherein:
the near-field communication mode is a Bluetooth communication; and
the near-field device is a Bluetooth earphone.