Note Requires OctoPrint 1.3.0 or later.
Forces users to login to access the regular web interface.
This only prevents accessing the regular web page, it does not deny access on the API endpoints used by said web page to retrieve information from the backend. It also doesn't deny access to the webcam stream in any way if the URL is known (the webcam stream is not controlled by OctoPrint but only embedded and it cannot control access to it for that reason).
This is not an alternative to setting up access control in front of your OctoPrint instance. It's more like security by "obscurity" and actually only provided here as an example on how UiPlugins can be used and how a forced login might work once there's a more granular permission system implemented in OctoPrint.
If you need to secure your OctoPrint further than what the built-in access control with its current permissions allows you, use other means like HTTP Basic Auth enforced through your reverse proxy (an example on how to do this on OctoPi can be found in this episode of OctoPrint On Air).
Install via the bundled Plugin Manager or manually using this URL: