Skip to content

Commit df438f8

Browse files
authored
Backport HTTPS and user authentication from TinyPilot Pro (#1912)
Resolves tiny-pilot/tinypilot-pro#1547 This PR adds support for HTTPS (on by default) and basic user authentication to TinyPilot Community. Demo video: https://github.com/user-attachments/assets/dad9a6c8-3468-444b-9d8b-fd15087394d5 Notes: 1. There's a lot of code in this PR, but it's mostly just copy/pasted from the TinyPilot Pro repo. 2. The only changes that will be merged it into the Pro repo (via our [`merge-pro` GitHub action](https://github.com/tiny-pilot/tinypilot/blob/2175dff3a74609d99005858bfb8508bf156ad01f/.github/workflows/merge-pro.yml)) are the changes to: - `docs/user-configurable-settings.md` - [`app/templates/custom-elements/manage-users-form.html`](https://github.com/tiny-pilot/tinypilot/blob/72d146a94dcb2bf59e5e04f5b5dc288088d90655/app/templates/custom-elements/manage-users-form.html#L22) 3. Internally, user authentication has full support for multiple user roles. However, the frontend has been limited to a single user role (i.e., Administrator). - Parts of the API, Web UI, and e2e tests that support additional user roles has been redacted. <a data-ca-tag href="https://codeapprove.com/pr/tiny-pilot/tinypilot/1912"><img src="https://codeapprove.com/external/github-tag-allbg.png" alt="Review on CodeApprove" /></a>
1 parent d43feba commit df438f8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+4658
-32
lines changed

.eslintrc.cjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,10 @@ module.exports = {
4040
"one-var-declaration-per-line": "error",
4141
"prefer-const": "error",
4242
},
43-
ignorePatterns: ["app/static/third-party", "playwright-report", "venv"],
43+
ignorePatterns: [
44+
"app/static/third-party",
45+
"app/templates/components/debug-mode.html",
46+
"playwright-report",
47+
"venv",
48+
],
4449
};

0 commit comments

Comments
 (0)