The basis of the concept described by John Locke in your question is:
B. government by consent
Locke's social contract theory emphasizes that governments derive their legitimacy from the consent of the governed, highlighting the importance of voluntary agreement in political authority.