| CPC H04L 63/107 (2013.01) [H04L 63/0807 (2013.01); H04W 4/025 (2013.01); H04W 4/027 (2013.01); H04W 12/08 (2013.01); H04W 12/63 (2021.01)] | 20 Claims |

|
1. A method comprising:
sending, by a terminal device to a server, resource access request information for accessing a target device, wherein the resource access request information carries a user identity and a first identifier of a to-be-accessed resource;
authenticating, by the server, the user identity;
obtaining, by the server in response to successfully authenticating the user identity, location information of the terminal device by obtaining, based on the first identifier, a location parameter that needs to be verified from a correspondence table, wherein the correspondence table stores a correspondence between the first identifier, a second identifier of a target device, and the location parameter, wherein the location information comprises geographical location information indicating a geographical location of the terminal device and positioning assistance information indicating a positioning of the terminal device, and wherein the positioning assistance information comprises a positioning delay, a positioning manner, a movement speed of the terminal device, and a movement direction of the terminal device;
verifying, by the server, the geographical location, the positioning delay, the positioning manner, the movement speed, and the movement direction;
sending, by the server, to the terminal device, and in response to successfully verifying the geographical location, the positioning delay, the positioning manner, the movement speed of the terminal device, and the movement direction, an access token corresponding to the first identifier; and
obtaining, by the terminal device from the target device, the to-be-accessed resource based on the access token.
|