A non-transitory computer-readable medium embodying program instructions that, when executed, cause a primary computing device to at least:
- establish a peer-to-peer (P2P) communication session between the primary computing device and a secondary computing device;
- determine proximity data associated with a proximity of the primary computing device to the secondary computing device;
- transmit the proximity data to a management service remotely located with respect to the primary computing device and the secondary computing device;
- receive, at the primary computing device from the management service, an indication that the primary computing device is within a predefined proximity threshold of the secondary computing device and an access token used to decrypt metadata associated with an enterprise resource received by the secondary computing device from the management service;
- in response to the indication, enter the primary computing device into a secure viewing mode of the P2P communication session and transmit the access token to the secondary computing device via the P2P communication session while in the secure viewing mode, wherein the primary computing device transmits the access token to the secondary computing device only in response to receiving the indication from the management service that the predefined proximity threshold is satisfied, and withholds transmission of the access token in the absence of the indication, and wherein the access token is used by the secondary computing device to decrypt the metadata and to render the enterprise resource in a display accessible to the secondary computing device in response to receiving the access token;
- continually re-transmit to the management service, updated proximity data associated with the proximity of the primary computing device to the secondary computing device while the primary computing device remains in the secure viewing mode of the P2P communication session;
- receive a notification from the management service indicating that the primary computing device is not within the predefined proximity threshold of the secondary computing device;
- and
- in response to the notification, terminate the secure viewing mode of the P2P communication session, wherein the secondary computing device obscures at least one sensitive portion of the enterprise resource in the display based at least in part on the metadata in response to termination of the secure viewing mode of the P2P communication session, wherein rendering of the enterprise resource by the secondary computing device is permitted only while the primary computing device remains within the predefined proximity threshold as determined by the management service,
- wherein the indication that the primary computing device is within the predefined proximity threshold of the secondary computing device is generated by the management service based on the proximity data transmitted by the primary computing device, and the notification that the primary computing device is not within the predefined proximity threshold of the secondary computing device is generated by the management service based on the updated proximity data.