Commit df438f8
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
File tree
60 files changed
+4658
-32
lines changed- app
- db
- migrations
- request_parsers
- field_parsers
- static/js
- templates
- components
- custom-elements
- update
- debian-pkg
- debian
- opt/tinypilot-privileged
- scripts
- services
- docs
- e2e
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| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
44 | 49 | | |
0 commit comments