auth: Initial JWT implementation

We'll use a JWT in the `Authorization` request header to identify the
user saving a page.  The token will need to be set in the _authorization
token_ field in the SingleFile configuration so it will be included when
uploading.
This commit is contained in:
2025-04-05 07:24:18 -05:00
parent a1308507af
commit 720bb690ea
8 changed files with 268 additions and 3 deletions

View File

@@ -6,6 +6,7 @@ edition = "2021"
[dependencies]
chrono = { version = "0.4.40", default-features = false, features = ["std", "clock", "serde"] }
html5ever = "0.27.0"
jsonwebtoken = { version = "9.3.1", default-features = false }
markup5ever_rcdom = "0.3.0"
meilisearch-sdk = "0.28.0"
rand = "0.9.0"