The Internet of Medical Things (IoMT) has recently become the norm in medical operations and emergency situations. A physician or a medical personnel is interested in accessing the patients' data from remote locations using IoMT. The patients' medical management system should allow their doctors and family members to have access to the data, especially in emergency situations. Deploying sensor nodes and managing the large amount of medical data generated by these sensors require a system that provides protection against known security threats and a robust mechanism to recover when subjected to attacks. The proposed scheme that provides mutual authentication between user(s) and power generation nodes, and also mitigate against attacks by validating the identity during the authentication phase. Moreover, the proposed scheme, called Grid‐Based Authentication, uses the existing smart grid infrastructure for communications, which is a model of integrated infrastructure in a smart city. Furthermore, the simulation results show that our proposed scheme yields better performance in terms of average throughput, end to end delay, and computation and communication costs compared with other state‐of‐the‐art approaches.