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 near 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; and
receiving a result of authentication performed by the server according to the identification of the near-field device; and
detecting no near-field device near a terminal when a particular operation is triggered, and in response to detecting no near-field device near the terminal, performing preset safety operations and locating current position of the terminal.
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;
clearing a password in memory of the terminal; and
notifying another terminal.
6. 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.
7. The method of claim 6 , 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.
8. 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.
9. The method of claim 8 , further comprising storing the particular operation that needs authentication of the particular near-field device at the server.
10. 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.
11. The method of claim 1 , wherein the near-field device and the terminal have a same near-field communication mode.
12. The method of claim 11 , 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).
13. The method of claim 1 , wherein the near-field device is a Bluetooth earphone.
14. 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 near 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; and
receiving a result of authentication performed by the server according to the identification; and
detecting no near-field device near a terminal, when a particular operation is triggered, and in response to detecting no near-field device near the terminal, performing preset safety operations and locating current position of the terminal.
15. The terminal of claim 14 , the acts further comprising a-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.
16. The terminal of claim 14 , the acts further comprising a-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.
17. The terminal of claim 14 , wherein the detecting detects the near-field device within an effective near-field communication distance to the terminal.
18. 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, when a particular operation is triggered, a near-field device near the terminal;
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
detecting no near-field device near a terminal, when a particular operation is triggered, and in response to detecting no near-field device near the terminal, performing preset safety operations and locating current position of the terminal; and
the near-field device.
19. The terminal system of claim 18 , wherein:
the near-field device is a Bluetooth earphone.