When the authentication is implemented based on network level login then it is called as Windows based authentication.
Windows based authentication is applicable at the intranet based implementation that is the private website of the organization.
You can change at the web.config level to implement Windows based authentication:
Here apart from user1, user2 and user3 everyone else will get an error.
Check out Best Alternative to InfoPath -> Try Now
You May Also like the Following SharePoint Online Tutorials:
-: FREE PDF e-Book Download :-
51 JSOM Examples in SharePoint Online