Disables guest mode by forcing users to login to access the regular web interface.
Switch branches/tags
Nothing to show
Clone or download
Latest commit ae62fa6 Oct 17, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
octoprint_forcelogin jquery-<version>.min.js => jquery.min.js Oct 18, 2016
.editorconfig Initial commit Oct 19, 2015
.gitignore Initial commit Oct 19, 2015
MANIFEST.in Initial commit Oct 19, 2015
README.md Update README.md Oct 17, 2017
babel.cfg Initial commit Oct 19, 2015
requirements.txt Initial commit Oct 19, 2015
setup.py Initial commit Oct 19, 2015

README.md

OctoPrint-ForceLogin


Note Requires OctoPrint 1.3.0 or later.


Forces users to login to access the regular web interface.

IMPORTANT:

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).

Setup

Install via the bundled Plugin Manager or manually using this URL:

https://github.com/OctoPrint/OctoPrint-ForceLogin/archive/master.zip